mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778420 - Add Services getter to SpecialPowers. v1
--HG-- extra : rebase_source : 4d7c95cbcc68afd18a43eaae33012d21e6d4f02a
This commit is contained in:
parent
5a871630bc
commit
3a831373c9
@ -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