commit d37ee8db0680366dde81a6a6be186ab7a1c2fcd2 parent dac683890087357ba38e08a70e52d4f512f55caf Author: Kagami Sascha Rosylight <krosylight@proton.me> Date: Fri, 17 Oct 2025 18:05:08 +0000 Bug 1994024 - Use https[alt][] to actually make it cross origin r=smaug,dom-core `http://{{hosts[][]}}:{{ports[http][0]}}` is same-origin. Differential Revision: https://phabricator.services.mozilla.com/D268435 Diffstat:
6 files changed, 5 insertions(+), 26 deletions(-)
diff --git a/testing/web-platform/meta/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html.ini b/testing/web-platform/meta/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html.ini @@ -1,10 +0,0 @@ -[document-fullscreen-enabled-cross-origin.sub.html] - expected: - if (os == "android") and fission: [OK, TIMEOUT] - if (os == "mac") and debug: [OK, TIMEOUT] - [Fullscreen enabled test: same-origin-default] - expected: - if (os == "mac") and debug: [PASS, NOTRUN] - - [Fullscreen enabled test: cross-origin-default] - expected: FAIL diff --git a/testing/web-platform/meta/fullscreen/api/element-ready-check-allowed-cross-origin.sub.html.ini b/testing/web-platform/meta/fullscreen/api/element-ready-check-allowed-cross-origin.sub.html.ini @@ -1,6 +1 @@ -[element-ready-check-allowed-cross-origin.sub.html] - expected: - if (os == "mac") and not debug: [OK, TIMEOUT] - [Element ready check with allowfullscreen attribute] - expected: - if (os == "mac") and not debug: [PASS, TIMEOUT] +prefs: [full-screen-api.allow-trusted-requests-only:false] diff --git a/testing/web-platform/meta/fullscreen/api/element-ready-check-not-allowed-cross-origin.sub.html.ini b/testing/web-platform/meta/fullscreen/api/element-ready-check-not-allowed-cross-origin.sub.html.ini @@ -1,6 +0,0 @@ -[element-ready-check-not-allowed-cross-origin.sub.html] - expected: - if (os == "mac") and debug: CRASH - if (os == "mac") and not debug: [OK, ERROR] - [Cross-origin element ready check with no allowfullscreen or allow attribute] - expected: FAIL diff --git a/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html b/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled-cross-origin.sub.html @@ -5,8 +5,8 @@ <div id="log"></div> <iframe src="resources/report-fullscreen-enabled.html" name="same-origin-default"></iframe> <iframe src="resources/report-fullscreen-enabled.html" allowfullscreen name="same-origin-allow"></iframe> -<iframe src="http://{{hosts[][]}}:{{ports[http][0]}}/fullscreen/api/resources/report-fullscreen-enabled.html" name="cross-origin-default"></iframe> -<iframe src="http://{{hosts[][]}}:{{ports[http][1]}}/fullscreen/api/resources/report-fullscreen-enabled.html" allowfullscreen name="cross-origin-allow"></iframe> +<iframe src="http://{{hosts[alt][]}}:{{ports[http][0]}}/fullscreen/api/resources/report-fullscreen-enabled.html" name="cross-origin-default"></iframe> +<iframe src="http://{{hosts[alt][]}}:{{ports[http][1]}}/fullscreen/api/resources/report-fullscreen-enabled.html" allowfullscreen name="cross-origin-allow"></iframe> <script> var expectations = { "same-origin-default": true, diff --git a/testing/web-platform/tests/fullscreen/api/element-ready-check-allowed-cross-origin.sub.html b/testing/web-platform/tests/fullscreen/api/element-ready-check-allowed-cross-origin.sub.html @@ -13,7 +13,7 @@ await new Promise((resolve) => { iframe.onload = resolve; iframe.src = - "http://{{hosts[][]}}:{{ports[http][0]}}/fullscreen/api/resources/attempt-fullscreen.html"; + "http://{{hosts[alt][]}}:{{ports[http][0]}}/fullscreen/api/resources/attempt-fullscreen.html"; }); // Activate the child frame. diff --git a/testing/web-platform/tests/fullscreen/api/element-ready-check-not-allowed-cross-origin.sub.html b/testing/web-platform/tests/fullscreen/api/element-ready-check-not-allowed-cross-origin.sub.html @@ -21,7 +21,7 @@ await new Promise((resolve) => { iframe.onload = resolve; iframe.src = - "http://{{hosts[][]}}:{{ports[http][0]}}/fullscreen/api/resources/attempt-fullscreen.html"; + "http://{{hosts[alt][]}}:{{ports[http][0]}}/fullscreen/api/resources/attempt-fullscreen.html"; }); // Trigger the child frame to report as soon as its content is loaded. await trusted_click();