Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / test / data / click-noreferrer-links.html
index f195d65..536188e 100644 (file)
 
   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 w = window.open("", "foo");
+      var url = w.location.href;
+      return url != undefined;
+    } catch (e) {
+      return false;
+    }
   }
 
   function testCloseWindow() {