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

Unified Diff: LayoutTests/fast/dom/move-style-element-to-inactive-document-crash.html

Issue 204423002: Should remove StyleSheetContents from cache even if document is not active. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | LayoutTests/fast/dom/move-style-element-to-inactive-document-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/move-style-element-to-inactive-document-crash.html
diff --git a/LayoutTests/fast/dom/move-style-element-to-inactive-document-crash.html b/LayoutTests/fast/dom/move-style-element-to-inactive-document-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..5a4dd90add11ef32cc91b128e09783d5a3ae75dc
--- /dev/null
+++ b/LayoutTests/fast/dom/move-style-element-to-inactive-document-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ var style = document.createElement("style");
+ document.body.appendChild(style);
+ var option = document.createElement("option");
+
+ var newdoc = document.implementation.createDocument("", null);
+ newdoc.appendChild(document.body);
+ style.appendChild(option);
+
+ document.body = document.createElement('body');
+ document.body.innerHTML = 'PASS if no crash.';
+}
+</script>
+</body>
+
« no previous file with comments | « no previous file | LayoutTests/fast/dom/move-style-element-to-inactive-document-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698