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