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 6229aa1f10dd3d5ff9a2bc04e04de1b830f375c8..29a43a576f835ac6854d5e7a5373572bdbe1cce8 100644 |
--- a/content/test/data/click-noreferrer-links.html |
+++ b/content/test/data/click-noreferrer-links.html |
@@ -39,8 +39,12 @@ |
function testScriptAccessToWindow() { |
// Grab a reference to the existing foo window and access its location. |
var w = window.open("", "foo"); |
- var url = w.location.href; |
- return url != undefined; |
+ try { |
+ var url = w.location.href; |
+ return true; |
+ } catch (e) { |
+ return false; |
+ } |
} |
function testCloseWindow() { |