Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / modifications-in-subtree-unload.html
blob99598bfbdc6f9fed8e39caf37bb8ff61e3f111b7
1 <!DOCTYPE html>
3 <p>
4 This tests that you can append children to a subtree that's being removed
5 from inside of an unload handler on a frame in that subtree.
6 </p>
8 <div><iframe src="about:blank"></iframe></div>
10 <script>
11 div = document.querySelector("div");
12 iframe = document.querySelector("iframe");
13 iframe.contentWindow.onunload = function() {
14 try {
15 div.appendChild(document.createElement('span'));
16 document.body.appendChild(document.createTextNode('PASS'));
17 } catch (e) {
18 document.body.appendChild(document.createTextNode('FAIL: ' + e));
22 div.parentNode.removeChild(div);
23 </script>