Yury Delendik
4a2c76a34f
Adds pre and post UI control change events.
9 years ago
Jonas Jenwald
4968ac7cea
Merge pull request #7266 from yurydelendik/secondary
...
Removes circular dependency of secondary toolbar on app.js.
9 years ago
Yury Delendik
3cbaa9a499
Merge pull request #7268 from yurydelendik/components-samples
...
Better components examples.
9 years ago
Yury Delendik
eb3d1ca003
Removes circular dependency of secondary toolbar on app.js.
9 years ago
Yury Delendik
5f883d763f
Better components examples.
9 years ago
Jonas Jenwald
61a4c740d2
Merge pull request #7254 from yurydelendik/eventbus
...
Introducing EventBus for the viewer UI.
9 years ago
Yury Delendik
3e6e294fd4
Refactors PDFFindBar and FirefoxCom find events.
9 years ago
Yury Delendik
7fd3db9977
Adds EventBus.
9 years ago
Yury Delendik
bd49973ee5
Merge pull request #7262 from yurydelendik/issue7231
...
Fixes weird loop in the bidi.js.
9 years ago
Yury Delendik
4016f9fd43
Fixes weird loop in the bidi.js.
...
Closes #7231 .
9 years ago
Yury Delendik
4dc00b003d
Merge pull request #7256 from timvandermeij/gulp-targets
...
Port the `publish` target to Gulp
9 years ago
Tim van der Meij
5166b46a1c
Port the `publish` target to Gulp
9 years ago
Tim van der Meij
97b3a70df8
Merge pull request #7255 from timvandermeij/readme
...
Mention web application usage in README.md
9 years ago
Tim van der Meij
9c4bb83f7a
Mention web application usage in README.md
9 years ago
Yury Delendik
11a2282b95
Merge pull request #7251 from yurydelendik/force-defines
...
Makes defines parameter non-optional in createBundle.
9 years ago
Yury Delendik
cca0e40aa2
Makes defines parameter non-optional in createBundle.
9 years ago
Tim van der Meij
f220db55be
Merge pull request #7240 from yurydelendik/bundle
...
Moves bundle target/task to gulpfile.js
9 years ago
Yury Delendik
5568a19ee3
Moves bundle target/task to gulpfile.js
9 years ago
Yury Delendik
55581b162e
Merge pull request #7202 from yurydelendik/firefox-deps
...
Refactors dependencies of PDFViewerApplication on external services
9 years ago
Yury Delendik
3132941948
Removes app.js dependency on mozPrintCallback_polyfill.js.
9 years ago
Yury Delendik
3b21b51716
Refactors preferences and PDF opening related chromecom code.
9 years ago
Yury Delendik
148102b626
Refactors firefoxcom dependency on app and l10n.
9 years ago
Yury Delendik
81fc46e666
Refactors FindController dependencies.
9 years ago
Rob Wu
b45e6a7cc9
Don't use shadow DOM for rendering <object>/<embed>
...
Multiple shadow roots are not supported any more in Chrome 51+
(https://crbug.com/603448#c6 ), so this patch changes the way that PDFs
are rendered in `<embed>` / `<object>` tags.
I used shadow roots because their content is not visible from the web
page, so the odds of conflicts were minimal. Now I have to render the
PDF frame directly in the page, which can be observed from the page
(unfortunately).
Now the following happens when an embedded PDF tag is detected:
- `<embed>` tags: The type and src attributes are updated.
- `<object>` tags: The type attribute is changed and the fallback
content is set and displayed.
9 years ago
Jonas Jenwald
9d7d95ead4
[Bug 1194700] Ensure that the `customScaleOption` is hidden in e10s
...
When Firefox is run in e10s mode, which will soon be the default, the PDF.js zoom dropdown menu doesn't look right. This is apparently because the `<select>` DOM element is rendered in the parent, and that all the necessary style information isn't sent up from the child. See the discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=910022 .
Besides this causing the PDF.js UI to *look* worse in e10s, notably it also means that the `customScaleOption` isn't hidden like it ought to be.
To work-around that, this patch utilizes the `hidden` attribute, since https://bugzilla.mozilla.org/show_bug.cgi?id=1242450 at least made that work in e10s.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1194700 .
9 years ago
Yury Delendik
ff6669d930
Merge pull request #7241 from yurydelendik/server-importl10n-async
...
Makes importl10n and server async gulp functions.
9 years ago
Yury Delendik
76aa687548
Makes importl10n and server async gulp functions.
9 years ago
Yury Delendik
3d49879211
Merge pull request #7130 from nschloe/patch-1
...
Add element to text layer even if width === 0
9 years ago
Yury Delendik
f13119f237
Merge pull request #7237 from Snuffleupagus/issue-7232
...
Prevent accidentally overriding the `error` function in the `commonobj` messageHandler in api.js (issue 7232)
9 years ago
Jonas Jenwald
9ceeb21741
Prevent accidentally overriding the `error` function in the `commonobj` messageHandler in api.js (issue 7232)
...
This naming issue has been present since PR 3529, but at least I cannot find any issues/bugs that seem to have been caused by it, which is good.
The patch also removes an unnecessary `else` branch, since an already existing `break` means that it's redundant.
Fixes 7232.
9 years ago
Yury Delendik
ee4d8ef8f7
Merge pull request #7236 from yurydelendik/release1.5.188
...
Release of 1.5.188
9 years ago
Yury Delendik
e20a217177
Release of 1.5.188
9 years ago
Yury Delendik
0e2d50f8e6
Merge pull request #7235 from yurydelendik/version1.5
...
Version 1.5
9 years ago
Yury Delendik
c5f2cd6dd4
Version 1.5
9 years ago
Jonas Jenwald
4aac324558
Merge pull request #7209 from yurydelendik/getElementById
...
Moves all document.getElementById lookups into viewer.js
9 years ago
Yury Delendik
b6c74f2056
Moves all document.getElementById lookups into viewer.js
9 years ago
Yury Delendik
d5c000850a
Merge pull request #7233 from Snuffleupagus/issue-7229
...
Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229)
9 years ago
Jonas Jenwald
293901d7e5
Add a (linked) test-case for issue 3248
9 years ago
Jonas Jenwald
e281ef15db
Adjust incorrect first obj number of "free" xref entry in `XRef_readXRefTable` (issue 7229)
...
Fixes 7229.
9 years ago
Jonas Jenwald
2001953871
Merge pull request #7219 from timvandermeij/password-prompt-class
...
Convert the password prompt to a class
9 years ago
Tim van der Meij
2b7137ba0a
Convert the password prompt to a class
...
Furthermore we introduce two new methods named `setCallback` and
`setReason` so external code does not change the properties of the class
directly. Finally we update various names of properties and methods to
be more self-explanatory.
9 years ago
Jonas Jenwald
990150ce61
Update l10n files
9 years ago
Yury Delendik
3228c9445c
Merge pull request #7210 from Snuffleupagus/extract-PDFImage.resize
...
Split the two paths in `PDFImage.resize` into separate helper functions, placed in colorspace.js and image.js
9 years ago
Jonas Jenwald
19e0599f74
Split the two paths in `PDFImage.resize` into separate helper functions, placed in colorspace.js and image.js
...
Re: issue 6777.
9 years ago
Yury Delendik
0428fdf3ca
Merge pull request #7211 from Snuffleupagus/crypto-tests-NEED_PASSWORD
...
Add a couple of `CipherTransformFactory` unit-tests for blank passwords, and move the `isDict` unit-tests to the correct file
9 years ago
Jonas Jenwald
b4a17323b6
Move `isDict` unit-tests from util_spec.js to primitives_spec.js
...
This patch moves the unit-test to the correct file, since the `isDict` function was moved PR 6683.
9 years ago
Jonas Jenwald
4523ae0b91
Add a couple of `CipherTransformFactory` unit-tests to check that blank passwords are correctly rejected
9 years ago
Tim van der Meij
a093d755b7
Merge pull request #7207 from timvandermeij/hand-tool-class
...
Convert the hand tool to a class
9 years ago
Tim van der Meij
b0aca31de8
Convert the hand tool to a class
9 years ago
Jonas Jenwald
7f90f5bfed
Merge pull request #7206 from Snuffleupagus/viewer-expose-non-classes-on-PDFViewerApplication
...
Expose a few non-classes on `PDFViewerApplication`
9 years ago