Search code examples
google-chromegoogle-chrome-extensiongoogle-chrome-app

chrome.tabs.create in incognito window opens a tab in normal window


This bug has been reported here too(closed as obsolete):

https://code.google.com/p/chromium/issues/detail?id=72948

I want to create a new tab in current incognito window . The call to chrome.tabs.create will be made in background page. How can I achieve this? Is there any workaround?


Solution

  • Well guys I made it work after adding permission "incognito":"split" in manifest.json

    It is explained in the docs :

    https://developer.chrome.com/extensions/manifest/incognito