Rob Wu
84ae29c21d
Improve suggested filename on download
...
For all of the following URLs, "file.pdf" will be suggested:
http://.../file.pdf
http://.../download.aspx?file=file.pdf&whatever
http://.../get.pdf?name=file.pdf&whatever
http://.../single-page-app#view=file.pdf
http://.../download.aspx?file=%2Fpath%2Fto%2Ffile.pdf&whatever
Fixes #3161
12 years ago
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
12 years ago
Rob Wu
cc04cf5d1f
Configurable IMAGE_DIR for annotations
...
The Chrome extension activates PDF.js by inserting the script tags
in a document whose URL and location origin is identical to the PDF
file.
Because of this, the path './images/' was resolved relatively to the
location of the PDF file instead of the extension.
To fix this, the IMAGE_DIR constant is moved outside the local scope,
to allow extensions/chrome/insertviewer.js to override the value.
Originally, the IMAGE_DIR variable was a global variable, but commit
f8f4b3f45d
moved the global variable
to the local scope, causing the extension to malfunction.
Impact: low, the only consequence is that some rarely used images
were not visible.
Trivial test:
At the center of page 2, the annotation icon
(images/annotation-comment.svg) should be visible:
http://linorg.usp.br/CTAN/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf
12 years ago
Brendan Dahl
7eae88669a
Bug 879161 - Fix pdf.js mimetype check.
12 years ago
Rob Wu
be012ed1df
[CRX] Don't intercept download of PDF attachment
...
Fixes #3426
12 years ago
Rob Wu
efcf2aed6e
[Chrome extension] Added JSDocs to pdfHandler.js
...
And a small refactor to reduce the LOC in the onHeadersReceived
callback, to improve the readability of the code.
12 years ago
Yury Delendik
3461d02d05
Enforces trailing spaces
12 years ago
Brendan Dahl
aafb5d44ae
Make the progress bar small and on the top.
12 years ago
Vladan Djeric
0fae231526
Avoid triggering plugin list initialization on startup (Bugzilla 881575)
12 years ago
Brendan Dahl
c2bdd7b295
Simplify getting the pdf url.
12 years ago
Rex Lee
3e480f84a6
[B2G] UI tweak for multi-resolution devices support on B2G
12 years ago
Mack Duan
f8f4b3f45d
Refactor code for annotations
12 years ago
Ehsan Akhgari
926c783ee0
Simplify ChromeActions.isInPrivateBrowsing to not rely on the global PB service
12 years ago
Simon Kornblith
f524eaefe2
Remove DOM window URI check
...
Per discussion in #2937
12 years ago
Mack Duan
1daf9c984e
Disable range request if content-length is unknown
12 years ago
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
12 years ago
Mack Duan
e0d4b322cf
Only perform range requests for identity Content-Encoding
12 years ago
Jakob Miland
d86fe6b301
Save datalistener in memory
12 years ago
Mack Duan
27fe18e8c6
Address brendan's comments
12 years ago
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
12 years ago
Rob Wu
57e6238a6e
Enable Web Worker again in Chrome extension
...
Previously, Web Workers were not created because of a security
policy which does not respect relaxed privileges.
12 years ago
Rob Wu
e181a3c902
Highly improved Chrome extension
...
Full list feature changes in this commit:
- Support for iframes
- Switched to content-type (MIME) detection instead of hard-coding a
case-sensitive check for the .PDF extension
- The PDF's original URL is visible in the omnibox
- Support for incognito mode
Note: PDF viewer is disabled for the file:// + incognito
combination, because it's currently impossible to get the combination
to work.
See https://github.com/mozilla/pdf.js/pull/3017#issuecomment-15693432
12 years ago
Jonas
ee83df1338
Detect and add fallback if document colors are disabled in Firefox - address comment
12 years ago
Yury Delendik
853e4625bf
Fixes pdf application switching in FF22/23 (redo)
12 years ago
Yury Delendik
c0bb71d2d2
Workaround for FF17 to be able to download the pdf file
12 years ago
Yury Delendik
6e975d431b
Fixes PDF application switch in Firefox.
12 years ago
Jonas
f607e89a65
Add another preference check to detect if web fonts are disabled in Firefox
12 years ago
Yury Delendik
8d0494caf3
Fixes notificationBox on Linux
12 years ago
Yury Delendik
dc12d33f4d
Adding PlayPreview API support to pdf.js/mozilla-central
12 years ago
Yury Delendik
61a3b3d035
Handles embed tags via PlayPreview API
12 years ago
Mack Duan
65194afdd4
Fix issue with 'this' binding in PdfStreamConverter
12 years ago
Brendan Dahl
3f4f056665
Add save as support for Firefox.
12 years ago
Aluísio Augusto Silva Gonçalves
d18f8d11bc
Add icons to the Chrome extensions
12 years ago
Yury Delendik
e9debac7f9
Adds zoom buttons ids (follow up on #2707 )
12 years ago
vyv03354
07491f584f
Replace getUserData()/setUserData() with CustomEvents
12 years ago
Yury Delendik
cb68adb80f
Replacing gjslint with jshint; fixing jshint for windows
12 years ago
vyv03354
b605e1e8a9
Handle the error in RequestListener.receive
12 years ago
Yury Delendik
fcc169453b
Adds the extensions/* files for jshint
12 years ago
Brendan Dahl
1c4b780176
Use attachment content disposition attachment and filename.
12 years ago
Yury Delendik
dbe633d324
Fix dir attribute for the extension
12 years ago
Yury Delendik
1e7e586da4
Refactors private browsing logic
13 years ago
Brendan Dahl
b42136f8f9
Fix migration for upgraded profiles.
13 years ago
Yury Delendik
5dc87a7fca
Detecting if web fonts are disable in Firefox.
13 years ago
Brendan Dahl
fd4e40c82b
New GUI for B2G viewer.
13 years ago
Brian R. Bondy
e2baa902c6
Bug 815475 - Fix pfjs when there is no integrated findbar (pdfjs 0.6.39 broke Firefox metro)
13 years ago
Brendan Dahl
babd8df176
Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code.
13 years ago
waddlesplash
60e2e36ff7
Vectorize the logo.
13 years ago
Brendan Dahl
a842534a56
Change the channel owner to the resource url.
13 years ago
Brendan Dahl
83003499b7
Forward original request to avoid firefox assertion.
13 years ago
Michael Payne
05bca47b11
Include uppercase extensions for Chrome
...
add uppercase case extension recognition for Chrome pdf.js
13 years ago