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

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: 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
OLDNEW
(Empty)
1 We pass if we don't crash under ASAN.
esprehn 2014/06/20 20:01:30 Missing doctype.
2 <iframe id=i src="../navigation/resources/blank.txt"></iframe>
esprehn 2014/06/20 20:01:31 Can we use iframe instead of "i"?
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 window.onload = function()
10 {
11 i.parentNode.removeChild(i);
esprehn 2014/06/20 20:01:30 i.remove();
12 gc();
13 }
14
15 document.addEventListener("DOMContentLoaded", function() {
16 setTimeout(function() {
17 document.adoptNode(i.attributes["src"]);
esprehn 2014/06/20 20:01:30 Just use removeAttribute? I don't know why you're
Nate Chapin 2014/06/20 20:17:42 I was building this off of a clusterfuzz testcase,
18 if (window.testRunner)
19 testRunner.notifyDone();
20 }, 0);
21 }, false);
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698