mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bug 109551: load the "page to load on startup / new window", instead of always loading the homepage (bad me, no cookie!). r=biesi, sr=bryner
This commit is contained in:
parent
4abbf44f2f
commit
abcad573c6
@ -1095,8 +1095,9 @@ function BrowserOpenWindow()
|
||||
function BrowserOpenTab()
|
||||
{
|
||||
if (!gInPrintPreviewMode) {
|
||||
var homePage = getHomePage();
|
||||
var uriToLoad = homePage[0];
|
||||
var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser']
|
||||
.getService(Components.interfaces.nsICmdLineHandler);
|
||||
var uriToLoad = handler.defaultArgs.split("\n")[0];
|
||||
gBrowser.selectedTab = gBrowser.addTab(uriToLoad);
|
||||
var navBar = document.getElementById("nav-bar");
|
||||
if (uriToLoad == "about:blank" && !navBar.hidden && window.locationbar.visible)
|
||||
|
Loading…
x
Reference in New Issue
Block a user