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

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: Fixing a nit. 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ee011b7008e6ba491fcdffb09feb02a8ce458001 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 getLastOpenedWindowLocation() {
+ return last_opened_window.location.href;
+ }
</script>
</head>
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698