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

Side by Side Diff: LayoutTests/fast/dom/insertAdjacentHTML-afterend-crash.html

Issue 67813002: Protect contextElement during insertAdjacentHTML call (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/insertAdjacentHTML-afterend-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 This test passes if it doesn't crash (or ASSERT).
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5
6 function free() {
7 document.adoptNode(input);
8 gc();
9 }
10
11 svg = document.createElementNS('http://www.w3.org/2000/svg','mover');
12 input = document.createElement('input');
13 svg.appendChild(input);
14 svg = null;
15 input.insertAdjacentHTML('afterend', '<section onload="free()"></section>');
16 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/insertAdjacentHTML-afterend-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698