1
0
Fork 0
firefox/testing/web-platform/tests/speculation-rules/prerender/resources/protocol-handler.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

13 lines
502 B
HTML

<!DOCTYPE html>
<title>Prerendering custom protocol handler</title>
<script>
// This page should be used by the protocol-handler-*register.https.html
// tests as the handler for their test custom protocols.
// Get URL parameters
const urlParams = new URLSearchParams(window.location.search);
const id = urlParams.get('id');
const s = urlParams.get('s');
// This page will be hosted in an iframe. Post message to parent window.
window.parent.postMessage({id: id, s: s}, '*');
</script>