summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/staticNS.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/content/staticNS.js b/src/content/staticNS.js
index 3561162..7959341 100644
--- a/src/content/staticNS.js
+++ b/src/content/staticNS.js
@@ -69,7 +69,12 @@
// The cookie hack won't work for non-HTTP subframes (issue #48),
// or the cookie might have been deleted in a race condition,
// so here we try to check the parent
- let checkParent = parent.wrappedJSObject.checkNoScriptUnrestricted;
+ let checkParent = null;
+ try {
+ checkParent = parent.wrappedJSObject.checkNoScriptUnrestricted;
+ } catch (e) {
+ // may throw a SecurityException for cross-origin wrappedJSObject access
+ }
if (typeof checkParent === "function") {
try {
let challenge = uuid();