Jonas Jenwald
8ae2205783
[B2G] Remove the remaining occurrences of -webkit prefixes from the CSS
2013-09-29 20:45:11 +02:00
Yury Delendik
71012c6c6c
Properly resolves relative src for the embed tags
2013-09-25 15:18:38 -05:00
Brendan Dahl
d00157d3ab
Merge pull request #3587 from debloper/master
...
Stripping down some CSS prefixes [#868160 ]
2013-08-26 12:59:32 -07:00
Andreas Bovens
f2ad0f73d7
Renaming of extensions/chrome folder to extensions/chromium, and small tweak to manifest.json description as per #3600
2013-08-21 18:11:35 +02:00
Yury Delendik
0d1c5ece40
Merge pull request #3601 from jmozmoz/unregister
...
Really call unregister for _pdfRedirectorFactory (fixing issue #3598 )
2013-08-21 08:57:49 -07:00
jmozmoz
4cd33bf460
Really call unregister for _pdfRedirectorFactory (fixing issue #3598 )
2013-08-21 17:35:50 +02:00
Yury Delendik
bde863a8ac
Merge pull request #3573 from Rob--W/crx-view-local-files
...
[CRX] Fixes to view local files again
2013-08-21 07:37:32 -07:00
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
2013-08-16 09:53:05 -05:00
Soumya Deb
de52e711f8
Unprefixing CSS as current browsers support
2013-08-16 14:18:37 +05:30
Rob Wu
a4dd4b1789
[CRX] Fixes to view local files again
...
pdfHandler-local.js references the isPdfDownloadable function from
pdfHandler.js, but the function didn't expect that the responseHeaders
property was absent. Added a check to prevent a runtime error when a
local file is displayed in a frame, and show local PDF files again.
Local files are rendered on the chrome-extension:-protocol. The previous
method of getting the PDF URL was incorrect, this has been fixed as well.
2013-08-14 23:50:51 +02:00
Brendan Dahl
820145da05
Merge pull request #3523 from yurydelendik/csp
...
Bug 889320 - [CSP] removes inlined styles and scripts, also HTTP headers
2013-08-06 13:10:33 -07:00
Alive Kuo
334c7d4d8f
Remove MozTT reference
2013-08-05 10:55:37 +08:00
Yury Delendik
7a43492e5f
[CSP] remove HTTP CSP Headers
2013-07-30 21:00:47 -05:00
Brendan Dahl
592a498dd7
Merge pull request #3515 from Rob--W/crx-webnav-strip-hash
...
[CRX] Strip location fragment from URL in the UrlFilter of the webNavigation API
2013-07-29 10:07:59 -07:00
Rob Wu
4f5e15695a
[CRX] Strip #... from URL in filter
...
Otherwise the PDF Viewer is not rendered for URLs that contain a #-character.
2013-07-27 12:05:03 +02:00
Rob Wu
f67a66c108
Disable Chrome extension for non-GET requests
2013-07-27 11:26:55 +02:00
Brendan Dahl
e015ab0d81
Lower the priority of the notification bar to INFO.
2013-07-22 11:50:03 -07:00
Yury Delendik
e6be2666de
Merge pull request #3484 from Rob--W/crx-improved-navigation-detection
...
[Chrome extension] Improved navigation detection by using webNavigation instead of tabs API.
2013-07-18 06:32:22 -07:00
Rob Wu
ec956d97c9
[CRX] Delay render of viewer if needed...
...
Sometimes, the viewer did not render for PDF files in an iframe,
because document.readyState not reaching "complete".
Deferring window.stop() until the root element is placed in the
document fixes the problem (typically a few ten milliseconds).
2013-07-17 23:25:31 +02:00
Brendan Dahl
31dab67a34
Merge pull request #3479 from RudyLu/mutlires_1.5
...
Bug 881152 - hdpi/xhdpi resolution assets and layout for PDF Viewer app
2013-07-17 10:56:34 -07:00
Rob Wu
ec5ef58b84
[CRX] Improved navigation detection.
...
A user reported that the PDF Viewer is not rendered on Dropbox,
(Chrome on Mac OS X). This is apparently caused by the fact that the
PDF file is loaded in an iframe in such a way that the tabs.onUpdated
event is not triggered.
This patch switches to the webNavigation event API, which improves the
reliability of the navigation detection.
Unfortunately Opera 15 does not support the webNavigation API, so the
old (tabs.onUpdated) method is used (feature-detection is used, so
whenever Opera decides to implement this API, it will profit from it).
2013-07-17 19:04:10 +02:00
Brendan Dahl
78d3b600d4
Merge pull request #3430 from Rob--W/crx-download-pdf
...
Chrome extension: Do not intercept PDF downloads if it's target is a frame
2013-07-16 16:13:30 -07:00
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
Rob Wu
be012ed1df
[CRX] Don't intercept download of PDF attachment
...
Fixes #3426
2013-07-01 19:17:05 +02:00
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.
2013-07-01 19:16:45 +02: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