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

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

Issue 1381443003: Disable support for swapped out RenderFrame(Host) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crashing on window access after forward/back navigation. 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() {
Charlie Reis 2015/09/30 21:08:04 nit: Exiting -> Existing And actually, that name
+ return last_opened_window.location.href;
+ }
</script>
</head>
« content/common/site_isolation_policy.cc ('K') | « content/common/site_isolation_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698