1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00

Bug 1179262 - Remove PlayPreview registration from PDF Viewer.

This commit is contained in:
Yury Delendik 2015-07-02 12:59:17 -05:00
parent 9ad6af4a3f
commit 0b5330781c
4 changed files with 28 additions and 14 deletions

View file

@ -85,12 +85,21 @@ Factory.prototype = {
var registrar = Cm.QueryInterface(Ci.nsIComponentRegistrar);
registrar.registerFactory(proto.classID, proto.classDescription,
proto.contractID, this);
if (proto.classID2) {
this._classID2 = proto.classID2;
registrar.registerFactory(proto.classID2, proto.classDescription,
proto.contractID2, this);
}
},
unregister: function unregister() {
var proto = this._targetConstructor.prototype;
var registrar = Cm.QueryInterface(Ci.nsIComponentRegistrar);
registrar.unregisterFactory(proto.classID, this);
if (this._classID2) {
registrar.unregisterFactory(this._classID2, this);
}
this._targetConstructor = null;
},