|
@ -382,8 +382,8 @@ vAPI.tabs.injectScript = function(tabId, details, callback) { |
|
|
|
|
|
|
|
|
// Must read: https://code.google.com/p/chromium/issues/detail?id=410868#c8
|
|
|
// Must read: https://code.google.com/p/chromium/issues/detail?id=410868#c8
|
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/19
|
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/207
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/19
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/207
|
|
|
// Since we may be called asynchronously, the tab id may not exist
|
|
|
// Since we may be called asynchronously, the tab id may not exist
|
|
|
// anymore, so this ensures it does still exist.
|
|
|
// anymore, so this ensures it does still exist.
|
|
|
|
|
|
|
|
@ -548,7 +548,7 @@ CallbackWrapper.prototype.init = function(port, request) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
CallbackWrapper.prototype.proxy = function(response) { |
|
|
CallbackWrapper.prototype.proxy = function(response) { |
|
|
// https://github.com/gorhill/uBlock/issues/383
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/383
|
|
|
if ( this.messaging.ports.hasOwnProperty(this.port.name) ) { |
|
|
if ( this.messaging.ports.hasOwnProperty(this.port.name) ) { |
|
|
this.port.postMessage({ |
|
|
this.port.postMessage({ |
|
|
requestId: this.request.requestId, |
|
|
requestId: this.request.requestId, |
|
@ -585,7 +585,7 @@ vAPI.net.registerListeners = function() { |
|
|
var tail = µburi.path.slice(-6); |
|
|
var tail = µburi.path.slice(-6); |
|
|
var pos = tail.lastIndexOf('.'); |
|
|
var pos = tail.lastIndexOf('.'); |
|
|
|
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/862
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/862
|
|
|
// If no transposition possible, transpose to `object` as per
|
|
|
// If no transposition possible, transpose to `object` as per
|
|
|
// Chromium bug 410382 (see below)
|
|
|
// Chromium bug 410382 (see below)
|
|
|
if ( pos === -1 ) { |
|
|
if ( pos === -1 ) { |
|
@ -706,7 +706,7 @@ vAPI.onLoadAllCompleted = function() { |
|
|
while ( i-- ) { |
|
|
while ( i-- ) { |
|
|
tab = tabs[i]; |
|
|
tab = tabs[i]; |
|
|
µb.bindTabToPageStats(tab.id, tab.url); |
|
|
µb.bindTabToPageStats(tab.id, tab.url); |
|
|
// https://github.com/gorhill/uBlock/issues/129
|
|
|
|
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/129
|
|
|
scriptStart(tab.id); |
|
|
scriptStart(tab.id); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|