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

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/disconnect-transient-crash.html

Issue 19303002: Fix crash due to unexpected Node deletion during MutationObserver registration book-keeping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/disconnect-transient-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 <!DOCTYPE html>
2 <div>Test passes if it does not crash</div>
3 <script>
4 if (window.testRunner) testRunner.dumpAsText();
5 var div = document.createElement('div');
6 var span = document.createElement('span');
7 div.appendChild(span);
8 var observer = new MutationObserver(function(){});
9 observer.observe(div, { attributes: true, subtree: true });
10 div.removeChild(span); // cause span to become transiently observed
11 div = null;
12 gc(); // collect div's wrapper
13 observer.disconnect();
14 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/MutationObserver/disconnect-transient-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698