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

Side by Side Diff: LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove.html

Issue 341273006: Protect an element while removing an attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: RefPtr->RefPtrWillBeRawPtr Created 6 years, 6 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/http/tests/misc/adopt-iframe-src-attr-after-remove-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 We pass if we don't crash under ASAN.
2 <iframe id=i src="../navigation/resources/blank.txt"></iframe>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 window.onload = function()
10 {
11 i.parentNode.removeChild(i);
12 gc();
13 }
14
15 document.addEventListener("DOMContentLoaded", function() {
16 setTimeout(function() {
17 document.adoptNode(i.attributes["src"]);
esprehn 2014/06/20 21:24:45 It abarth explained to me the reason for the adopt
18 if (window.testRunner)
19 testRunner.notifyDone();
20 }, 0);
21 }, false);
22 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/adopt-iframe-src-attr-after-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698