From ac09dfadabd1df7aafd89c63dd5af467be56b706 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 15 Mar 2015 15:06:48 +0100 Subject: [PATCH] No hasAttribute on tab objects in Fennec --- platform/firefox/vapi-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index e7c342a84..f9e28aaea 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1890,13 +1890,13 @@ vAPI.onLoadAllCompleted = function() { var µb = µBlock; for ( var tab of this.tabs.getAll() ) { // We're insterested in only the tabs that were already loaded - if ( tab.hasAttribute('pending') ) { + if ( !vAPI.fennec && tab.hasAttribute('pending') ) { continue; } var tabId = this.tabs.getTabId(tab); var browser = getBrowserForTab(tab); - µb.bindTabToPageStats(tabId, browser.currentURI.spec); + µb.bindTabToPageStats(tabId, browser.currentURI.asciiSpec); browser.messageManager.sendAsyncMessage( location.host + '-load-completed' );