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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-open-with-different-active-and-opener-windows.html

Issue 1849703002: Set the correct opener for window.open when calling window != window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase layout test Created 4 years, 9 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: third_party/WebKit/LayoutTests/fast/dom/Window/window-open-with-different-active-and-opener-windows.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-with-different-active-and-opener-windows.html b/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-with-different-active-and-opener-windows.html
new file mode 100644
index 0000000000000000000000000000000000000000..9217b6e9b8dd3b21923bd8537f9a324207843512
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/window-open-with-different-active-and-opener-windows.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script>
+var jsTestIsAsync = true;
+description('Test that window.open sets the correct opener when the calling context != window');
+if (window.testRunner)
+ testRunner.setCanOpenWindows(true);
+function passed() {
+ testPassed('passed called on "this" argument of window.open');
+ finishJSTest();
+}
+function failed() {
+ testFailed('passed was called on calling context of window.open =(');
+ finishJSTest();
+}
+</script>
+</head>
+<body>
+<iframe src="resources/window-open-with-different-active-and-opener-windows-subframe.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698