|
|
|
|
@ -382,8 +382,8 @@ vAPI.tabs.injectScript = function(tabId, details, callback) {
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
// anymore, so this ensures it does still exist.
|
|
|
|
|
|
|
|
|
|
@ -548,7 +548,7 @@ CallbackWrapper.prototype.init = function(port, request) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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) ) {
|
|
|
|
|
this.port.postMessage({
|
|
|
|
|
requestId: this.request.requestId,
|
|
|
|
|
@ -585,7 +585,7 @@ vAPI.net.registerListeners = function() {
|
|
|
|
|
var tail = µburi.path.slice(-6);
|
|
|
|
|
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
|
|
|
|
|
// Chromium bug 410382 (see below)
|
|
|
|
|
if ( pos === -1 ) {
|
|
|
|
|
@ -706,7 +706,7 @@ vAPI.onLoadAllCompleted = function() {
|
|
|
|
|
while ( i-- ) {
|
|
|
|
|
tab = tabs[i];
|
|
|
|
|
µb.bindTabToPageStats(tab.id, tab.url);
|
|
|
|
|
// https://github.com/gorhill/uBlock/issues/129
|
|
|
|
|
// https://github.com/chrisaljoudi/uBlock/issues/129
|
|
|
|
|
scriptStart(tab.id);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|