Good day.
We use the method
crome.tabs.create()
to open a tab immediately after installing the firefox extension.
Example code:
…
var Main = {
…
showRegisterTab: function () {
// if fresh installation
if (!Info.isInstalled) {
if (!Main.isDebugging) {
chrome.tabs.create({‘http://example.com’, active: true});
Info.isInstalled = true;
}
}
},
…
}
…
Main.showRegisterTab();
…
Faced problem that the method opens two identical tabs, instead of one, with an interval of several milliseconds.
The bug is reproduced with clean browser: clean history, cache, cookies … reboot the browser, and then install the extension
If it helps the extension is:
On all other browsers (chrome, opera, yandex) the tab opens only once.
What may cause the problem?
Thank you.