| Index: LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
|
| diff --git a/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html b/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b5d66f4359fccc6fee79cadaf4272287e7615e4
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLStyleElement/style-onload-remove-crash.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<body>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<div></div>
|
| +<script>
|
| +myDiv = document.body.querySelector("div");
|
| +
|
| +newStyle = document.createElement("style");
|
| +newStyle.onload = function() { document.body.appendChild(myDiv); }
|
| +document.body.appendChild(newStyle);
|
| +
|
| +newDiv = document.createElement("div");
|
| +// Inserting <iframe> into tree flushes the pending @onload event.
|
| +newDiv.innerHTML = "<iframe></iframe><style></style>";
|
| +myDiv.createShadowRoot().appendChild(newDiv);
|
| +
|
| +debug("PASS unless crash");
|
| +</script>
|
| +</body>
|
|
|