Bug 1233250: Part 1 - Set offline snackbar background to link_blue r=sebastian draft
authorGrigory Kruglov <gkruglov@mozilla.com>
Fri, 06 May 2016 11:32:52 -0700
changeset 364490 e6f7212780e86c82c85f8cdfe7dfa46edefa957d
parent 364489 3a47ea585a13e2bd891d43d964eb0a3603fba91e
child 364491 3cd44ba86958c9d0bd72990ea20710524180742e
push id17469
push usergkruglov@mozilla.com
push dateFri, 06 May 2016 18:37:51 +0000
reviewerssebastian
bugs1233250
milestone49.0a1
Bug 1233250: Part 1 - Set offline snackbar background to link_blue r=sebastian MozReview-Commit-ID: Bjc1RO95Hx
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -7227,17 +7227,24 @@ var Tabs = {
         if (this._useCache) {
           let targetDoc = aEvent.originalTarget;
           let isTopLevel = (targetDoc.defaultView.parent === targetDoc.defaultView);
 
           // Ignore any about: pages, especially about:neterror since it means we failed to find the page in cache.
           let targetURI = targetDoc.documentURI;
           if (isTopLevel && !targetURI.startsWith("about:")) {
             UITelemetry.addEvent("neterror.1", "toast", null, "usecache");
-            Snackbars.show(Strings.browser.GetStringFromName("networkOffline.message"), Snackbars.LENGTH_INDEFINITE);
+            Snackbars.show(
+              Strings.browser.GetStringFromName("networkOffline.message"),
+              Snackbars.LENGTH_INDEFINITE,
+              {
+                // link_blue
+                backgroundColor: "#0096DD"
+              }
+            );
           }
         }
         break;
       case "TabOpen":
         // Use opening a new tab as a trigger to expire the most stale tab.
         this.expireLruTab();
         break;
     }