Bug 944537 - Use message data to decide whether to show Tab progress or not (r=mfinkle)
authorLucas Rocha <lucasr@mozilla.com>
Tue, 03 Dec 2013 16:20:31 +0000
changeset 174127 a1445386e051b28068f11bb6663a9be12d5a7187
parent 174126 51cb8e90b8194e13a8736972d5b156633633f6ed
child 174128 918596edaa773a76b337c93f3370d706b85032cd
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs944537
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 944537 - Use message data to decide whether to show Tab progress or not (r=mfinkle)
mobile/android/base/Tab.java
--- a/mobile/android/base/Tab.java
+++ b/mobile/android/base/Tab.java
@@ -670,17 +670,17 @@ public class Tab {
     }
 
     private static boolean shouldShowProgress(final String url) {
         return AboutPages.isAboutHome(url) ||
                AboutPages.isAboutReader(url);
     }
 
     void handleDocumentStart(boolean showProgress, String url) {
-        setState(shouldShowProgress(url) ? STATE_SUCCESS : STATE_LOADING);
+        setState(showProgress ? STATE_LOADING : STATE_SUCCESS);
         updateIdentityData(null);
         setReaderEnabled(false);
     }
 
     void handleDocumentStop(boolean success) {
         setState(success ? STATE_SUCCESS : STATE_ERROR);
 
         final String oldURL = getURL();