Skip to content

Commit cc548da

Browse files
committed
Bug 1858562 - Part 5: Enable Document Picture-in-Picture on nightly. r=smaug,webidl
Differential Revision: https://phabricator.services.mozilla.com/D270474
1 parent 182bb25 commit cc548da

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

dom/tests/mochitest/general/test_interfaces.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,20 @@ let interfaceNamesInGlobalScope = [
411411
// IMPORTANT: Do not change this list without review from a DOM peer!
412412
{ name: "DocumentFragment", insecureContext: true },
413413
// IMPORTANT: Do not change this list without review from a DOM peer!
414+
{
415+
name: "DocumentPictureInPicture",
416+
insecureContext: false,
417+
nightly: true,
418+
android: false,
419+
},
420+
// IMPORTANT: Do not change this list without review from a DOM peer!
421+
{
422+
name: "DocumentPictureInPictureEvent",
423+
insecureContext: false,
424+
nightly: true,
425+
android: false,
426+
},
427+
// IMPORTANT: Do not change this list without review from a DOM peer!
414428
{ name: "DocumentTimeline", insecureContext: true },
415429
// IMPORTANT: Do not change this list without review from a DOM peer!
416430
{ name: "DocumentType", insecureContext: true },
@@ -1747,6 +1761,13 @@ let interfaceNamesInGlobalScope = [
17471761
// IMPORTANT: Do not change this list without review from a DOM peer!
17481762
{ name: "document", insecureContext: true },
17491763
// IMPORTANT: Do not change this list without review from a DOM peer!
1764+
{
1765+
name: "documentPictureInPicture",
1766+
insecureContext: false,
1767+
nightly: true,
1768+
android: false,
1769+
},
1770+
// IMPORTANT: Do not change this list without review from a DOM peer!
17501771
{ name: "dump", insecureContext: true },
17511772
// IMPORTANT: Do not change this list without review from a DOM peer!
17521773
{ name: "event", insecureContext: true },

modules/libpref/init/StaticPrefList.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3052,11 +3052,16 @@
30523052

30533053
# Whether the Document PictureInPicture API is enabled
30543054
# https://wicg.github.io/document-picture-in-picture/#api
3055-
# Always disable on android (unsupported) so that webpages aren't
3056-
# confused by the webidl bindings being exposed
30573055
- name: dom.documentpip.enabled
30583056
type: RelaxedAtomicBool
3057+
#ifdef ANDROID
3058+
# Always disable on android (unsupported) so that webpages aren't
3059+
# confused by the webidl bindings being exposed
30593060
value: false
3061+
#else
3062+
# Probably only enable by default after bug 543435
3063+
value: @IS_NIGHTLY_BUILD@
3064+
#endif
30603065
mirror: always
30613066
rust: true
30623067

0 commit comments

Comments
 (0)