зеркало из https://github.com/mozilla/pjs.git
Add a classID check in generateNSGetFactory, from bug 568691 comment 62.
This commit is contained in:
Родитель
ab3b0d5f85
Коммит
179200ae39
|
@ -131,6 +131,9 @@ var XPCOMUtils = {
|
|||
generateNSGetFactory: function XPCU_generateNSGetFactory(componentsArray) {
|
||||
let classes = {};
|
||||
for each (let component in componentsArray) {
|
||||
if (!(component.prototype.classID instanceof Components.ID))
|
||||
throw Error("In generateNSGetFactory, classID missing or incorrect for component " + component);
|
||||
|
||||
classes[component.prototype.classID] = this._getFactory(component);
|
||||
}
|
||||
return function NSGetFactory(cid) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче