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
11 years ago
Yury Delendik
a95123188a
Disables hash options when PDFBug is disabled and fixed streaming regressions.
11 years ago
Yury Delendik
c3f191a27c
Implement streaming using moz-chunk-arraybuffer
11 years ago
Jim Mathies
b399f19426
Bug 1064496 review changes
11 years ago
Yury Delendik
861a7615ff
Adds preprocessor directive to the X-Content-Security-Policy stuff
11 years ago
Jonas Jenwald
c00951e3e4
Add back pdfBugEnabled pref check in the |log| function in extensions/firefox/content/PdfStreamConverter.jsm
11 years ago
Jim Mathies
f2096fe23f
Firefox pdf viewer support for e10s (Bug 942707).
11 years ago
Yury Delendik
ab63f96a91
Adds telemetry to record embedding usages
11 years ago
Yury Delendik
0cd28ebfa3
Telemetry for used stream and font types
11 years ago
Jonas Jenwald
1ba31a6cb7
Add pdfBugEnabled to the default preferences
11 years ago
Yury Delendik
7ac1c6b034
Reporting print usage
11 years ago
Yury Delendik
68b037ffb0
Add preprocessor directives for the extension; and refactor FirefoxCom callback
11 years ago
Gijs Kruitbosch
da93e65d8c
Bug 1015115 - switch to cloneInto in pdf.js, r?yury
11 years ago
Yury Delendik
9f9454d2ae
Refactors new extension find bar code to support old FF versions
11 years ago
Adam Dane [:hobophobe]
bc66c8119e
Add getFindBar for Fx extension
11 years ago
Tim van der Meij
c566feb721
Providing content type for attachment downloads
11 years ago
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 )
11 years ago
Yury Delendik
b39f0c311c
Refactors history and how the database is stored
11 years ago
Jonas Jenwald
4c9c43f82b
Modify {get, set}Preferences in PdfStreamConverter.jsm to support async
11 years ago
Jonas Jenwald
2017f7925e
[Firefox] Lazy load network.js in PdfStreamConverter.js
11 years ago
Jonas Jenwald
c158894d94
Improve handling of preferences in Firefox
11 years ago
Brendan Dahl
b8f7bcaf02
Use only one resource url for moz central build.
11 years ago
Rob Wu
a01556665e
Firefox addon: Let XHR respect private mode
11 years ago
Jonas Jenwald
181e06f30a
Fix regression that disabled the "Open With Different Viewer" button on the fallback bar
11 years ago
Brendan Dahl
5d080a03bb
Show a different warning for PDF’s with forms.
11 years ago
Jonas Jenwald
ba67158c94
Fix error in 'PdfStreamConverter.js' that prevents the user from setting a boolean preference to false
12 years ago
Jonas Jenwald
60610cd625
Implement default preferences
12 years ago
Brendan Dahl
0385131a9a
Leave initial request open until the viewer is ready to switch to range requests.
12 years ago
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
12 years ago
Yury Delendik
7a43492e5f
[CSP] remove HTTP CSP Headers
12 years ago
Brendan Dahl
e015ab0d81
Lower the priority of the notification bar to INFO.
12 years ago
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
c2bdd7b295
Simplify getting the pdf url.
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
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
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
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
vyv03354
07491f584f
Replace getUserData()/setUserData() with CustomEvents
12 years ago
vyv03354
b605e1e8a9
Handle the error in RequestListener.receive
12 years ago