Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / style-sheet-candidate-remove-unrendered-document.html
blob42d5eb8b69d852c832646f9b30dabc0c34e87a74
1 <p>
2 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=26671">https://bugs.webkit.org/show_bug.cgi?id=26671</a>
3 Safari 4.0 crashes in WebCore::DOMTimer::fired()</i>.
4 </p>
5 <p>
6 This tests that removing a possibly style sheet-carrying element from an
7 unrendered document does not leave behind a reference to a stale object and
8 lead to a crash.
9 </p>
10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
14 var otherDocument = document.implementation.createHTMLDocument();
15 otherDocument.documentElement.innerHTML = "<link>";
16 otherDocument.documentElement.innerHTML = "";
17 otherDocument.documentElement.appendChild(otherDocument.createElement("head")).appendChild(otherDocument.createElement("style"));
18 </script>