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

Unified Diff: LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash.html

Issue 794123004: Make TreeScopeEventContext have a RefPtr to TreeScope.rootNode to guard TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yet another miinimization Created 6 years 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/shadow/event-path-after-deleting-tree-scope-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash.html
diff --git a/LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash.html b/LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e9ac78f8449ef88a20aa1a274daf576d4cc81411
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash.html
@@ -0,0 +1,14 @@
+<p>Passes if it doesn't crash.</p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+doc = document.implementation.createHTMLDocument();
+var iframe = doc.createElement('iframe');
+delete doc;
+mouseEvent = document.createEvent('MouseEvents');
+mouseEvent.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+iframe.dispatchEvent(mouseEvent);
+document.documentElement.appendChild(iframe);
+gc();
+mouseEvent.path;
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/event-path-after-deleting-tree-scope-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698