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

Unified Diff: chrome/test/data/popup_blocker/popup-window-open-noopener.html

Issue 2661403003: Track the original opener of a webcontents so we can rely on it for popups (Closed)
Patch Set: typo Created 3 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
Index: chrome/test/data/popup_blocker/popup-window-open-noopener.html
diff --git a/chrome/test/data/popup_blocker/popup-window-open-noopener.html b/chrome/test/data/popup_blocker/popup-window-open-noopener.html
new file mode 100644
index 0000000000000000000000000000000000000000..1a55bd2e2afde7ba8dd0a1cf8bf10ef90755d829
--- /dev/null
+++ b/chrome/test/data/popup_blocker/popup-window-open-noopener.html
@@ -0,0 +1,19 @@
+<!-- Copyright 2017 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+<head>
+<html>
+<head>
+<title>Popup created using window.open</title>
+<script>
+function test() {
+ window.open("data:text/html,<title>Popup Success!</title>" +
+ "you should not see this message if popup blocker is enabled",
+ "mywindow", "menubar=1, resizable=1, width=350, height=250, noopener");
+}
+</script>
+</head>
+<body onload="test()">
+pop-up test page
+</body>
+</html>
« no previous file with comments | « chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc ('k') | content/browser/frame_host/frame_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698