Bug 467021 - "about / chrome start pages should be allowed to load in offline mode" [r=mkmelin]
This commit is contained in:
Родитель
e2b97cd18d
Коммит
9a0eece247
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче