Fixes PDF application switch in Firefox.
Merge pull request #3012 from yurydelendik/pdfjs-switch

Fixes PDF application switch in Firefox.