Bug 1370732 - Define Cc and Ci in sanitize.js. r=Gijs draft
authorAndrew McCreight <continuation@gmail.com>
Wed, 31 May 2017 14:24:52 -0700
changeset 590326 45632fa94035eb2de12b8c177b8859f5028ebced
parent 590325 795cf60e061555d4aafd538fc52fe6d315446f6b
child 632191 ce68ee8f62b8975607a9dbb52cd939ea911db2c4
push id62704
push userbmo:continuation@gmail.com
push dateWed, 07 Jun 2017 16:54:34 +0000
reviewersGijs
bugs1370732
milestone55.0a1
Bug 1370732 - Define Cc and Ci in sanitize.js. r=Gijs These are referred to, but never explicitly defined. Under some circumstances with shared JSM globals, this will cause an error. MozReview-Commit-ID: 5DP2NSRoNML
browser/base/content/sanitize.js
--- a/browser/base/content/sanitize.js
+++ b/browser/base/content/sanitize.js
@@ -23,16 +23,19 @@ XPCOMUtils.defineLazyModuleGetter(this, 
                                   "resource://gre/modules/TelemetryStopwatch.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "console",
                                   "resource://gre/modules/Console.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "Preferences",
                                   "resource://gre/modules/Preferences.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "setTimeout",
                                   "resource://gre/modules/Timer.jsm");
 
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+
 /**
  * A number of iterations after which to yield time back
  * to the system.
  */
 const YIELD_PERIOD = 10;
 
 function Sanitizer() {
 }