mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
comments
This commit is contained in:
parent
1f4ff9c809
commit
1c05281183
2 changed files with 9 additions and 2 deletions
|
@ -32,6 +32,12 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
// Useful links
|
||||||
|
//
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||||
const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
|
const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
|
||||||
|
|
||||||
|
@ -1052,6 +1058,7 @@ var httpObserver = {
|
||||||
},
|
},
|
||||||
|
|
||||||
register: function() {
|
register: function() {
|
||||||
|
// https://developer.mozilla.org/en/docs/Observer_Notifications#HTTP_requests
|
||||||
Services.obs.addObserver(this, 'http-on-opening-request', true);
|
Services.obs.addObserver(this, 'http-on-opening-request', true);
|
||||||
Services.obs.addObserver(this, 'http-on-examine-response', true);
|
Services.obs.addObserver(this, 'http-on-examine-response', true);
|
||||||
Services.obs.addObserver(this, 'http-on-examine-cached-response', true);
|
Services.obs.addObserver(this, 'http-on-examine-cached-response', true);
|
||||||
|
@ -1157,8 +1164,6 @@ var httpObserver = {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
// https://developer.mozilla.org/en/docs/Observer_Notifications#HTTP_requests
|
|
||||||
//
|
|
||||||
observe: function(channel, topic) {
|
observe: function(channel, topic) {
|
||||||
if ( channel instanceof Ci.nsIHttpChannel === false ) {
|
if ( channel instanceof Ci.nsIHttpChannel === false ) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -372,6 +372,8 @@ vAPI.tabs.onNavigation = function(details) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//console.log('vAPI.tabs.onNavigation: %s %s %o', details.url, details.transitionType, details.transitionQualifiers);
|
||||||
|
|
||||||
µm.tabContextManager.commit(tabId, details.url);
|
µm.tabContextManager.commit(tabId, details.url);
|
||||||
µm.bindTabToPageStats(tabId, 'commit');
|
µm.bindTabToPageStats(tabId, 'commit');
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue