Bug 1370732 - Define Cc and Ci in sanitize.js. r=Gijs
authorAndrew McCreight <continuation@gmail.com>
Wed, 31 May 2017 14:24:52 -0700
changeset 410974 4ae5d273a14975c2b5ddc609eb1abdf2bed5ff99
parent 410973 7c0b44852e1e5688040f6ff5d48d8d8ca0907cc1
child 410975 a39f666af494d11f0ca6b67e08db983e05d01e8a
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1370732
milestone55.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 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,18 @@ 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: classes, Ci: interfaces} = Components;
+
 /**
  * A number of iterations after which to yield time back
  * to the system.
  */
 const YIELD_PERIOD = 10;
 
 function Sanitizer() {
 }