Rudy Lu
f9706b345b
Bug 881152 - hdpi/xhdpi resolution assets and layout for PDF Viewer app
...
1. Add 1.5x assets
2. specify the background size of page number section
2013-07-16 20:44:06 +08:00
Brendan Dahl
077f08fa6d
Merge pull request #3456 from brendandahl/cap-image-size
...
Limit image size to 1024*1024 for b2g.
2013-07-11 11:44:51 -07:00
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
2013-07-10 21:50:56 +02:00
Brendan Dahl
bcc085ec52
Limit image size to 1024*1024 for b2g.
2013-07-10 09:52:37 -07:00
Yury Delendik
666da95b37
Merge pull request #3450 from brendandahl/fix-mimetype-check
...
Bug 879161 - Fix pdf.js mimetype check.
2013-07-09 10:01:18 -07:00
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
2013-07-09 16:24:25 +02:00
Brendan Dahl
7eae88669a
Bug 879161 - Fix pdf.js mimetype check.
2013-07-08 11:09:50 -07:00
Yury Delendik
3461d02d05
Enforces trailing spaces
2013-07-01 11:25:46 -05:00
Brendan Dahl
4e831233a4
Merge pull request #3408 from brendandahl/fix-multiresolution
...
[B2G] UI tweak for multi-resolution devices support on B2G
2013-06-28 10:11:18 -07:00
Brendan Dahl
aafb5d44ae
Make the progress bar small and on the top.
2013-06-28 09:59:47 -07:00
Vladan Djeric
0fae231526
Avoid triggering plugin list initialization on startup (Bugzilla 881575)
2013-06-14 19:09:23 -04:00
Brendan Dahl
c2bdd7b295
Simplify getting the pdf url.
2013-06-03 11:40:07 -07:00
Brendan Dahl
24204cc153
Merge pull request #2498 from ehsan/pbcleanup
...
Simplify ChromeActions.isInPrivateBrowsing to not rely on the global PB service
2013-05-30 13:26:11 -07:00
Rex Lee
3e480f84a6
[B2G] UI tweak for multi-resolution devices support on B2G
2013-05-17 17:52:04 +08:00
Mack Duan
f8f4b3f45d
Refactor code for annotations
2013-05-07 14:22:13 -04:00
Yury Delendik
a081c2d0f1
Merge pull request #3124 from mduan/issue3118-1
...
Update loading bar during onprogress of range requests
2013-05-03 16:51:32 -07:00
Ehsan Akhgari
926c783ee0
Simplify ChromeActions.isInPrivateBrowsing to not rely on the global PB service
2013-04-27 12:25:27 -04:00
Simon Kornblith
f524eaefe2
Remove DOM window URI check
...
Per discussion in #2937
2013-04-24 21:02:33 -04:00
Mack Duan
1daf9c984e
Disable range request if content-length is unknown
2013-04-22 15:49:39 -07:00
Yury Delendik
8ae5d2745c
Merge pull request #3131 from mduan/issue3122
...
Only perform range requests for identity Content-Encoding
2013-04-22 09:20:32 -07:00
Mack Duan
c5084d9e8a
Update loading bar during onprogress of range requests
2013-04-22 08:46:58 -07:00
Mack Duan
e0d4b322cf
Only perform range requests for identity Content-Encoding
2013-04-22 08:36:54 -07:00
Jakob Miland
d86fe6b301
Save datalistener in memory
2013-04-21 17:14:10 +02:00
Mack Duan
27fe18e8c6
Address brendan's comments
2013-04-18 00:16:53 -07:00
Mack Duan
ef423ef30c
Implement progressive loading of PDFs
2013-04-12 16:13:22 -07:00
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.
2013-04-04 13:40:35 +02:00
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
2013-04-04 10:04:13 +02:00
Brendan Dahl
98d5703565
Merge pull request #3036 from yurydelendik/appswitch
...
Fixes pdf application switching in FF22/23 (redo)
2013-04-03 13:12:53 -07:00
Jonas
ee83df1338
Detect and add fallback if document colors are disabled in Firefox - address comment
2013-04-03 18:49:03 +02:00
Yury Delendik
853e4625bf
Fixes pdf application switching in FF22/23 (redo)
2013-04-03 09:23:00 -05:00
Brendan Dahl
0ac55ac879
Merge pull request #3027 from yurydelendik/download-ff17
...
Workaround for FF17 to be able to download the pdf file
2013-04-02 09:19:05 -07:00
Yury Delendik
c0bb71d2d2
Workaround for FF17 to be able to download the pdf file
2013-04-02 08:07:01 -05:00
Yury Delendik
6e975d431b
Fixes PDF application switch in Firefox.
2013-03-29 20:08:08 -05:00
Jonas
f607e89a65
Add another preference check to detect if web fonts are disabled in Firefox
2013-03-28 11:28:00 +01:00
Brendan Dahl
aa2b1f0a24
Merge pull request #2969 from yurydelendik/notificationBox
...
Fixes notificationBox on Linux
2013-03-19 10:23:59 -07:00
Yury Delendik
8d0494caf3
Fixes notificationBox on Linux
2013-03-19 10:03:00 -05:00
Yury Delendik
dc12d33f4d
Adding PlayPreview API support to pdf.js/mozilla-central
2013-03-18 16:12:24 -05:00
Yury Delendik
627d56485e
Merge pull request #2724 from yurydelendik/embed-2
...
Handles embed tags via PlayPreview API
2013-03-16 09:18:10 -07:00
Yury Delendik
61a3b3d035
Handles embed tags via PlayPreview API
2013-03-12 10:16:03 -05:00
Mack Duan
65194afdd4
Fix issue with 'this' binding in PdfStreamConverter
2013-03-11 10:36:25 -07:00
Brendan Dahl
3f4f056665
Add save as support for Firefox.
2013-03-01 09:52:35 -08:00
Aluísio Augusto Silva Gonçalves
d18f8d11bc
Add icons to the Chrome extensions
2013-02-16 23:15:01 -03:00
Yury Delendik
e9debac7f9
Adds zoom buttons ids (follow up on #2707 )
2013-02-10 12:55:47 -06:00
vyv03354
07491f584f
Replace getUserData()/setUserData() with CustomEvents
2013-02-06 23:31:50 +09:00
Yury Delendik
0058d422be
Merge pull request #2672 from yurydelendik/lint
...
Replacing gjslint with jshint; fixing jshint for windows
2013-02-05 12:31:29 -08:00
Yury Delendik
cb68adb80f
Replacing gjslint with jshint; fixing jshint for windows
2013-02-05 10:17:49 -06:00
Yury Delendik
f32233eaf9
Merge pull request #2668 from vyv03354/bug834075
...
Handle the error in case the sender is already unloaded
2013-02-04 16:27:12 -08:00
vyv03354
b605e1e8a9
Handle the error in RequestListener.receive
2013-02-04 22:06:46 +09:00
Yury Delendik
fcc169453b
Adds the extensions/* files for jshint
2013-02-02 21:15:43 -06:00
Brendan Dahl
1c4b780176
Use attachment content disposition attachment and filename.
2013-01-30 18:34:22 -05:00