Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLStyleElement / style-onload-remove-crash.html
blob9b5d66f4359fccc6fee79cadaf4272287e7615e4
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <div></div>
5 <script>
6 myDiv = document.body.querySelector("div");
8 newStyle = document.createElement("style");
9 newStyle.onload = function() { document.body.appendChild(myDiv); }
10 document.body.appendChild(newStyle);
12 newDiv = document.createElement("div");
13 // Inserting <iframe> into tree flushes the pending @onload event.
14 newDiv.innerHTML = "<iframe></iframe><style></style>";
15 myDiv.createShadowRoot().appendChild(newDiv);
17 debug("PASS unless crash");
18 </script>
19 </body>