1
0
Fork 0
firefox/dom/security/featurepolicy/test/mochitest/file_xslt_outer.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
408 B
HTML

<iframe allow="microphone https://example.org" id="ifr"></iframe>
<script>
window.addEventListener("message", ({ data }) => { opener.postMessage(data, "*") });
const file = (new URLSearchParams(location.search)).get("file");
const CROSS_ORIGIN = new URL(file, location.href);
CROSS_ORIGIN.hostname = "example.org";
CROSS_ORIGIN.port = null;
document.getElementById("ifr").src = CROSS_ORIGIN.href;
</script>