Bug 932335 - Part 2: add about:home to CHROMEUI whitelist r=nalexander
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 28 Jan 2016 17:08:53 -0800
changeset 324139 37846cb483b903ff7ab8df396ede6b4c0889035e
parent 324138 0a86d2aee5eb037767c6161b89a6816d64eda887
child 324140 aee75e50fbc15694bbe48724eb28dea184ef985e
push id9671
push userraliiev@mozilla.com
push dateMon, 06 Jun 2016 20:27:52 +0000
treeherdermozilla-aurora@cea65ca3d0bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs932335
milestone49.0a1
Bug 932335 - Part 2: add about:home to CHROMEUI whitelist r=nalexander This is required so that about:home can continue to load the search icon which it uses as its favicon. MozReview-Commit-ID: 2ahHRR4yR91
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6320,17 +6320,17 @@ var IdentityHandler = {
       return this.IDENTITY_MODE_VERIFIED;
     }
 
     if (aState & Ci.nsIWebProgressListener.STATE_IS_SECURE) {
       return this.IDENTITY_MODE_IDENTIFIED;
     }
 
     // We also allow "about:" by allowing the selector to be empty (i.e. '(|.....|...|...)'
-    let whitelist = /^about:($|about|accounts|addons|buildconfig|cache|config|crashes|devices|downloads|fennec|firefox|feedback|healthreport|license|logins|logo|memory|mozilla|networking|plugins|privatebrowsing|rights|serviceworkers|support|telemetry|webrtc)($|\?)/i;
+    let whitelist = /^about:($|about|accounts|addons|buildconfig|cache|config|crashes|devices|downloads|fennec|firefox|feedback|healthreport|home|license|logins|logo|memory|mozilla|networking|plugins|privatebrowsing|rights|serviceworkers|support|telemetry|webrtc)($|\?)/i;
     if (uri.schemeIs("about") && whitelist.test(uri.spec)) {
         return this.IDENTITY_MODE_CHROMEUI;
     }
 
     return this.IDENTITY_MODE_UNKNOWN;
   },
 
   getMixedDisplayMode: function getMixedDisplayMode(aState) {