Bug 1366023 - Explicitly import Services.jsm in a few content scripts. r=Gijs

MozReview-Commit-ID: 5HS9tXk3oa9

--HG--
extra : rebase_source : f63765ed9759073b00a66c35f07dbb11c1585326
This commit is contained in:
Andrew McCreight 2017-05-12 15:57:53 -07:00
parent cdb35b77a5
commit 9cc36bb50a
3 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,8 @@
* Generally it just delegates to EventUtils.js.
*/
Components.utils.import("resource://gre/modules/Services.jsm");
// Set up a dummy environment so that EventUtils works. We need to be careful to
// pass a window object into each EventUtils method we call rather than having
// it rely on the |window| global.

View File

@ -5,6 +5,8 @@
* order to be used as a replacement for UniversalXPConnect
*/
Components.utils.import("resource://gre/modules/Services.jsm");
function SpecialPowers(window) {
this.window = Components.utils.getWeakReference(window);
this._windowID = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)

View File

@ -5,6 +5,7 @@
var Ci = Components.interfaces;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "WebNavigationFrames",
"resource://gre/modules/WebNavigationFrames.jsm");