I need to open an url in incognito mode from chrome extension. Opening it in a new incognito window is simple, but there is no such property for creating new tab.
I tried to store the window object created but seems that the callback parameter is always null incognito windows, but properly populated for normal windows.
Is there a way to open url in incognito tab if there already is an incognito window?
The solution here (How to open new tab in an existing incognito window?) looks fine, but it does not work for me. No incognito window is returned by getAll()
. Does this need any special permission in the manifest (aside tabs
) to work?