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
Post a Comment