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

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

Issue 1692483002: Fix adopt-iframe-sec-attr-after-remove.html failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 We pass if we don't crash under ASAN. 2 We pass if we don't crash under ASAN.
3 <iframe id=iframe src="../navigation/resources/blank.txt"></iframe> 3 <iframe id=iframe src="../navigation/resources/blank.txt"></iframe>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 window.onload = function() 10 window.onload = function()
11 { 11 {
12 iframe.remove(); 12 iframe.remove();
13 gc(); 13 // Run the GC after this event handler has completed & back at the event loo p.
14 setTimeout(gc);
14 } 15 }
15 16
16 document.addEventListener("DOMContentLoaded", function() { 17 document.addEventListener("DOMContentLoaded", function() {
17 setTimeout(function() { 18 setTimeout(function() {
18 document.adoptNode(iframe.attributes["src"]); 19 document.adoptNode(iframe.attributes["src"]);
19 if (window.testRunner) 20 if (window.testRunner)
20 testRunner.notifyDone(); 21 testRunner.notifyDone();
21 }, 0); 22 }, 0);
22 }, false); 23 }, false);
23 </script> 24 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698