Debian Codegraph @

testing/web-platform/mozilla/tests/dom/quota/support/test-read-and-notify.https.html

raw
1 <!doctype html>
2 <html>
3 <head>
4 <title>Reader script for window</title>
5 <script
6 src="test-read-and-notify.js"
7 type="application/javascript"
8 ></script>
9 </head>
10 <body style="background-color: rgb(255, 200, 0)">
11 <script>
12 const params = new URL(window.location.href).searchParams;
13 const id = params.get("id");
14 console.log("Read window frame id " + id);
15 window.parent.postMessage(
16 { id, message: "read loaded" },
17 document.referrer
18 );
19 </script>
20 </body>
21 </html>