summaryrefslogtreecommitdiff
path: root/extensions/requestpolicy
diff options
context:
space:
mode:
authorportix <none@none>2013-02-23 14:51:31 +0100
committerportix <none@none>2013-02-23 14:51:31 +0100
commit4a71699b41b91f0251d2f35174db168bbca7d277 (patch)
tree06b27eb8a7947001daa99160e5ffd92749be05fa /extensions/requestpolicy
parentca0edc249144007571dc54fd432fa2a651d6f53b (diff)
downloaddwb-4a71699b41b91f0251d2f35174db168bbca7d277.zip
Check if message has a firstParty property in requestpolicy; set width of plugin blocker if size and width cannot be computed
Diffstat (limited to 'extensions/requestpolicy')
-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;