diff options
author | portix <none@none> | 2013-02-23 14:51:31 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-23 14:51:31 +0100 |
commit | 4a71699b41b91f0251d2f35174db168bbca7d277 (patch) | |
tree | 06b27eb8a7947001daa99160e5ffd92749be05fa /extensions/requestpolicy | |
parent | ca0edc249144007571dc54fd432fa2a651d6f53b (diff) | |
download | dwb-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/requestpolicy | 5 |
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; |