Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash.html

Issue 1380543002: On Document disposal, only dispose of script runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert static method Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body id=bodyElement>
7 <iframe id=iframe></iframe>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11
12 var xhtml = document.implementation.createDocument("http://www.w3.org/1999/xhtml ", "html");
13 var body = bodyElement;
14 iframe.contentDocument.documentElement.appendChild(body);
15 body.parentNode.removeChild(body);
16 gc();
17 xhtml.documentElement.appendChild(body);
18 testPassed('no crash');
19 </script>
20 </body>
21 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698