Closed ManUtopiK closed 6 months ago
Moving the devtools to picture in picture mode is really great :rocket: But why limit this feature only for https ?
DocumentPictureInPicture is allowed only in secure context, but localhost is a secure context.
This pull request uses window.isSecureContext detection instead of relying on the location protocol.
Tested on nixOS with the most recent versions of Chromium, Google Chrome and Vivaldi.
Moving the devtools to picture in picture mode is really great :rocket: But why limit this feature only for https ?
DocumentPictureInPicture is allowed only in secure context, but localhost is a secure context.
This pull request uses window.isSecureContext detection instead of relying on the location protocol.
Tested on nixOS with the most recent versions of Chromium, Google Chrome and Vivaldi.