ability to load multiple urls. bug 323020

This commit is contained in:
mgalli%geckonnection.com 2006-04-13 21:30:02 +00:00
Родитель fe491d71d3
Коммит 42d4c7a7ed
1 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -317,10 +317,11 @@ nsBrowserStatusHandler.prototype =
/* moved this as global */
function MiniNavStartup()
function MiniNavStartup()
{
var homepage = "http://www.mozilla.org";
var homepages = null;
try {
gBrowser = document.getElementById("content");
@ -368,11 +369,15 @@ nsBrowserStatusHandler.prototype =
var page = gPref.getCharPref("browser.startup.homepage");
var bookmarkstore = gPref.getCharPref("browser.bookmark.store");
if (page != null)
{
var fixedUpURI = gURIFixup.createFixupURI(page, 2 /*fixup url*/ );
homepage = fixedUpURI.spec;
if ( page.split("|").length > 1 ) {
homepages = page.split("|");
} else {
if (page != null) {
var fixedUpURI = gURIFixup.createFixupURI(page, 2 /*fixup url*/ );
homepage = fixedUpURI.spec;
}
}
} catch (ignore) {}
} catch (e) {
@ -385,7 +390,11 @@ nsBrowserStatusHandler.prototype =
"@mozilla.org/transfer;1",
new TransferItemFactory());
loadURI(homepage);
if(homepages) {
gBrowser.loadTabs(homepages,true,true); // force load in background.
} else {
loadURI(homepage);
}
loadBookmarks(bookmarkstore);
/*