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

Unified Diff: LayoutTests/fast/xsl/modify-xsl-while-loading-crash.html

Issue 429363004: Should clear sheet when ProcessingInstruction's removedFrom or attributeChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/xsl/modify-xsl-while-loading-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/xsl/modify-xsl-while-loading-crash.html
diff --git a/LayoutTests/fast/xsl/modify-xsl-while-loading-crash.html b/LayoutTests/fast/xsl/modify-xsl-while-loading-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..cef4a430e8214168136f146cf05e4559c6591989
--- /dev/null
+++ b/LayoutTests/fast/xsl/modify-xsl-while-loading-crash.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+onload = function() {
+ var iframe = document.createElement('iframe');
+ document.getElementById("div").appendChild(iframe);
+ var iframeDoc = iframe.contentWindow.document;
+ var style = iframeDoc.createProcessingInstruction('xml-stylesheet', 'href="null.css" type="text/css"');
+ iframeDoc.insertBefore(style, iframeDoc.firstChild);
+ style.deleteData(0, 0);
+ style.deleteData(10, 1);
+}
+</script>
+<div id="div">PASS</div>
« no previous file with comments | « no previous file | LayoutTests/fast/xsl/modify-xsl-while-loading-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698