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

Unified Diff: third_party/WebKit/LayoutTests/fast/history/window-open-blocked.html

Issue 2399813002: Return null when window.open blocks a popup. (Closed)
Patch Set: Created 4 years, 2 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/history/window-open-blocked-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/history/window-open-blocked.html
diff --git a/third_party/WebKit/LayoutTests/fast/history/window-open-blocked.html b/third_party/WebKit/LayoutTests/fast/history/window-open-blocked.html
new file mode 100644
index 0000000000000000000000000000000000000000..310cb61c52a995ae30f5f8c6e10afdaed64f4b92
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/history/window-open-blocked.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<div id="result"></div>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.setCloseRemainingWindowsWhenComplete(true);
+}
+let x = window.open('about:blank');
+result.append(x === null ? 'PASS' : `FAIL: ${x}`);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/history/window-open-blocked-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698