mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
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:
parent
cdb35b77a5
commit
9cc36bb50a
@ -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.
|
||||
|
@ -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)
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user