Hello, I am developping my first addon with WebExtensions API (available on AMO here and on GitHub here) and I am facing some issues with Firefox Android about creating tabs:
- In Android Firefox Nightly 57.0, in the browserAction popup when a user clicks on a button to open a new tab, the new tab is created but the popup closes and focus is given to the previous active tab (before openning popup). I have to use a setTimeout to focus again the new tab as below.
browser.tabs.create({url: "https://example.com", active: true},function(tab){
if(android) setTimeout(function(){
browser.tabs.update(tab.id,{active: true})
},500);
});
- In Android Firefox all versions, API doesn’t provide any method to open a private tab. browser.tabs.create doesn’t accept incognito parameter and the only method is to use browser.windows as below which is not supported on Android.
browser.windows.create({url: "https://example.com", incognito: true});
How to force new tabs to be active from browserAction popup on Android ?
Is there any alternative method to create a private tab on Android ?