1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

No hasAttribute on tab objects in Fennec

This commit is contained in:
Deathamns 2015-03-15 15:06:48 +01:00
parent db158617e0
commit ac09dfadab

View File

@ -1890,13 +1890,13 @@ vAPI.onLoadAllCompleted = function() {
var µb = µBlock; var µb = µBlock;
for ( var tab of this.tabs.getAll() ) { for ( var tab of this.tabs.getAll() ) {
// We're insterested in only the tabs that were already loaded // We're insterested in only the tabs that were already loaded
if ( tab.hasAttribute('pending') ) { if ( !vAPI.fennec && tab.hasAttribute('pending') ) {
continue; continue;
} }
var tabId = this.tabs.getTabId(tab); var tabId = this.tabs.getTabId(tab);
var browser = getBrowserForTab(tab); var browser = getBrowserForTab(tab);
µb.bindTabToPageStats(tabId, browser.currentURI.spec); µb.bindTabToPageStats(tabId, browser.currentURI.asciiSpec);
browser.messageManager.sendAsyncMessage( browser.messageManager.sendAsyncMessage(
location.host + '-load-completed' location.host + '-load-completed'
); );