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

Unified Diff: content/test/data/click-noreferrer-links.html

Issue 1383513005: Ensure window reference is valid when navigating cross-process and back. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: content/test/data/click-noreferrer-links.html
diff --git a/content/test/data/click-noreferrer-links.html b/content/test/data/click-noreferrer-links.html
index 2a0f38ae799ecc87a74a87c9e5e884ba59ba410d..0ebc2121c28f8d5fdaac070663093ed3e7505096 100644
--- a/content/test/data/click-noreferrer-links.html
+++ b/content/test/data/click-noreferrer-links.html
@@ -83,6 +83,16 @@
// Change the title to generate a notification.
document.title = event.data;
}
+
+ var last_opened_window = undefined;
+ function saveWindowReference() {
+ // Grab a reference to the existing foo window into a global variable
+ // for later testing.
+ last_opened_window = window.open("", "foo");
+ }
+ function getExitingWindowLocation() {
nasko 2015/09/30 21:44:06 Done.
+ return last_opened_window.location.href;
+ }
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698