summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/staticNS.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/content/staticNS.js b/src/content/staticNS.js
index 0cd254c..e169087 100644
--- a/src/content/staticNS.js
+++ b/src/content/staticNS.js
@@ -70,10 +70,15 @@
// or the cookie might have been deleted in a race condition,
// so here we try to check the parent
let checkParent = parent.wrappedJSObject.checkNoScriptUnrestricted;
- if (checkParent) {
- let challenge = uuid();
- let unrestricted = checkParent(challenge) === checkUnrestricted(challenge);
- this.config.tabInfo = {unrestricted, inherited: true};
+ if (typeof checkParent === "function") {
+ try {
+ let challenge = uuid();
+ let unrestricted = checkParent(challenge) === checkUnrestricted(challenge);
+ this.config.tabInfo = {unrestricted, inherited: true};
+ } catch (e) {
+ debug("Exception thrown while checking parent unrestricted tab marker. Something fishy going on...")
+ error(e);
+ }
}
}
}