Bug 464714 - don't hide errors in view-navigation, r/sr=bienvenu
authorJoey Minta <jminta@gmail.com>
Fri, 14 Nov 2008 15:01:52 -0500
changeset 1111 46a840a625b191addaf23e0f2986f45482cd7096
parent 1110 0f29f61153ba083211fb8c67a71618890422ff5f
child 1112 ae10843a24228437953d01dfef0754cdc583766c
push idunknown
push userunknown
push dateunknown
bugs464714
Bug 464714 - don't hide errors in view-navigation, r/sr=bienvenu
mailnews/base/resources/content/msgViewNavigation.js
--- a/mailnews/base/resources/content/msgViewNavigation.js
+++ b/mailnews/base/resources/content/msgViewNavigation.js
@@ -292,21 +292,14 @@ function ScrollToMessage(type, wrap, sel
   }
   catch (ex) {
     return false;
   }
 }
 
 function GoNextMessage(type, startFromBeginning)
 {
-  try {
-    var succeeded = ScrollToMessage(type, startFromBeginning, true);
-    if (!succeeded) {
-      CrossFolderNavigation(type);
-    }
-  }
-  catch (ex) {
-    dump("GoNextMessage ex = " + ex + "\n");
-  }
+  if (!ScrollToMessage(type, startFromBeginning, true))
+    CrossFolderNavigation(type);
 
   SetFocusThreadPaneIfNotOnMessagePane();
 }