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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <p>Passes if it doesn't crash.</p>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 docType = document.implementation.createDocumentType('doc', '-//W3C//DTD XHTML 1 .0 Transitional//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd');
6 doc = document.implementation.createDocument('.', 'doc', docType);
dglazkov 2014/12/17 16:48:55 Interesting! Why is it significant to have this co
hayato 2014/12/18 05:54:29 Yeah, there is no reason to use XHTML here. This
7 var iframe = doc.createElement('iframe');
8 delete docType;
9 delete doc;
10 mouseEvent = document.createEvent('MouseEvents');
11 mouseEvent.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, fal se, false, false, 0, null);
12 iframe.dispatchEvent(mouseEvent);
13 document.documentElement.appendChild(iframe);
14 gc();
15 mouseEvent.path;
16 </script>
OLDNEW
« 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