From 18a636305f678417b82bc8d686c932e3f5b3201b Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sat, 28 Feb 2015 07:38:41 +0100 Subject: [PATCH] Firefox: behind-the-scene request types --- platform/firefox/vapi-background.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 9dea03ea2..397e36d41 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1064,7 +1064,10 @@ var httpObserver = { var lastRequest = this.lastRequest; if ( lastRequest.url === null ) { - this.handleRequest(channel, URI, {tabId: vAPI.noTabId, type: 1}); + this.handleRequest(channel, URI, { + tabId: vAPI.noTabId, + type: channel.loadInfo && channel.loadInfo.contentPolicyType || 1 + }); return; }