Bug 1484466: Part 5 - Use a single QueryInterface method for all nsIFactory instances. r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D3712

--HG--
extra : rebase_source : d63dc47aed6ab8c35b8352437bdde6c9f3fa1b6d
This commit is contained in:
Kris Maglione 2018-08-18 12:55:21 -07:00
Родитель 72a0557c23
Коммит 31bde826fc
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -57,6 +57,8 @@ var EXPORTED_SYMBOLS = [ "XPCOMUtils" ];
let global = Cu.getGlobalForObject({});
const nsIFactoryQI = ChromeUtils.generateQI([Ci.nsIFactory]);
/**
* Redefines the given property on the given object with the given
* value. This can be used to redefine getter properties which do not
@ -452,7 +454,7 @@ var XPCOMUtils = {
throw Cr.NS_ERROR_NO_AGGREGATION;
return (new component()).QueryInterface(iid);
},
QueryInterface: ChromeUtils.generateQI([Ci.nsIFactory])
QueryInterface: nsIFactoryQI
}
}
return factory;
@ -477,7 +479,7 @@ var XPCOMUtils = {
}
return this._instance.QueryInterface(aIID);
},
QueryInterface: ChromeUtils.generateQI([Ci.nsIFactory])
QueryInterface: nsIFactoryQI
};
},