summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/requestpolicy5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/requestpolicy b/extensions/requestpolicy
index a5ab0236..44455c8d 100644
--- a/extensions/requestpolicy
+++ b/extensions/requestpolicy
@@ -366,7 +366,10 @@ var resourceCB = (function ()
if (!message)
return false;
- firstParty = util.domainFromHost(message.firstParty.host);
+ if (message.firstParty)
+ firstParty = util.domainFromHost(message.firstParty.host);
+ else
+ firstParty = wv.mainFrame.domain;
domain = util.domainFromHost(message.uri.host);
if (firstParty == domain)
return false;