Bug 1904048 - Add prototype for ImageBitmap's BindingJSObjectMallocBytes. r=aosmond
[gecko.git] / dom / base / crashtests / 1681729.html
blobbeb608eec9027492a545ea7b67808d926aba9cd0
1 <html class="reftest-wait">
2 <head>
3 <script>
4 async function test() {
5 // We need to go through the event loop first, so we're running this from
6 // a timeout set from the load event. If we were adding a load from the load
7 // event directly we'd just replace the iframe's session history entry
8 // instead of cloning it (and replacing its children).
9 let frame = document.getElementById("frame");
11 let p = new Promise((r) => {
12 frame.addEventListener("load", r, { once: true });
13 });
14 frame.src = "1681729-inner2.html";
15 await p;
17 p = new Promise((r) => {
18 frame.contentWindow.addEventListener("pageshow", r, { once: true });
19 });
20 history.back();
21 await p;
23 document.documentElement.removeAttribute("class");
25 </script>
26 </head>
27 <body onload="setTimeout(test, 0);">
28 <iframe id="frame" src="1681729-inner1.html"></iframe>
29 </body>
30 </html>