hi,
I get the tabid from onBeforeRequest listener like below:
chrome.webRequest.onBeforeRequest.addListener(function(details) {
var current_tabId = details.tabId;
chrome.tabs.get(current_tabId,function(tab) {
});
}, {urls: ['http://*/*', 'https://*/*']});
But I get the following error:
Unchecked runtime.lastError while running tabs.get: No tab with id: 70.
at chrome.webRequest.onBeforeRequest.addListener.urls
How can it be possible that this tab does not exist? Are there some tabs which exist temporarily?
Thanks