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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..1e42e2d13436151404519c841c928b259155e8f2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLScriptElement/script-element-moved-from-disposed-document-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body id=bodyElement>
+<iframe id=iframe></iframe>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var xhtml = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
+var body = bodyElement;
+iframe.contentDocument.documentElement.appendChild(body);
+body.parentNode.removeChild(body);
+gc();
+xhtml.documentElement.appendChild(body);
+testPassed('no crash');
+</script>
+</body>
+</html>
« 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