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:
parent
9ad6af4a3f
commit
0b5330781c
4 changed files with 28 additions and 14 deletions
9
extensions/firefox/bootstrap.js
vendored
9
extensions/firefox/bootstrap.js
vendored
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue