From 1c052811837dec8ef5b315557803f91530ab0383 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 30 Apr 2015 09:58:45 -0400 Subject: [PATCH] comments --- platform/firefox/vapi-background.js | 9 +++++++-- src/js/tab.js | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index f9ca972..dd164b0 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -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 {Services} = Cu.import('resource://gre/modules/Services.jsm', null); @@ -1052,6 +1058,7 @@ var httpObserver = { }, 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-examine-response', true); Services.obs.addObserver(this, 'http-on-examine-cached-response', true); @@ -1157,8 +1164,6 @@ var httpObserver = { return false; }, - // https://developer.mozilla.org/en/docs/Observer_Notifications#HTTP_requests - // observe: function(channel, topic) { if ( channel instanceof Ci.nsIHttpChannel === false ) { return; diff --git a/src/js/tab.js b/src/js/tab.js index f1d8f8c..8f12085 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -372,6 +372,8 @@ vAPI.tabs.onNavigation = function(details) { return; } + //console.log('vAPI.tabs.onNavigation: %s %s %o', details.url, details.transitionType, details.transitionQualifiers); + µm.tabContextManager.commit(tabId, details.url); µm.bindTabToPageStats(tabId, 'commit'); };