Bug 1254523 - Use constants for Cu and isFirefox; r=automatedtester a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 08 Mar 2016 13:59:54 +0000
changeset 351226 c227a219b984e937d5ab6f451d18967c1c80d42a
parent 351225 c6af39f64775b5a8a71e08e2fb28436fd990b401
child 351227 cb4cb7b7278440663fc1389b9988bddea70d18b3
push id15502
push userahunt@mozilla.com
push dateThu, 14 Apr 2016 20:27:48 +0000
reviewersautomatedtester, test-only
bugs1254523
milestone47.0a2
Bug 1254523 - Use constants for Cu and isFirefox; r=automatedtester a=test-only MozReview-Commit-ID: IegkoO86uWP
testing/marionette/modal.js
--- a/testing/marionette/modal.js
+++ b/testing/marionette/modal.js
@@ -1,21 +1,21 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-var {utils: Cu} = Components;
+const {utils: Cu} = Components;
 
 Cu.import("resource://gre/modules/Services.jsm");
 
 this.EXPORTED_SYMBOLS = ["modal"];
 
-var isFirefox = () => Services.appinfo.name == "Firefox";
+const isFirefox = () => Services.appinfo.name == "Firefox";
 
 this.modal = {};
 modal = {
   COMMON_DIALOG_LOADED: "common-dialog-loaded",
   TABMODAL_DIALOG_LOADED: "tabmodal-dialog-loaded",
   handlers: {
     "common-dialog-loaded": new Set(),
     "tabmodal-dialog-loaded": new Set()