From 726325ea0ddf7404fde58587a57cc8a1288fb3f1 Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Mon, 30 Mar 2015 18:35:18 +0100 Subject: [PATCH] Remove onNavigation from onTabSelect, as mentioned in #1125 --- platform/firefox/vapi-background.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index bc1ca6710..a5b5baf53 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -327,24 +327,8 @@ var tabWatcher = { }, onTabSelect: function({target}) { - // target is tab in Firefox, browser in Fennec - var browser = (target.linkedBrowser || target); - var URI = browser.currentURI; - var aboutPath = URI.schemeIs('about') && URI.path; - var tabId = vAPI.tabs.getTabId(target); - - if ( !aboutPath || (aboutPath !== 'blank' && aboutPath !== 'newtab') ) { - vAPI.setIcon(tabId, getOwnerWindow(target)); - return; - } - - if ( browser.webNavigation.busyFlags === 0 /*BUSY_FLAGS_NONE*/ ) { - vAPI.tabs.onNavigation({ - frameId: 0, - tabId: tabId, - url: URI.asciiSpec - }); - } + vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target)); + return; }, };