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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html

Issue 1659013003: Don't reset LoadEventProgress if frame unload has already started. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more disabler 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 | « no previous file | third_party/WebKit/LayoutTests/fast/frames/open-then-unload-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 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 jsTestIsAsync = true;
7
8 function runTest() {
9 description('Test that document.open() doesn\'t allow frames to be attached du ring frame detach.');
10 window[0].document.open();
11 window[0].document.appendChild(document.createElement('iframe'));
12 window[0][0].addEventListener('unload', function() {
13 window[0].document.documentElement.appendChild(document.createElement('ifram e'));
14 shouldBe('1', 'window[0].length');
15 shouldBeUndefined('window[0][1]');
16 finishJSTest();
17 });
18 window[0].location = 'data:text/plain,Hello world!';
19 }
20 </script>
21 </head>
22 <body onload="runTest()">
23 <iframe></iframe>
24 </body>
25 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/frames/open-then-unload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698