mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
Bug 1085162 - Make the original appinfo instance a prototype of the fake one in telemetry tests. r=froydnj
This commit is contained in:
parent
766fb7c188
commit
21746cb072
@ -6,6 +6,8 @@
|
||||
const XULAPPINFO_CONTRACTID = "@mozilla.org/xre/app-info;1";
|
||||
const XULAPPINFO_CID = Components.ID("{c763b610-9d49-455a-bbd2-ede71682a1ac}");
|
||||
let gAppInfo;
|
||||
let gOldAppInfo = Components.classes[XULAPPINFO_CONTRACTID]
|
||||
.getService(Components.interfaces.nsIXULRuntime);
|
||||
|
||||
function createAppInfo(id, name, version, platformVersion) {
|
||||
gAppInfo = {
|
||||
@ -40,6 +42,8 @@ function createAppInfo(id, name, version, platformVersion) {
|
||||
Ci.nsISupports])
|
||||
};
|
||||
|
||||
Object.setPrototypeOf(gAppInfo, gOldAppInfo);
|
||||
|
||||
var XULAppInfoFactory = {
|
||||
createInstance: function (outer, iid) {
|
||||
if (outer != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user