Bug 1885602 - Part 2: Add a MozillaAccountMenuButton composable for the menu redesign...
[gecko.git] / dom / xhr / tests / file_sync_xhr_document_write_with_iframe.html
blob895fbc4e4beab0c1b124b87efe7d6243f33d8445
1 <!DOCTYPE HTML>
2 <body>
3 <script>
4 function syncXHR() {
5 let xhr = new XMLHttpRequest();
6 xhr.open("GET", window.location, false);
7 xhr.send(null);
10 addEventListener('load', () => {
11 syncXHR();
12 document.open();
13 document.write(
14 '<body>' +
15 '<iframe src="about:blank"></iframe>' +
16 // eslint-disable-next-line no-useless-concat
17 '<script>window.opener.postMessage("DONE", "*");</' + 'script>' +
18 '</body>');
19 document.close();
20 }, { once: true });
21 </script>
22 </body>