Bug 1207490 - Part 10: Remove use of expression closure from browser/modules/ContentLinkHandler.jsm. r=Gijs
authorTooru Fujisawa <arai_a@mac.com>
Wed, 23 Sep 2015 17:57:37 +0900
changeset 265252 932cb872289f7fc9096fdf032d7da3155e7a8e3f
parent 265251 04ba29693dd501a1ec5d950e321039cb56344062
child 265253 8593648ed49e2143ee71af5dd08f425477b761a3
push id65891
push userarai_a@mac.com
push dateWed, 30 Sep 2015 16:36:04 +0000
treeherdermozilla-inbound@10194aec7255 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1207490
milestone44.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 1207490 - Part 10: Remove use of expression closure from browser/modules/ContentLinkHandler.jsm. r=Gijs
browser/modules/ContentLinkHandler.jsm
--- a/browser/modules/ContentLinkHandler.jsm
+++ b/browser/modules/ContentLinkHandler.jsm
@@ -139,17 +139,17 @@ this.ContentLinkHandler = {
     // Verify that the load of this icon is legal.
     // Some error or special pages can load their favicon.
     // To be on the safe side, only allow chrome:// favicons.
     var isAllowedPage = [
       /^about:neterror\?/,
       /^about:blocked\?/,
       /^about:certerror\?/,
       /^about:home$/,
-    ].some(function (re) re.test(targetDoc.documentURI));
+    ].some(re => re.test(targetDoc.documentURI));
 
     if (!isAllowedPage || !uri.schemeIs("chrome")) {
       var ssm = Services.scriptSecurityManager;
       try {
         ssm.checkLoadURIWithPrincipal(targetDoc.nodePrincipal, uri,
                                       Ci.nsIScriptSecurityManager.DISALLOW_SCRIPT);
       } catch(e) {
         return null;