mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +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()
|
function BrowserOpenTab()
|
||||||
{
|
{
|
||||||
if (!gInPrintPreviewMode) {
|
if (!gInPrintPreviewMode) {
|
||||||
var homePage = getHomePage();
|
var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser']
|
||||||
var uriToLoad = homePage[0];
|
.getService(Components.interfaces.nsICmdLineHandler);
|
||||||
|
var uriToLoad = handler.defaultArgs.split("\n")[0];
|
||||||
gBrowser.selectedTab = gBrowser.addTab(uriToLoad);
|
gBrowser.selectedTab = gBrowser.addTab(uriToLoad);
|
||||||
var navBar = document.getElementById("nav-bar");
|
var navBar = document.getElementById("nav-bar");
|
||||||
if (uriToLoad == "about:blank" && !navBar.hidden && window.locationbar.visible)
|
if (uriToLoad == "about:blank" && !navBar.hidden && window.locationbar.visible)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user