tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit cc548da55c12e8b5d46ecccb8a942aed3e5c4d46
parent 182bb259bfc7444872b0c83d7ca09d14a6dc6512
Author: Vincent Hilla <vhilla@mozilla.com>
Date:   Tue, 16 Dec 2025 18:12:06 +0000

Bug 1858562 - Part 5: Enable Document Picture-in-Picture on nightly. r=smaug,webidl

Differential Revision: https://phabricator.services.mozilla.com/D270474

Diffstat:
Mdom/tests/mochitest/general/test_interfaces.js | 21+++++++++++++++++++++
Mmodules/libpref/init/StaticPrefList.yaml | 9+++++++--
2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js @@ -411,6 +411,20 @@ let interfaceNamesInGlobalScope = [ // IMPORTANT: Do not change this list without review from a DOM peer! { name: "DocumentFragment", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! + { + name: "DocumentPictureInPicture", + insecureContext: false, + nightly: true, + android: false, + }, + // IMPORTANT: Do not change this list without review from a DOM peer! + { + name: "DocumentPictureInPictureEvent", + insecureContext: false, + nightly: true, + android: false, + }, + // IMPORTANT: Do not change this list without review from a DOM peer! { name: "DocumentTimeline", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "DocumentType", insecureContext: true }, @@ -1747,6 +1761,13 @@ let interfaceNamesInGlobalScope = [ // IMPORTANT: Do not change this list without review from a DOM peer! { name: "document", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! + { + name: "documentPictureInPicture", + insecureContext: false, + nightly: true, + android: false, + }, + // IMPORTANT: Do not change this list without review from a DOM peer! { name: "dump", insecureContext: true }, // IMPORTANT: Do not change this list without review from a DOM peer! { name: "event", insecureContext: true }, diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -3052,11 +3052,16 @@ # Whether the Document PictureInPicture API is enabled # https://wicg.github.io/document-picture-in-picture/#api -# Always disable on android (unsupported) so that webpages aren't -# confused by the webidl bindings being exposed - name: dom.documentpip.enabled type: RelaxedAtomicBool +#ifdef ANDROID +# Always disable on android (unsupported) so that webpages aren't +# confused by the webidl bindings being exposed value: false +#else +# Probably only enable by default after bug 543435 + value: @IS_NIGHTLY_BUILD@ +#endif mirror: always rust: true