From 1256440fc77e2e516ad7e7ef2ae42949aa5f232b Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 27 Apr 2007 06:49:29 +0000 Subject: [PATCH] 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 --- mozilla/mail/base/content/mailWindow.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/mozilla/mail/base/content/mailWindow.js b/mozilla/mail/base/content/mailWindow.js index c9dd346c731..8a5175e968e 100644 --- a/mozilla/mail/base/content/mailWindow.js +++ b/mozilla/mail/base/content/mailWindow.js @@ -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) {