mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Bug 778420 - Add Services getter to SpecialPowers. r=jmaher
--HG-- extra : rebase_source : 6e0962a1fc3629d682beb4c36537ee0b11c9d810
This commit is contained in:
parent
5d98b37929
commit
02c179cf8d
@ -9,6 +9,7 @@ var Ci = Components.interfaces;
|
||||
var Cc = Components.classes;
|
||||
|
||||
Components.utils.import("resource://mochikit/MockFilePicker.jsm");
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
function SpecialPowersAPI() {
|
||||
this._consoleListeners = [];
|
||||
@ -409,6 +410,10 @@ SpecialPowersAPI.prototype = {
|
||||
return MockFilePicker
|
||||
},
|
||||
|
||||
get Services() {
|
||||
return wrapPrivileged(Services);
|
||||
},
|
||||
|
||||
getDOMWindowUtils: function(aWindow) {
|
||||
if (aWindow == this.window.get() && this.DOMWindowUtils != null)
|
||||
return this.DOMWindowUtils;
|
||||
|
Loading…
Reference in New Issue
Block a user