Bug 467021 - "about / chrome start pages should be allowed to load in offline mode" [r=mkmelin]

This commit is contained in:
Przemyslaw Bialik 2008-12-02 21:04:29 +00:00
Родитель e2b97cd18d
Коммит 9a0eece247
1 изменённых файлов: 10 добавлений и 4 удалений

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

@ -519,10 +519,16 @@ function loadStartPage()
.getService(Components.interfaces.nsIURLFormatter)
.formatURLPref(startPageUrlPref());
// Load about:blank as the start page if we are offline or we don't have
// a start page url...
GetMessagePaneFrame().location.href = startpage && MailOfflineMgr.isOnline() ?
startpage : "about:blank";
// Load about:blank as the start page if we are offline and uri.scheme
// is not http / https or we don't have a start page url...
try {
var scheme = makeURI(startpage).scheme;
} catch (ex) {}
if (startpage && (MailOfflineMgr.isOnline() || (!MailOfflineMgr.isOnline()
&& scheme != "http" && scheme != "https")))
GetMessagePaneFrame().location.href = startpage;
else
GetMessagePaneFrame().location.href = "about:blank";
ClearMessageSelection();
}
catch (ex)