1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #3012 from yurydelendik/pdfjs-switch

Fixes PDF application switch in Firefox.
This commit is contained in:
Brendan Dahl 2013-03-31 12:10:16 -07:00
commit 79c3546c92

View file

@ -192,6 +192,7 @@ let PdfJs = {
var handlerInfo = Svc.mime.
getFromTypeAndExtension('application/pdf', 'pdf');
return handlerInfo.alwaysAskBeforeHandling == false &&
handlerInfo.plugin == null &&
handlerInfo.preferredAction == Ci.nsIHandlerInfo.handleInternally;
},