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

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/mutation-callback-dead-context-crash.html

Issue 657983002: Fix crash in MutationObserver::canDeliver due to NULL ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/MutationObserver/mutation-callback-dead-context-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 <div id=test><iframe src="#test" onload="setTimeout(crash, 0)"></iframe></div>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7 var observer = new MutationObserver(function() {});
8 observer.observe(document.querySelector('#test'), { attributes: true });
9 function crash() {
10 if (window.top === window) {
11 var iframe = document.querySelector('iframe');
12 var otherDocument = document.implementation.createDocument("http://www.w3.or g/1999/xhtml", "html");
13 otherDocument.adoptNode(iframe.contentDocument.documentElement);
14 otherDocument.documentElement.appendChild(iframe);
15 gc();
16 setTimeout(function() {
17 console.log('Test passes if it prints this message without crashing');
18 testRunner.notifyDone();
19 }, 0);
20 }
21 }
22 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/MutationObserver/mutation-callback-dead-context-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698