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> |