Bug 1207499 - Part 8: Remove use of expression closure from security/. r=keeler
authorTooru Fujisawa <arai_a@mac.com>
Wed, 23 Sep 2015 18:42:19 +0900
changeset 265266 89469953a96a651ee4e98c11cbbfd4a124f3a2d3
parent 265265 63b57083408fdb3dea78119526bf65cefbefc9f8
child 265267 d5b11364d743f976061a9d22c15826477e53baae
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)
reviewerskeeler
bugs1207499
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 1207499 - Part 8: Remove use of expression closure from security/. r=keeler
security/manager/ssl/tests/mochitest/browser/browser_certViewer.js
--- a/security/manager/ssl/tests/mochitest/browser/browser_certViewer.js
+++ b/security/manager/ssl/tests/mochitest/browser/browser_certViewer.js
@@ -24,16 +24,20 @@ function test() {
                  .getService(Ci.nsIX509CertDB);
   let certList = certdb.getCerts();
   let enumerator = certList.getEnumerator();
   ok(enumerator.hasMoreElements(), "we have at least one certificate");
   let cert = enumerator.getNext().QueryInterface(Ci.nsIX509Cert);
   ok(cert, "found a certificate to look at");
   info("looking at certificate with nickname " + cert.nickname);
   let arg = {
-    QueryInterface: function() this,
-    getISupportAtIndex: function() this.cert,
+    QueryInterface: function() {
+      return this;
+    },
+    getISupportAtIndex: function() {
+      return this.cert;
+    },
     cert: cert
   };
   gBugWindow = window.openDialog("chrome://pippki/content/certViewer.xul",
                                  "", "", arg);
   gBugWindow.addEventListener("load", onLoad);
 }