diff --git a/browser/base/content/test/fullscreen/browser.ini b/browser/base/content/test/fullscreen/browser.ini index 15c00afce761..f1f0f8cf9067 100644 --- a/browser/base/content/test/fullscreen/browser.ini +++ b/browser/base/content/test/fullscreen/browser.ini @@ -4,6 +4,4 @@ support-files = [browser_bug1557041.js] skip-if = os == 'linux' # Bug 1561973 [browser_fullscreen_permissions_prompt.js] -skip-if = debug && os == 'mac' # Bug 1568570 -[browser_fullscreen_cross_origin.js] -support-files = fullscreen.html fullscreen_frame.html +skip-if = debug && os == 'mac' # Bug 1568570 \ No newline at end of file diff --git a/browser/base/content/test/fullscreen/browser_fullscreen_cross_origin.js b/browser/base/content/test/fullscreen/browser_fullscreen_cross_origin.js deleted file mode 100644 index df3e8bfc7a12..000000000000 --- a/browser/base/content/test/fullscreen/browser_fullscreen_cross_origin.js +++ /dev/null @@ -1,74 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ */ - -"use strict"; - -const ORIGIN = - "https://example.com/browser/browser/base/content/test/fullscreen/fullscreen_frame.html"; - -add_task(async function test_fullscreen_cross_origin() { - async function requestFullscreen(aAllow, aExpect) { - await BrowserTestUtils.withNewTab(ORIGIN, async function(browser) { - const iframeId = aExpect == "allowed" ? "frameAllowed" : "frameDenied"; - - info("Start fullscreen on iframe " + iframeId); - await SpecialPowers.spawn( - browser, - [{ aExpect, iframeId }], - async function(args) { - let frame = content.document.getElementById(args.iframeId); - await content.SpecialPowers.spawn( - frame, - [args.aExpect], - async expect => { - let frameDoc = content.document; - const waitForFullscreen = new Promise(resolve => { - const message = - expect == "allowed" ? "fullscreenchange" : "fullscreenerror"; - frameDoc.notifyUserGestureActivation(); - function handler(evt) { - frameDoc.removeEventListener(message, handler); - Assert.equal( - evt.type, - message, - `Request should be ${expect}` - ); - frameDoc.exitFullscreen(); - resolve(); - } - frameDoc.addEventListener(message, handler); - }); - - frameDoc.getElementById("request").click(); - await waitForFullscreen; - } - ); - } - ); - - if (aExpect == "allowed") { - waitForFullScreenState(browser, false); - } - }); - } - - await new Promise(r => { - SpecialPowers.pushPrefEnv( - { - set: [ - ["full-screen-api.enabled", true], - ["full-screen-api.allow-trusted-requests-only", false], - ["full-screen-api.transition-duration.enter", "0 0"], - ["full-screen-api.transition-duration.leave", "0 0"], - ["dom.security.featurePolicy.enabled", true], - ["dom.security.featurePolicy.header.enabled", true], - ["dom.security.featurePolicy.webidl.enabled", true], - ], - }, - r - ); - }); - - await requestFullscreen(undefined, "denied"); - await requestFullscreen("fullscreen", "allowed"); -}); diff --git a/browser/base/content/test/fullscreen/fullscreen.html b/browser/base/content/test/fullscreen/fullscreen.html deleted file mode 100644 index 8b4289bb36eb..000000000000 --- a/browser/base/content/test/fullscreen/fullscreen.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/browser/base/content/test/fullscreen/fullscreen_frame.html b/browser/base/content/test/fullscreen/fullscreen_frame.html deleted file mode 100644 index ca1b1a4dd818..000000000000 --- a/browser/base/content/test/fullscreen/fullscreen_frame.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/dom/html/HTMLIFrameElement.cpp b/dom/html/HTMLIFrameElement.cpp index 0f284aa2b87a..d7ebee6b3743 100644 --- a/dom/html/HTMLIFrameElement.cpp +++ b/dom/html/HTMLIFrameElement.cpp @@ -306,6 +306,8 @@ void HTMLIFrameElement::RefreshFeaturePolicy(bool aParseAllowAttribute) { mFeaturePolicy->SetDeclaredPolicy(OwnerDoc(), allow, NodePrincipal(), origin); } + + mFeaturePolicy->InheritPolicy(OwnerDoc()->FeaturePolicy()); } if (AllowPaymentRequest()) { @@ -316,7 +318,6 @@ void HTMLIFrameElement::RefreshFeaturePolicy(bool aParseAllowAttribute) { mFeaturePolicy->MaybeSetAllowedPolicy(NS_LITERAL_STRING("fullscreen")); } - mFeaturePolicy->InheritPolicy(OwnerDoc()->FeaturePolicy()); MaybeStoreCrossOriginFeaturePolicy(); } diff --git a/dom/html/test/file_fullscreen-event-order.html b/dom/html/test/file_fullscreen-event-order.html index 72fb2c9b4747..4ed5635861c5 100644 --- a/dom/html/test/file_fullscreen-event-order.html +++ b/dom/html/test/file_fullscreen-event-order.html @@ -2,7 +2,7 @@ - + - + - - - - - -Mozilla Bug 1104916 - -

- -
-
- - diff --git a/layout/style/test/chrome/display_mode_reflow.html b/layout/style/test/chrome/display_mode_reflow.html deleted file mode 100644 index ef639d7d5715..000000000000 --- a/layout/style/test/chrome/display_mode_reflow.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Test for Display Mode - - - - - - -Mozilla Bug 1256084 - -

- -
-
- - diff --git a/layout/style/test/chrome/test_display_mode.html b/layout/style/test/chrome/test_display_mode.html index adec2fdaa38d..f9bd7fcc7b83 100644 --- a/layout/style/test/chrome/test_display_mode.html +++ b/layout/style/test/chrome/test_display_mode.html @@ -11,28 +11,106 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1104916 - + Mozilla Bug 1104916 + +

+
 
diff --git a/layout/style/test/chrome/test_display_mode_reflow.html b/layout/style/test/chrome/test_display_mode_reflow.html index a9e9ad470999..85804365ca63 100644 --- a/layout/style/test/chrome/test_display_mode_reflow.html +++ b/layout/style/test/chrome/test_display_mode_reflow.html @@ -11,30 +11,68 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1256084 - + Mozilla Bug 1256084 +

 
diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index f4d8639d1949..48494e332263 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -2173,11 +2173,6 @@ value: true mirror: always -- name: dom.security.featurePolicy.experimental.enabled - type: bool - value: false - mirror: always - # Expose the 'policy' attribute in document and HTMLIFrameElement - name: dom.security.featurePolicy.webidl.enabled type: bool diff --git a/testing/web-platform/meta/encrypted-media/__dir__.ini b/testing/web-platform/meta/encrypted-media/__dir__.ini index 49b24661cf11..c886a227eeff 100644 --- a/testing/web-platform/meta/encrypted-media/__dir__.ini +++ b/testing/web-platform/meta/encrypted-media/__dir__.ini @@ -1,3 +1,3 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] lsan-allowed: [Alloc, CreateCDMProxy, MakeUnique, Malloc, NewPage, Realloc, mozilla::EMEDecryptor::EMEDecryptor, mozilla::SchedulerGroup::CreateEventTargetFor, mozilla::dom::MediaKeys::CreateCDMProxy, mozilla::dom::ContentChild::GetConstructedEventTarget] leak-threshold: [default:51200] diff --git a/testing/web-platform/meta/feature-policy/__dir__.ini b/testing/web-platform/meta/feature-policy/__dir__.ini index 9d6a9cd88541..775f61f81b28 100644 --- a/testing/web-platform/meta/feature-policy/__dir__.ini +++ b/testing/web-platform/meta/feature-policy/__dir__.ini @@ -1,2 +1,2 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.payments.request.enabled:true, dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true, dom.webmidi.enabled:true, dom.vr.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.payments.request.enabled:true, dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true, dom.webmidi.enabled:true, dom.vr.enabled:true] leak-threshold: [default:51200] diff --git a/testing/web-platform/meta/geolocation-sensor/__dir__.ini b/testing/web-platform/meta/geolocation-sensor/__dir__.ini index e10bfc3b69d6..22193ef6f8a8 100644 --- a/testing/web-platform/meta/geolocation-sensor/__dir__.ini +++ b/testing/web-platform/meta/geolocation-sensor/__dir__.ini @@ -1 +1 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] diff --git a/testing/web-platform/meta/html/browsers/origin/relaxing-the-same-origin-restriction/__dir__.ini b/testing/web-platform/meta/html/browsers/origin/relaxing-the-same-origin-restriction/__dir__.ini index 62bd3916da4c..1701b2522d35 100644 --- a/testing/web-platform/meta/html/browsers/origin/relaxing-the-same-origin-restriction/__dir__.ini +++ b/testing/web-platform/meta/html/browsers/origin/relaxing-the-same-origin-restriction/__dir__.ini @@ -1 +1 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true] diff --git a/testing/web-platform/meta/html/dom/idlharness.https.html.ini b/testing/web-platform/meta/html/dom/idlharness.https.html.ini index 9f47d1b3b34f..f845f72180d7 100644 --- a/testing/web-platform/meta/html/dom/idlharness.https.html.ini +++ b/testing/web-platform/meta/html/dom/idlharness.https.html.ini @@ -1,4 +1,4 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true, dom.webcomponents.elementInternals.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true, dom.webcomponents.elementInternals.enabled:true] [idlharness.https.html?exclude=(Document|Window|HTML.*)] [ElementInternals interface: operation setValidity(ValidityStateFlags, DOMString, HTMLElement)] expected: FAIL diff --git a/testing/web-platform/meta/html/semantics/embedded-content/media-elements/__dir__.ini b/testing/web-platform/meta/html/semantics/embedded-content/media-elements/__dir__.ini index d0a643621aa5..01341ccfc59c 100644 --- a/testing/web-platform/meta/html/semantics/embedded-content/media-elements/__dir__.ini +++ b/testing/web-platform/meta/html/semantics/embedded-content/media-elements/__dir__.ini @@ -1 +1 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] diff --git a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini index ccedc13c6c6a..48650b7192e8 100644 --- a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini +++ b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini @@ -1,4 +1,4 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true] [idle-detection-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html] expected: TIMEOUT [Attribute allow="idle-detection" in top-level frame disallows workers in cross-origin relocation.] diff --git a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute.https.sub.html.ini index 0bc0458213ab..b026d9a91d3f 100644 --- a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute.https.sub.html.ini +++ b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-feature-policy-attribute.https.sub.html.ini @@ -1,4 +1,4 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true] [idle-detection-allowed-by-feature-policy-attribute.https.sub.html] expected: TIMEOUT [Attribute allow="idle-detection" in top-level frame can be enabled in a worker in cross-origin iframe using Feature policy "idle-detection".] diff --git a/testing/web-platform/meta/serial/__dir__.ini b/testing/web-platform/meta/serial/__dir__.ini index 163bf3360c62..abe7ffd6d913 100644 --- a/testing/web-platform/meta/serial/__dir__.ini +++ b/testing/web-platform/meta/serial/__dir__.ini @@ -1,2 +1,2 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true] leak-threshold: [default:51200] diff --git a/testing/web-platform/meta/wake-lock/__dir__.ini b/testing/web-platform/meta/wake-lock/__dir__.ini index d0a643621aa5..01341ccfc59c 100644 --- a/testing/web-platform/meta/wake-lock/__dir__.ini +++ b/testing/web-platform/meta/wake-lock/__dir__.ini @@ -1 +1 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] diff --git a/testing/web-platform/meta/webusb/__dir__.ini b/testing/web-platform/meta/webusb/__dir__.ini index bb372c4f4236..e27755931a70 100644 --- a/testing/web-platform/meta/webusb/__dir__.ini +++ b/testing/web-platform/meta/webusb/__dir__.ini @@ -1,2 +1,2 @@ -prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] lsan-allowed: [Alloc, Create, Malloc, Then, mozilla::BasePrincipal::CreateContentPrincipal, mozilla::SchedulerGroup::CreateEventTargetFor, mozilla::dom::ServiceWorkerJobQueue::RunJob, mozilla::dom::ServiceWorkerManager::Unregister, mozilla::dom::ServiceWorkerRegistrationMainThread::Unregister, mozilla::dom::UnregisterCallback::UnregisterCallback, mozilla::net::nsStandardURL::TemplatedMutator, operator] diff --git a/testing/web-platform/meta/webvr/__dir__.ini b/testing/web-platform/meta/webvr/__dir__.ini index 46e5c53bd256..70ab13069c61 100644 --- a/testing/web-platform/meta/webvr/__dir__.ini +++ b/testing/web-platform/meta/webvr/__dir__.ini @@ -1 +1 @@ -prefs: [dom.vr.enabled:true, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.experimental.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] +prefs: [dom.vr.enabled:true, dom.security.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true]