Yury Delendik
63444aa4b3
Refactors PdfDataLister buffering.
2014-10-13 15:27:05 -05:00
Yury Delendik
55957a7d30
Merge pull request #5395 from Snuffleupagus/getTabForBrowser
...
[Firefox] Use getTabForBrowser instead of _getTabForBrowser if possible
2014-10-13 09:16:36 -05:00
Jim Mathies
fc3721ce2d
Bug 1071709 - 5-30% TART / Session Restore regressions on Inbound (v.35) september 22 from rev d3a7f765152f
2014-10-10 23:04:49 +02:00
Jonas Jenwald
a34e7aa8fe
[Firefox] Use getTabForBrowser instead of _getTabForBrowser if possible
2014-10-10 22:26:52 +02:00
Yury Delendik
56d11fc26b
Merge pull request #5364 from Rob--W/firefox-pbu_isWindowPrivate
...
Firefox addon: Use isContentWindowPrivate instead of isWindowPrivate if available
2014-10-01 17:05:23 -05:00
Rob Wu
4fe92f6d01
addon: isWindowPrivate -> isContentWindowPrivate
...
As of Firefox 35, isContentWindowPrivate should be used for DOM windows instead of isWindowPrivate.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1069059 and
http://hg.mozilla.org/mozilla-central/diff/324798b60ba3/toolkit/modules/PrivateBrowsingUtils.jsm
Without this fix, you will get the following error message when Firefox+PDF.js is started:
>
WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).
pbu_isWindowPrivate@resource://gre/modules/PrivateBrowsingUtils.jsm:25:14
ChromeActions.prototype.isInPrivateBrowsing@resource://pdf.js/PdfStreamConverter.jsm:237:12
xhr_onreadystatechange@resource://pdf.js/PdfStreamConverter.jsm:545:30
NetworkManager_requestRange@resource://pdf.js/network.js:95:7
NetworkManager_requestRange@resource://pdf.js/network.js:81:14
RangedChromeActions_requestDataRange@resource://pdf.js/PdfStreamConverter.jsm:596:1
RequestListener.prototype.receive@resource://pdf.js/PdfStreamConverter.jsm:705:5
PdfStreamConverter.prototype.onStartRequest/proxy.onStopRequest/<@resource://pdf.js/PdfStreamConverter.jsm:909:11
FirefoxComClosure/<.request@resource://pdf.js/web/viewer.js:529:14
PdfDataRangeTransport_requestDataRange@resource://pdf.js/web/viewer.js:2977:9
transportDataRange@resource://pdf.js/build/pdf.js:2122:13
messageHandlerComObjOnMessage@resource://pdf.js/build/pdf.js:1219:9
2014-10-01 23:50:03 +02:00
Yury Delendik
c0e933682a
Disables streaming in the extension when length is undefined.
2014-10-01 14:16:50 -05:00
Yury Delendik
a95123188a
Disables hash options when PDFBug is disabled and fixed streaming regressions.
2014-09-26 11:49:18 -05:00
Brendan Dahl
9c56c6f9f6
Merge pull request #5263 from yurydelendik/stream
...
Implement streaming using moz-chunk-arraybuffer
2014-09-25 16:40:28 -07:00
Brendan Dahl
678fb0ea9f
Merge pull request #5314 from yurydelendik/issue5313
...
Fixes names collisions in content.js
2014-09-23 14:01:53 -07:00
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
2014-09-19 19:05:25 -05:00
Yury Delendik
63b7fa5634
Merge branch 'issue-4954' of https://github.com/Snuffleupagus/pdf.js into hashes
...
Conflicts:
web/viewer.js
2014-09-19 18:25:11 -05:00
Jim Mathies
b399f19426
Bug 1064496 review changes
2014-09-19 15:31:21 -05:00
Yury Delendik
861a7615ff
Adds preprocessor directive to the X-Content-Security-Policy stuff
2014-09-19 15:18:37 -05:00
Yury Delendik
dd48d1c352
Fixes names collisions in content.js
2014-09-19 13:58:12 -05:00
Jonas Jenwald
8d27f38c64
Rename |_isPrefAllowed| to |_ensurePreferenceAllowed| in extensions/firefox/content/PdfjsChromeUtils.jsm
2014-09-18 15:06:34 +02:00
Jonas Jenwald
dbe756c406
Update the license header in extensions/firefox/content/pdfjschildbootstrap.js; see https://bugzilla.mozilla.org/show_bug.cgi?id=942707#c99
2014-09-18 12:08:48 +02:00
Jonas Jenwald
c00951e3e4
Add back pdfBugEnabled pref check in the |log| function in extensions/firefox/content/PdfStreamConverter.jsm
2014-09-18 12:08:48 +02:00
Jonas Jenwald
3ac9bd063d
Fix setPreferences regression from the e10s patch (PR 5115)
2014-09-18 12:08:47 +02:00
Yury Delendik
1cda4c7a4b
Loading PDF.js extension into e10s windows
2014-09-17 16:14:04 -05:00
Yury Delendik
7ae7fd3d1a
Adds DEFAULT_PREFERENCES to the PdfjsChromeUtils
2014-09-08 15:53:01 -05:00
Yury Delendik
782ed5cb67
Lint error fix for pdfjschildbootstrap.js
2014-09-08 15:44:21 -05:00
Jim Mathies
f2096fe23f
Firefox pdf viewer support for e10s (Bug 942707).
2014-09-05 17:33:52 -05:00
Tim van der Meij
c29faaa22d
Use strict equalities in make.js, external/* and extensions/*
2014-08-01 22:27:00 +02:00
Yury Delendik
ab63f96a91
Adds telemetry to record embedding usages
2014-06-16 16:41:04 -05:00
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
2014-06-16 16:41:04 -05:00
Jonas Jenwald
1ba31a6cb7
Add pdfBugEnabled to the default preferences
2014-06-16 21:46:39 +02:00
Yury Delendik
7ac1c6b034
Reporting print usage
2014-06-14 15:55:21 -05:00
Yury Delendik
75d9ae9cd3
PdfRedirector checks if plugin is still in PlayPreview mode
2014-06-02 09:27:28 -05:00
Yury Delendik
68b037ffb0
Add preprocessor directives for the extension; and refactor FirefoxCom callback
2014-05-28 10:24:06 -05:00
Gijs Kruitbosch
da93e65d8c
Bug 1015115 - switch to cloneInto in pdf.js, r?yury
2014-05-28 10:22:49 -05:00
Yury Delendik
9f9454d2ae
Refactors new extension find bar code to support old FF versions
2014-05-08 09:05:28 -05:00
Adam Dane [:hobophobe]
bc66c8119e
Add getFindBar for Fx extension
2014-05-07 18:45:24 -05:00
Tim van der Meij
c566feb721
Providing content type for attachment downloads
2014-04-25 23:30:51 +02:00
Samuel Chantaraud
25ee0e8572
Preliminary attachments support
...
Added a partial Filespec support
Added getAttachments in API
Added a new attachments view in UI (with a new icon by @shorlander)
2014-04-18 12:11:00 -04:00
Yury Delendik
b39f0c311c
Refactors history and how the database is stored
2014-04-03 13:23:18 -05:00
Jonas Jenwald
4c9c43f82b
Modify {get, set}Preferences in PdfStreamConverter.jsm to support async
2014-04-03 10:17:35 +02:00
Jonas Jenwald
3fee5345b9
[Firefox] Only load 'PdfStreamConverter' and 'PdfRedirector' when PDF.js is enabled
2014-03-27 16:01:13 +01:00
Jonas Jenwald
f6cfab0061
[Firefox] Stop importing default_preferences.js as a module and include it instead
2014-03-26 00:37:32 +01:00
Yury Delendik
dbbe702be5
Merge pull request #4501 from Snuffleupagus/firefox-lazy-load-network
...
[Firefox] Lazy load network.js in PdfStreamConverter.js
2014-03-25 18:11:24 -05:00
Jonas Jenwald
2b5fb59b67
Fix coding style in extensions/firefox/bootstrap.js
2014-03-22 21:48:00 +01:00
Jonas Jenwald
597d388930
Fix coding style in extensions/firefox/tools/l10n.js
2014-03-22 21:45:08 +01:00
Jonas Jenwald
2017f7925e
[Firefox] Lazy load network.js in PdfStreamConverter.js
2014-03-21 17:39:55 +01:00
Yury Delendik
452e71b4b0
Makes firefox extension's l10n get() behavior similar to webL10n
2014-03-13 17:37:10 -05:00
Jonas Jenwald
c158894d94
Improve handling of preferences in Firefox
2014-03-05 11:58:12 +01:00
Brendan Dahl
b8f7bcaf02
Use only one resource url for moz central build.
2014-02-27 14:11:39 -08:00
Gabriele Svelto
f4d54517c4
Bug 972435 - Recompress all PNG assets
2014-02-13 17:57:10 +01:00
Rob Wu
a01556665e
Firefox addon: Let XHR respect private mode
2014-01-31 22:23:45 +01:00
Jonas Jenwald
181e06f30a
Fix regression that disabled the "Open With Different Viewer" button on the fallback bar
2014-01-16 13:49:39 +01:00
Brendan Dahl
5d080a03bb
Show a different warning for PDF’s with forms.
2014-01-07 16:03:45 -08:00
fkaelberer
1b35bf6c5e
Recompressed PNG assets
2014-01-02 21:11:01 +01:00
Ethan Glasser-Camp
9b887f5bf3
add support for Conkeror
2013-12-29 16:06:55 -05:00
Yury Delendik
124eb30e8d
Merge pull request #3936 from brendandahl/initial-data
...
Leave initial request open until the viewer is ready to switch to range requests.
2013-11-21 06:22:24 -08:00
Jonas Jenwald
ba67158c94
Fix error in 'PdfStreamConverter.js' that prevents the user from setting a boolean preference to false
2013-11-19 01:33:48 +01:00
Jonas Jenwald
60610cd625
Implement default preferences
2013-11-18 23:51:06 +01:00
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
2013-11-18 11:17:26 -08:00
Yury Delendik
71012c6c6c
Properly resolves relative src for the embed tags
2013-09-25 15:18:38 -05:00
jmozmoz
4cd33bf460
Really call unregister for _pdfRedirectorFactory (fixing issue #3598 )
2013-08-21 17:35:50 +02:00
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
2013-08-16 09:53:05 -05:00
Yury Delendik
7a43492e5f
[CSP] remove HTTP CSP Headers
2013-07-30 21:00:47 -05:00
Brendan Dahl
e015ab0d81
Lower the priority of the notification bar to INFO.
2013-07-22 11:50:03 -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
7eae88669a
Bug 879161 - Fix pdf.js mimetype check.
2013-07-08 11:09:50 -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
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
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
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
Yury Delendik
dbe633d324
Fix dir attribute for the extension
2013-01-24 17:35:19 -06:00
Brendan Dahl
4b4601d1fb
Merge pull request #2481 from yurydelendik/rm-global-pb
...
Refactors private browsing logic
2012-12-21 09:36:28 -08:00