I need to know if the chrome tabId is unique across all the open windows. Incognito and normal. Is it guaranteed that non of the open tabs in all the windows will have the same tabId ?
I searched the documentation but could not find any reliable answer.
Yes, the tab ID is unique within a browser session. It’s also mentioned in the documentation of
chrome.tabs:If you still don’t believe it, create an extension which has the
tabspermission, and the right to run in an incognito window. Then run the following code in the background page:The logged numbers are increasing (if you consider two numbers as a too small sample, run the
chrome.windows.createmethod in a loop, until you believe it).