Open Kilian opened 1 year ago
Looking into this, it seems that because I dont provide a tabId, the current implementation picks the webcontents of the sender as the active tab but if that's not added to the extension manager (in my case, the main UI) then getting the tabid returns undefined and the chrome.tabs.update function is aborted:
Is there a way to fall back to whatever webContents was last selected with selectExtensionTab
?
I had a bug in the code which was trying to get the active tab from the window of the MV2 background page. I updated the code to get the active tab from the last focused window instead.
One of my extensions calles chrome.tabs.update with a new URL like so:
I'd like to be able to hook into that call and decide how to update or handle that URL change. Is that possible?