Commit Graph

7865 Commits

Author SHA1 Message Date
Jonas Jenwald
cadbb81fb9 Merge pull request #5937 from gettalong/patch-1
Crypt filter EFF key should have StmF value as default, not StrF
2015-04-15 13:02:05 +02:00
Jonas Jenwald
cba36bc37e Merge pull request #5936 from arfon/master
Update .gitattributes to fix GitHub file type detection for JavaScript.
2015-04-14 16:48:44 +02:00
Arfon Smith
15edae56e5 Update .gitattributes to fix GitHub file type detection for JavaScript. 2015-04-14 09:28:55 -05:00
Thomas Leitner
3ebc85e55f Crypt filter EFF key should have StmF value as default, not StrF
This fixes the problem.
2015-04-13 21:27:32 +02:00
Tim van der Meij
e4e9a2adea Merge pull request #5926 from browtayl/1018932
prevent viewer from zooming on cmd+mousewheel (bug 1018932)
2015-04-13 20:57:23 +02:00
Tim van der Meij
dbcc3a77fa Merge pull request #5933 from Snuffleupagus/viewer-comment-cleanup
Remove commented out code from viewer.html
2015-04-13 20:18:05 +02:00
Jonas Jenwald
bc0d55bf43 Remove commented out code from viewer.html
The line that this patch removes has been commented out since 2012 (!), see commit c8a6a9ba00.

Also, since the patch is trivial, I'm fixing the formatting of a comment to stop [GitHub from marking it with a red color](https://github.com/mozilla/pdf.js/blob/master/web/viewer.html#L394) (and IE from complaining).
2015-04-13 12:44:05 +02:00
Taylor Brown
34d3b96b52 prevent viewer from zooming on cmd+mousewheel 2015-04-10 15:08:32 -07:00
Jonas Jenwald
fda858ae33 Don't map glyphs to certain problematic General Punctuation Unicode locations (bug 911034)
Fixes the remaining missing characters in https://bugzilla.mozilla.org/show_bug.cgi?id=911034.

For reference, see http://www.unicode.org/charts/PDF/U2000.pdf (and also http://en.wikipedia.org/wiki/General_Punctuation_%28Unicode_block%29).
2015-04-09 17:27:03 +02:00
Jonas Jenwald
a54ec673c5 Move the checks for problematic Unicode locations from |adjustMapping| to a separate helper function 2015-04-09 12:56:29 +02:00
Jonas Jenwald
1d6fae231e Merge pull request #5912 from timvandermeij/shelljs
Remove ShellJS copy and use the NPM version
2015-04-07 20:24:16 +02:00
Jonas Jenwald
9f63fa4b07 Address review comments from Bug 1148192 - Update pdf.js to version 1.1.24
See https://bugzilla.mozilla.org/show_bug.cgi?id=1148192#c3.
2015-04-06 16:26:23 +02:00
Tim van der Meij
1c8305cf1a Remove unreachable jshint installation code
The previous commit implements a check for ShellJS and otherwise prompts the user to run "npm install". New clones of the codebase will need "npm install" for ShellJS and therefore automatically install jshint. Existing clones of the codebase will also need "npm install" again since ShellJS needs to be installed using NPM as it is not in the "external" folder anymore. Since everyone will get this prompt and install everything automatically, we will never reach this code path anymore.

This patch makes #5908 obsolete and reduces code complexity for the lint target. Thanks to @Snuffleupagus for noticing this!
2015-04-05 15:48:59 +02:00
Tim van der Meij
70b6eb09a8 Remove ShellJS copy and use the NPM version
There is no need to have a copy of ShellJS in the repository as it is also available on NPM. The NPM version is also much newer. This way we do not have to update this anymore and let NPM do that automatically.
2015-04-05 15:47:25 +02:00
Tim van der Meij
89cf072026 Merge pull request #5913 from Snuffleupagus/b2g-stub-DownloadManager
[B2G] Stub the |DownloadManager| to avoid error
2015-04-05 14:06:08 +02:00
Tim van der Meij
cfb03fc111 Merge pull request #5914 from petercpg/master
Bug 1151303 - [zh-TW] Translation update proposed for browser/pdfviewer/...
2015-04-05 14:02:45 +02:00
Peter Pin-Guang Chen
67b19cfe8a Bug 1151303 - [zh-TW] Translation update proposed for browser/pdfviewer/viewer.properties:document_properties_mb 2015-04-05 19:08:38 +08:00
Jonas Jenwald
48242abe72 [B2G] Stub the |DownloadManager| to avoid error
After the refactoring in PR 5678, the B2G viewer now prints the following in the console:
```
ReferenceError: DownloadManager is not defined
```

This will obviously not matter once the B2G viewer is replaced with the new components-based one. But until that happens, I think it makes sense to just stub the class to suppress the error.
2015-04-04 21:26:33 +02:00
Jonas Jenwald
d156007804 Import l10n 2015-04-04 17:57:54 +02:00
Jonas Jenwald
b85a51d072 Merge pull request #5908 from timvandermeij/read-package-json
Read jshint version from package.json
2015-04-04 17:37:13 +02:00
Tim van der Meij
25299904da Read jshint version from package.json 2015-04-04 16:24:33 +02:00
Tim van der Meij
ba8a4f2b3e Merge pull request #5911 from Snuffleupagus/test-worker-comments
Remove commented out code about |disableWorker| in the test suite
2015-04-04 14:46:13 +02:00
Tim van der Meij
3bae62eda1 Merge pull request #5906 from pietroalbini/patch-1
Fixed a small typo in the italian translation
2015-04-04 14:32:04 +02:00
Jonas Jenwald
36ac67583f Remove commented out code about |disableWorker| in the test suite
Since the tests have run with workers enabled for a long time, these comments are no longer relevant.
2015-04-04 13:32:44 +02:00
Jonas Jenwald
0434569798 Merge pull request #5907 from timvandermeij/browser-manifests
Provide only one browser manifest example
2015-04-04 12:18:09 +02:00
Pietro Albini
1da99feef3 Fixed a small typo in the italian translation
In "document_properties_mb", {{size_mb}} was instead {{size_kb}}.
2015-04-03 21:24:34 +02:00
Tim van der Meij
50573b82a3 Provide only one browser manifest example 2015-04-03 21:21:54 +02:00
Tim van der Meij
27170ff858 Remove prefs.js file
The first preference is also in user.js and the second one was only needed for SpecialPowers.
2015-04-03 20:18:42 +02:00
Tim van der Meij
75d8f70d06 Remove SpecialPowers addon 2015-04-03 20:17:20 +02:00
Levi Melamed
a5159a7942 extract more accurate glpyh heights from type-3 fonts 2015-04-03 08:49:06 -05:00
Tim van der Meij
32cc021f31 Merge pull request #5899 from neves/master
add missing pt-BR page_scale_percent property
2015-04-02 20:35:21 +02:00
Marcos Neves
47b2e9355f add missing pt-BR page_scale_percent property 2015-04-01 23:57:07 -03:00
Tim van der Meij
01f1761a8b Merge pull request #5881 from mbbaig/master
Added the data-page-number dom attribute to the page rendered in the browser
2015-04-01 20:57:07 +02:00
Tim van der Meij
a7e6f6d4d0 Merge pull request #5895 from Snuffleupagus/viewer-pref-init-refactor
Re-factor and clean-up some preference related code in viewer.js
2015-04-01 20:54:19 +02:00
Jonas Jenwald
e5c4819601 Small refactoring of the code that calls |PDFViewerApplication.setInitialView|
This is a minor cleanup, to avoid an unnecessary `Promise.all` and to simplify catching |ViewHistory| errors.
2015-03-31 20:35:00 +02:00
Jonas Jenwald
6091e7bd6b Move the code that resets the history state when the |showPreviousViewOnLoad| preference is set to |false|
Since this code is *only* necessary if/when the history is actually enabled, this patch refactors it to actually reflect that.
2015-03-31 18:12:15 +02:00
Jonas Jenwald
03497eabd5 Move fetching of the |defaultZoomValue| preference value to |PDFViewerApplication.initialize|
For consistency, this preference should be placed amongst the others. The current position is purely for "historical" reasons, since it was one of the first preferences that was added to the code.
2015-03-31 15:33:21 +02:00
Jonas Jenwald
a931885ddd Merge pull request #5886 from andrewdacenko/patch-1
Restrict logging of errors with verbosity level
2015-03-30 13:25:52 +02:00
Andrew Dacenko
bdde3d6622 Restrict logging of errors with verbosity level 2015-03-28 21:44:41 +02:00
Tim van der Meij
3821b2d6aa Merge pull request #5888 from Snuffleupagus/documentProperties-parseDate-comment
Remove reference to GNUpdf from comment in |DocumentProperties.parseDate|
2015-03-28 15:23:49 +01:00
Jonas Jenwald
3974adcc22 Remove reference to GNUpdf from comment in |DocumentProperties.parseDate|
Since the link is no longer valid, we should remove it from the comment.

(Using the Internet Archive, it seems that the contents of that page was basically identical to the PDF specification.)
2015-03-28 11:53:20 +01:00
Mohamed Baig
6d8adb31ad Added the data-page-number dom attribute to the page rendered in the browser
Added data-page-id attribute to page container divs

Updated the attribute with a better label
2015-03-27 18:23:39 -04:00
Brendan Dahl
f6a8110041 Merge pull request #5882 from Snuffleupagus/bug-1046314-2
Don't map glyphs to Unicode position 0x0E33, i.e. Thai character SARA AM (bug1046314)
2015-03-26 16:04:51 -07:00
Jonas Jenwald
2b1a13ba28 Don't map glyphs to Unicode position 0x0E33, i.e. Thai character SARA AM (bug1046314)
*A similar approach as in PR 5705.*

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1046314.

According to https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-complex-thai.cc#270-365, `0x0E33` is treated as a special case (by the font shaping code in Firefox). Hence it seems reasonable to skip it when adjusting the font mapping.
2015-03-26 13:22:45 +01:00
Yury Delendik
185067e0cf Merge pull request #5868 from Snuffleupagus/bug-1112947
Add custom |outlineloaded| and |attachmentsloaded| events to the viewer (bug 1112947)
2015-03-25 14:15:24 -05:00
Brendan Dahl
3a8d4a7d72 Merge pull request #5713 from Snuffleupagus/evaluator-IdentityToUnicodeMap
Create a IdentityToUnicodeMap in evaluator.js when toUnicode contains IdentityH/IdentityV
2015-03-25 10:33:29 -07:00
Yury Delendik
64d49e1397 Merge pull request #5878 from Snuffleupagus/pr-5749-followup
PR 5749 followup
2015-03-24 22:13:55 -05:00
Brendan Dahl
519b6669f0 Merge pull request #5705 from Snuffleupagus/bug-1108301
Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)
2015-03-24 16:33:04 -07:00
Jonas Jenwald
b721e902dc Remove unused |getChromeWindow| function from PdfStreamConverter.jsm 2015-03-24 18:58:20 +01:00
Jonas Jenwald
133cfc78fa Remove obsolete CPOW code from PdfjsContentUtils.jsm (PR 5749 followup)
This code is unused since PR 5749, and according to https://github.com/mozilla/pdf.js/pull/5749#discussion_r25931841 it should be removed.
2015-03-24 18:36:05 +01:00