Setting default tab page to about:newTab. Fixes: #184

This commit is contained in:
Jonathan Kingston 2017-02-14 19:11:06 +00:00
parent 3a2e351661
commit 9b82ab2394

View file

@ -3,6 +3,7 @@
* You can obtain one at http://mozilla.org/MPL/2.0/. */
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
const DEFAULT_TAB = "about:newtab";
const HIDE_MENU_TIMEOUT = 300;
@ -504,7 +505,7 @@ const ContainerService = {
userContextId = args.userContextId;
}
const tab = browserWin.gBrowser.addTab(args.url || null, { userContextId });
const tab = browserWin.gBrowser.addTab(args.url || DEFAULT_TAB, { userContextId });
browserWin.gBrowser.selectedTab = tab;
browserWin.focusAndSelectUrlBar();
return true;