зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
72a0557c23
Коммит
31bde826fc
|
@ -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
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче