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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html
diff --git a/third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html b/third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html
new file mode 100644
index 0000000000000000000000000000000000000000..21284074327cb54e3c17c1a0e6fc86175dfda31b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/frames/open-then-unload.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<script>
+jsTestIsAsync = true;
+
+function runTest() {
+ description('Test that document.open() doesn\'t allow frames to be attached during frame detach.');
+ window[0].document.open();
+ window[0].document.appendChild(document.createElement('iframe'));
+ window[0][0].addEventListener('unload', function() {
+ window[0].document.documentElement.appendChild(document.createElement('iframe'));
+ shouldBe('1', 'window[0].length');
+ shouldBeUndefined('window[0][1]');
+ finishJSTest();
+ });
+ window[0].location = 'data:text/plain,Hello world!';
+}
+</script>
+</head>
+<body onload="runTest()">
+<iframe></iframe>
+</body>
+</html>
« 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