Bug 1186409 - Fix code that tries to get the global by using |this|. r=kmag

MozReview-Commit-ID: C5ixngtvzWU

--HG--
extra : rebase_source : 65507b2d1f58a8f1f1e36e2153ed1d490f4a86dc
This commit is contained in:
Andrew McCreight 2017-05-25 14:12:12 -07:00
parent 4e0862f056
commit 614d92ab8f
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ var DEBUG = false; // non-const *only* so tweakable in server tests
/** True if debugging output should be timestamped. */
var DEBUG_TIMESTAMP = false; // non-const so tweakable in server tests
var gGlobalObject = this;
var gGlobalObject = Cu.getGlobalForObject(this);
/**
* Asserts that the given condition holds. If it doesn't, the given message is

View File

@ -54,7 +54,7 @@ var DEBUG = false; // non-const *only* so tweakable in server tests
/** True if debugging output should be timestamped. */
var DEBUG_TIMESTAMP = false; // non-const so tweakable in server tests
var gGlobalObject = this;
var gGlobalObject = Cu.getGlobalForObject(this);
/**
* Asserts that the given condition holds. If it doesn't, the given message is

View File

@ -32,7 +32,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "styleSheetService",
"@mozilla.org/content/style-sheet-service;1",
"nsIStyleSheetService");
const global = this;
const global = Cu.getGlobalForObject(this);
Cu.import("resource://gre/modules/ExtensionUtils.jsm");