mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Add support for disabling the firefox extension on the fly
This commit is contained in:
parent
03c779a2e5
commit
0331847927
2 changed files with 17 additions and 4 deletions
|
@ -32,6 +32,9 @@ pdfContentHandler.prototype = {
|
|||
if (!(aRequest instanceof Ci.nsIChannel))
|
||||
throw NS_ERROR_WONT_HANDLE_CONTENT;
|
||||
|
||||
if (!Services.prefs.getBoolPref('extensions.pdf.js.active'))
|
||||
throw NS_ERROR_WONT_HANDLE_CONTENT;
|
||||
|
||||
let window = null;
|
||||
let callbacks = aRequest.notificationCallbacks ||
|
||||
aRequest.loadGroup.notificationCallbacks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue