google chrome extension - onBeforeNavigate returns tabId which doesn't exist -



google chrome extension - onBeforeNavigate returns tabId which doesn't exist -

i'm trying create theses line work:

chrome.webnavigation.onbeforenavigate.addlistener(function(details) { chrome.tabs.update(details.tabid, {url: "http://www.google.com"}, function() {}); }, {url: [{hostequals: 'yahoo.com'}]});

sometimes, error: error during tabs.update: no tab id: 294.

strange, have reason that?

thanks in advance help

it seems onbeforenavigate works autocomplete url prefetch maybe ...

using onbeforenavigate instead of onbeforenavigate removes bug!

google-chrome-extension

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -