mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add a classID check in generateNSGetFactory, from bug 568691 comment 62.
This commit is contained in:
parent
d49707c7de
commit
a4bcbea743
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user