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

Unified Diff: LayoutTests/fast/parser/resources/xhtml-overwrite-frame.xhtml

Issue 1267283002: Gracefully handle XMLDocumentParser being detached by mutation events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add clarifying comment Created 5 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/parser/xhtml-dom-character-data-modified-crash.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/parser/resources/xhtml-overwrite-frame.xhtml
diff --git a/LayoutTests/fast/parser/resources/xhtml-overwrite-frame.xhtml b/LayoutTests/fast/parser/resources/xhtml-overwrite-frame.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..75e7c09174bf7894f87a63d5f90d66758c8a14d6
--- /dev/null
+++ b/LayoutTests/fast/parser/resources/xhtml-overwrite-frame.xhtml
@@ -0,0 +1,12 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<script>
+function overwrite() {
+ var testRunner = window.parent.testRunner;
+ window.frameElement.outerHTML = "PASS (no crash)";
+ if (testRunner)
+ testRunner.notifyDone();
+}
+
+document.addEventListener("DOMCharacterDataModified", overwrite);
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/parser/xhtml-dom-character-data-modified-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698