Jonas Jenwald
b148c9cb51
Add the viewBookmark button to the secondary toolbar
2013-09-27 11:51:32 +02:00
Jonas Jenwald
9fcb1a9e40
Merge pull request #3671 from Rob--W/toolbar-layout-fix
...
Fix layout of main toolbar
2013-09-26 07:55:52 -07:00
Tim van der Meij
63233fa8c2
Improved password prompt
2013-09-24 17:46:54 +02:00
Brendan Dahl
e79935d8b3
Merge pull request #3691 from Snuffleupagus/PDFHistory-followup-3341
...
[PDFHistory] Prevent the history from skipping entries in certain edge cases, when specifying an initialBookmark in the hash parameters on document load
2013-09-23 18:06:21 -07:00
mark-5
866186dcaa
dont display file input when printing
...
closes #2464
2013-09-20 19:08:41 -04:00
Brendan Dahl
6ef44da10b
Use canvas and css width/height instead of css transform for high dpi.
2013-09-20 12:11:14 -07:00
Tim van der Meij
31fda50123
Merge pull request #3663 from Snuffleupagus/move-PageView
...
Move PageView from viewer.js to its own file
2013-09-20 10:52:21 -07:00
Tim van der Meij
bf1b945101
Merge pull request #3692 from Snuffleupagus/issue-3690
...
Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded
2013-09-20 10:43:15 -07:00
Jonas Jenwald
2cf2eb0dfc
Fix coding style in page_view.js
2013-09-20 09:28:03 +02:00
Jonas Jenwald
cebf3c60e2
Move PageView from viewer.js to its own file
2013-09-20 09:25:41 +02:00
Yury Delendik
a8320b2e18
Merge pull request #3695 from SSk123/transform
...
Adding transformation to the extract code
2013-09-19 18:45:59 -07:00
Srishti
3808d02a53
implementing transform matrix to getTextContent
2013-09-20 06:37:08 +05:30
Yury Delendik
9cdcb3881d
Merge pull request #3686 from timvandermeij/rtl-improvements
...
Improvements for RTL languages
2013-09-19 16:21:39 -07:00
Brendan Dahl
c270d7e056
Merge pull request #3641 from Snuffleupagus/properly-disable-presentationMode-when-embedded
...
Properly disable presentation mode when the viewer is embedded
2013-09-17 13:49:11 -07:00
Brendan Dahl
0b7d54f9f6
Merge pull request #3623 from Snuffleupagus/disable-range-requests-in-old-Android
...
Disable range requests in old Android versions
2013-09-17 11:36:31 -07:00
Tim van der Meij
67e4c03786
Improvements for RTL languages
2013-09-14 19:33:00 +02:00
Jonas Jenwald
fabed80b5f
Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded
2013-09-14 18:00:36 +02:00
Jonas Jenwald
fc73dbe695
[PDFHistory] Prevent the history from skipping entries in certain edge cases, when specifying an initialBookmark in the hash parameters on document load
2013-09-14 17:14:04 +02:00
Rob Wu
d45d622354
Fix layout of main toolbar
...
Before this commit there were two main issues:
- In small windows, the zoom controls visually floated above the page number
(e.g. 733px).
- In small windows, the (transparent) zoom container covered the go-to-page
input box, which prevented one from using the input field to quickly navigate
to a different page.
2013-09-11 18:56:10 +02:00
Thor Larholm
3c2d079c42
Fixed review notes: Adding specificity and removing redundant declaration
2013-09-10 22:17:40 +02:00
Thor Larholm
0f07d8ad55
Squashed: Added basic support for presentationMode in IE11
2013-09-10 21:40:14 +02:00
Brendan Dahl
da1c944929
Merge pull request #3656 from timvandermeij/annotation-svg
...
Fixing annotation icon issues
2013-09-09 12:46:26 -07:00
Yury Delendik
69eff38d09
Merge pull request #3660 from maxidirienzo/master
...
viewer.js: Do not process keyboard shortcuts when focused element is a t...
2013-09-09 08:17:50 -07:00
maxidirienzo
ee5d8ca56d
viewer.js: Do not process keyboard shortcuts when focused element is a textarea
...
If focused element is a textarea, viewer should not process keyboard shortcuts (as it does with input and select elements) because while writing on a textarea, if you press k,p,l, or n, the viewer scrolls next/prev page and the letter is not added to the textarea (eg. in my case I had a viewer displaying a product specs in PDF and a "request a quote" form at it's right, the form had a textarea field and users complains that they couldn't write in it, after checking it, I've realized it was this particular issue and fixd it with the change I'm commiting.
2013-09-09 11:50:49 -03:00
Tim van der Meij
48a24a48c1
Fixing annotation icon issues
2013-09-06 21:00:02 +02:00
Brendan Dahl
ec52dea70e
Merge pull request #3645 from Snuffleupagus/presentationMode-fix-search
...
Fix searching in presentation mode in Firefox
2013-09-06 08:18:46 -07:00
Jonas
b118ade9ae
Fix searching in presentation mode in Firefox
2013-09-06 09:08:43 +02:00
Tim van der Meij
14912b5a03
Annotation selection
2013-09-05 23:19:04 +02:00
Brendan Dahl
7cf8b8d70c
Merge pull request #3607 from Snuffleupagus/issue-3604
...
Prevent searching during load from breaking the find functionality
2013-09-05 08:13:45 -07:00
Jonas
433397f877
Simplify getVisiblePages() in presentation mode
2013-09-05 00:42:36 +02:00
Jonas
54dfe05e30
Prevent searching during load from breaking the find functionality
2013-09-05 00:25:19 +02:00
Jonas
3cce7be9ce
Properly disable presentation mode when the viewer is embedded
2013-09-05 00:23:16 +02:00
Jonas
afbff781a7
Change the cursor so that text selection doesn't appear possible in presentation mode
2013-09-05 00:18:36 +02:00
Tim van der Meij
3c0ac37292
Secondary toolbar
2013-09-04 23:48:31 +02:00
Brendan Dahl
189d444ded
Merge pull request #3507 from Snuffleupagus/PDFHistory-fix-multiple-identical-states
...
[PDFHistory] Prevent the history from getting stuck in certain edge cases
2013-09-04 12:09:41 -07:00
Brendan Dahl
d26fcd5468
Merge pull request #3618 from Snuffleupagus/followup-3557
...
Prevent named actions from displaying a 'resource://' URL in Firefox
2013-09-04 11:16:15 -07:00
Brendan Dahl
b368a99f20
Merge pull request #3421 from Snuffleupagus/avoid-multiple-rendering-on-wheel-zoom
...
Avoid triggering rendering multiple times when zooming using the mouse wheel
2013-09-04 10:25:31 -07:00
Nils Maier
16a1c38c1f
Download: Use the typed array view instead of the buffer
...
The ArrayBuffer holding the data might be over-sized in case the
data length was not known during the transfer, e.g. when using a
Content-Encoding other than `identity` or when using a
Transfer-Encoding.
Only the view into the buffer has the correct length then, hence
always use the view directly when creating the blob URI for the
download, instead of the over-sized underlying buffer.
Closes GH-3627
Closes GH-3634
2013-09-01 16:45:26 +02:00
Jonas
f61d272754
Disable range requests in old Android versions
2013-08-29 01:53:57 +02: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
Jonas
8630e29054
Avoid triggering rendering multiple times when zooming using the mouse wheel
2013-08-26 21:00:35 +02:00
Brendan Dahl
427dd3948b
Merge pull request #3569 from yurydelendik/bug900193
...
Fixes canvas alignment for small scale...
2013-08-26 10:52:47 -07:00
Brendan Dahl
e2ca1d0e5e
Merge pull request #3613 from Snuffleupagus/remove-dead-find-code
...
Remove old dead find related code from viewer.js
2013-08-26 10:46:58 -07:00
Brendan Dahl
e9a3ac175c
Merge pull request #3612 from Snuffleupagus/fix-find-when-loading-new-file
...
Prevent searching from breaking when opening a new file in the web viewer
2013-08-26 10:44:54 -07:00
Brendan Dahl
c17a7c9d04
Merge pull request #3505 from Snuffleupagus/move-ThumbnailView
...
Move ThumbnailView from viewer.js to its own file
2013-08-26 10:30:24 -07:00
Yury Delendik
1de48f1805
Merge pull request #3595 from brendandahl/fix-clip
...
Move the creation of canvas path fonts to the worker.
2013-08-26 06:48:05 -07:00
Jonas
e69fc0072a
Prevent named actions from displaying a 'resource://' URL in Firefox
2013-08-24 20:27:58 +02:00
Jonas
8892beeb08
Remove old dead find related code from viewer.js
2013-08-23 13:08:51 +02:00
Jonas
baba41f702
Prevent searching from breaking when opening a new file in the web viewer
2013-08-23 11:08:03 +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
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
2013-08-19 16:33:20 -07:00
Brendan Dahl
695e92cc00
Merge pull request #3532 from yurydelendik/telem-1
...
Adds initial telemetry probes
2013-08-19 12:34:27 -07:00
Yury Delendik
6a0ca99da4
Merge pull request #3519 from Snuffleupagus/move-errorWrapper-during-load
...
Prevent the loadingBar from overlaying the errorWrapper
2013-08-16 10:53:56 -07:00
Yury Delendik
ab2cfaf128
Merge pull request #3575 from brendandahl/text-debugger
...
Show sensible output for showText commands in the stepper.
2013-08-16 10:42:39 -07:00
Rob Wu
c653bf3aff
Set URL in history.replaceState/pushState
...
When <base href> is present, history.replaceState and
history.pushState behave inconsistent with relative URLs.
http://code.google.com/p/chromium/issues/detail?id=274024
Contrary to what one expect, passing '' as the URL parameter to
replaceState/pushState does not associate the currently active
URL with the history entry, but a path relative to <base href>.
To fix the issue, explicitly associate the current active URL
with the history's state.
2013-08-16 17:30:07 +02:00
Yury Delendik
ba23a9e8f9
Adds initial telemetry probes
2013-08-16 09:53:05 -05:00
Yury Delendik
7e145c1228
Merge remote-tracking branch 'mozilla/master' into pushState
2013-08-16 09:18:00 -05:00
Yury Delendik
fa885678df
Don't provide optional pushState parameter
2013-08-16 09:09:32 -05:00
Soumya Deb
de52e711f8
Unprefixing CSS as current browsers support
2013-08-16 14:18:37 +05:30
Brendan Dahl
2bd9901d62
Show sensible output for showText commands in the stepper.
2013-08-14 15:34:55 -07:00
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
Yury Delendik
86077810b0
Fixes canvas alignment for small scale and scale adjustment after Cmd+0
2013-08-13 18:45:06 -05:00
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
2013-08-12 10:48:06 -07:00
Tim van der Meij
75035a2970
Named actions implementation
2013-08-08 21:59:59 +02:00
Jonas
d99879bfbf
Move ThumbnailView from viewer.js to its own file
2013-08-06 22:19:03 +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
Brendan Dahl
d85e38d629
Fix intermittent blank page on fast zoom.
2013-08-05 16:34:57 -07:00
Yury Delendik
bea2e41e45
Backout of #3513 (except formatting)
2013-08-05 07:52:24 -05:00
Yury Delendik
7435b267f9
Merge pull request #3535 from Snuffleupagus/issue-3534
...
Fix issue with initial scale when opening a new file and another one is already loaded
2013-08-04 17:29:36 -07:00
Brendan Dahl
65fd2c77d0
Merge pull request #3513 from Snuffleupagus/keep-scroll-position-on-zoom-v2
...
Keep current scroll position when zooming the document
2013-08-02 15:22:52 -07:00
Jonas
8170d67a6b
Fix issue with initial scale when opening a new file and another one is already loaded
2013-08-02 16:09:33 +02:00
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
2013-07-31 11:17:36 -07:00
Jonas
edf3163fa6
Keep current scroll position when zooming the document
2013-07-31 19:43:03 +02:00
Yury Delendik
99c9079f54
[CSP] removes inlined styles and scripts
2013-07-30 21:00:37 -05:00
Brendan Dahl
81308d153d
Merge pull request #3516 from Rob--W/crx-dont-parse-querystring
...
[CRX] Get pdf name from URL instead of query string
2013-07-29 10:22:14 -07:00
Brendan Dahl
e39083ddc3
Merge pull request #3495 from Snuffleupagus/check-if-viewer-embedded
...
Check if viewer is embedded only once and cache the result
2013-07-29 09:44:11 -07:00
Jonas
d031c2bd62
Prevent the loadingBar from overlaying the errorWrapper
2013-07-29 12:43:42 +02:00
Rob Wu
b2b2e85ba2
[CRX] Get pdf name from URL instead of querystring
2013-07-27 12:31:51 +02:00
Jonas
869c4de289
[PDFHistory] Prevent the history from getting stuck in certain edge cases
2013-07-23 21:50:09 +02:00
Yury Delendik
95bb727931
Merge pull request #3494 from SSk123/master
...
Fixing the offset of vertical CJK text
2013-07-20 10:26:13 -07:00
Srishti
6c3e5e5d92
Fixing the offset of vertical CJK text
2013-07-20 20:56:33 +05:30
Jonas
d99b7753d6
Check if viewer is embedded only once and cache the result
2013-07-20 16:33:40 +02:00
Jonas
8708f8beb5
Fixes regression that cause scrolling using spacebar to break in Firefox
2013-07-19 22:09:37 +02:00
Yury Delendik
c6e698e21f
Merge pull request #3332 from Snuffleupagus/fix-loadingBar
...
Fix the positioning of the progressive loadingBar
2013-07-18 09:39:25 -07:00
Jonas
4890c5d017
Fix the positioning of the progressive loadingBar
2013-07-18 18:28:59 +02:00
Jonas
09e0c9b65d
Move PDFHistory from viewer.js to its own file
2013-07-18 17:18:27 +02:00
Tim van der Meij
343bb7488a
Presentation mode shortcut implementation
2013-07-18 16:28:06 +02:00
Yury Delendik
0dd0e2ee64
Merge pull request #3477 from brendandahl/font-loading
...
Use dummy font for testing when pdf fonts are loaded.
2013-07-18 07:01:55 -07:00
Yury Delendik
fb189f4fdf
Merge pull request #3476 from Rob--W/no-google-translate
...
Disable Google Translate on viewer in Chrome.
2013-07-18 06:21:57 -07:00
Yury Delendik
984b9bf78b
Merge pull request #3486 from Rob--W/csp-unsafe-inline
...
Remove all inline JavaScript from viewer.html to comply with CSP unsafe-inline and correct error textarea's height
2013-07-18 06:08:39 -07:00
Tim van der Meij
22120005b7
Removing code duplication
2013-07-18 13:37:55 +02:00
Rob Wu
d5e16ab85c
Viewer: Remove inline events; set height on error
...
Move inline event handlers to viewer.js to comply with a
Content-Security-Policy where directive "unsafe-inline" is not set.
Change textarea.rows = <number of newlines> to
textarea.style.height = textarea.scrollHeight.
(The former is extremely unreliable; consider long lines...)
2013-07-18 10:38:44 +02:00
Brendan Dahl
5fa609584e
Merge pull request #3449 from Snuffleupagus/history-remove-beforeunload
...
[Browsing history] Remove 'beforeunload' to enable caching and prevent duplicate entries
2013-07-17 16:03:12 -07:00
Brendan Dahl
fde86cde54
Merge pull request #3473 from Rob--W/chrome-printing
...
Fix printing behaviour in Chrome
2013-07-17 11:04:49 -07:00
Brendan Dahl
e9f5336cc9
Add atob polyfill. Remove uneeded data uri polyfill.
2013-07-17 10:26:12 -07:00
Brendan Dahl
7a1049216c
Merge pull request #3440 from peerlibrary/syncing-order
...
Syncing order of JS files in viewer.html and make.js. See #3414
2013-07-16 16:10:25 -07:00
Brendan Dahl
330f6212ba
Merge pull request #3341 from Snuffleupagus/navigateTo-fix
...
Tweak the behaviour of navigateTo during document load
2013-07-15 16:16:46 -07:00
Rob Wu
97efe7886e
Disable Google Translate on viewer in Chrome.
...
test/pdfs/yo01.pdf triggered "This page is in Japanese. Would you like
to translate it?" info bar in Chrome.
2013-07-16 00:13:05 +02:00
Rob Wu
066dffde3c
Fix printing behaviour in Chrome
...
Two major issues:
1. Border/shadow around every page. Removed by adding "border:none".
2. Added "overflow:visible" (overrides "overflow:auto") in #viewContainer.
This solves two problems:
- It prevents scrollbars from appearing.
- Every "page" is automatically resized to fit on a printed page,
just like the Firefox.
To see what's wrong, here's a picture of how PDF.js rendered the pdf in
Chrome (using "Print to PDF" feature of Chrome):
https://robwu.nl/pdfjs/pdfjs-print-with-chromium-28.pdf
Successfully tested with Chrome 28 and Firefox 22.
Solves #3445
2013-07-15 16:23:43 +02:00
Yury Delendik
81c8730e4b
Restoring PR 3455 functionality
2013-07-12 17:00:43 -05:00