This website works better with JavaScript.
Explore
Help
Sign In
akira
/
pdfjs-dist
Watch
1
Star
0
Fork
You've already forked pdfjs-dist
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
Generic build of PDF.js library.
5927
Commits
1
Branch
1804
Tags
126 MiB
Tree:
c80df604b9
pdfjs-dist
/
extensions
/
chromium
/
nothing.js
2 lines
75 B
Raw
Normal View
History
Unescape
Escape
[CRX] Change Viewer insertion method And use split incognito mode Previous method: - Rewrite content type to XHTML, followed by a content script to cancel and replace the document with the viewer. ( https://github.com/mozilla/pdf.js/pull/3017 ) New method: - Cancel loading of the document, followed by a redirect to the viewer Disadvantage of new method: - URLs are no longer "nice". This will be addressed by cherry-picking a commit from the crx-using-streams-api branch. Advantages of new method: - Idle time is minimal. In some cases (with large documents), it took too much time before the content script was activated. During this period, the page looked blank, and the contents of the PDF file were still retrieved and **discarded**. With the new method, the idle time is minimal, because the request is immediately cancelled. - No FOUXEP (Flash of unhidden XML error page), because the XHTML Content-Type hack is no longer used.
12 years ago
// This file has no code, and is used to deal with http://crbug.com/302548