From 4a71699b41b91f0251d2f35174db168bbca7d277 Mon Sep 17 00:00:00 2001 From: portix Date: Sat, 23 Feb 2013 14:51:31 +0100 Subject: Check if message has a firstParty property in requestpolicy; set width of plugin blocker if size and width cannot be computed --- extensions/requestpolicy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extensions/requestpolicy') 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; -- cgit v1.2.3