Bug #377178 --> when the user is offline, load about:blank for the start page instead of the remote start page.
r=phil git-svn-id: svn://10.0.0.236/trunk@225128 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -482,18 +482,12 @@ function loadStartPage()
|
||||
try
|
||||
{
|
||||
gMessageNotificationBar.clearMsgNotifications();
|
||||
|
||||
var startpageenabled = pref.getBoolPref("mailnews.start_page.enabled");
|
||||
// only load the start page if we are online
|
||||
if (startpageenabled && MailOfflineMgr.isOnline())
|
||||
{
|
||||
var startpage = getFormattedRegionURL(startPageUrlPref());
|
||||
if (startpage)
|
||||
{
|
||||
GetMessagePaneFrame().location.href = startpage;
|
||||
ClearMessageSelection();
|
||||
}
|
||||
}
|
||||
var startpage = getFormattedRegionURL(startPageUrlPref());
|
||||
// load about:blank as the start page if we are offline or we don't have a start page url...
|
||||
GetMessagePaneFrame().location.href = startpageenabled && startpage && MailOfflineMgr.isOnline() ? startpage : "about:blank";
|
||||
ClearMessageSelection();
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user