1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

minor code review (HTTP observer)

This commit is contained in:
gorhill 2016-06-21 08:04:31 -04:00
parent 77da1aabb3
commit eb5421d686

View File

@ -2191,16 +2191,12 @@ var httpObserver = {
// Behind-the-scene request... Yes, really.
if ( pendingRequest === null ) {
if ( this.handleRequest(channel, URI, { tabId: vAPI.noTabId, rawtype: rawtype }) ) {
return;
}
// Carry data for behind-the-scene redirects
if ( channel instanceof Ci.nsIWritablePropertyBag ) {
channel.setProperty(this.REQDATAKEY, [0, -1, vAPI.noTabId, rawtype]);
}
return;
pendingRequest = {
frameId: 0,
parentFrameId: -1,
tabId: vAPI.noTabId,
rawtype: rawtype
};
}
// https://github.com/gorhill/uBlock/issues/654