Commit Graph

5907 Commits

Author SHA1 Message Date
Rob Wu
3c0b8073be Try to recover from bad URI value
See https://github.com/mozilla/pdf.js/issues/4159

BAD (http://cms.di.unipi.it/files/bbec7791fac20e98127c77531e4031912392156c/testo.pdf)
<< /S /URI /URI /v#2findex.php#2fFile:Logo.png >>

GOOD (http://www.ioi2012.org/wp-content/uploads/2011/12/practice.pdf):
<< /S /URI /URI (http://127.0.0.1/v/index.php/File:Logo.png >>

The URL should be wrapped in parentheses, but sometimes it isn't.
Consequently, the value is interpreted as a Name (because of the leading "/"),
and the resulting object is `{name: "v/index.php/File:Logo.png" }`. Obviously,
this is not a string, so `url.indexOf` throws an error here.
2014-01-22 15:09:29 +01:00
Yury Delendik
2c34807fa3 Merge pull request #4149 from timvandermeij/document-properties
Document properties
2014-01-21 15:13:16 -08:00
Yury Delendik
3aeab0f0cb Merge pull request #4158 from timvandermeij/fix-promise-regression
Fixes this.reject regression
2014-01-21 15:08:43 -08:00
Tim van der Meij
5f7ded4ff6 Document properties 2014-01-22 00:07:07 +01:00
Tim van der Meij
e612da2c3d Fixes this.reject regression 2014-01-22 00:01:43 +01:00
Yury Delendik
c6d201b13b Merge pull request #4154 from timvandermeij/rtl-css-fixes
RTL CSS improvements
2014-01-21 14:09:22 -08:00
Tim van der Meij
d25b0a74d0 RTL CSS improvements 2014-01-21 22:56:19 +01:00
Brendan Dahl
e13500e46b Merge pull request #4140 from timvandermeij/close-secondary-toolbar
Close the secondary toolbar when an action is performed once
2014-01-21 11:47:11 -08:00
Brendan Dahl
f18e3e9e0f Merge pull request #4144 from yurydelendik/api-doc
Misc fixes for the API docs
2014-01-21 11:31:16 -08:00
Brendan Dahl
f7e354dfe5 Merge pull request #4139 from nnethercote/RGBA
Write color and opacity values directly to the final RGBA array when possible, so as to avoid allocating unnecessary memory.
2014-01-21 11:28:52 -08:00
Yury Delendik
27573ddbad Minor fixes for the jsdocs and removing unused members. 2014-01-21 13:28:18 -06:00
Yury Delendik
c3d70e5750 Merge pull request #4147 from Snuffleupagus/bug-859204
Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112)
2014-01-21 10:28:31 -08:00
Yury Delendik
8869b7e87e Merge pull request #4153 from sriram-dev/4027-destroy-previous-doc
4027 - Terminate worker of previous doc
2014-01-20 17:56:56 -08:00
Sriram
151cd6dee8 Terminate worker of previous doc 2014-01-21 07:13:27 +05:30
Jonas Jenwald
575bdd8863 Fix loading of fonts with invalid encoding name entry (bug 859204 and 878112) 2014-01-21 02:03:28 +01:00
Nicholas Nethercote
0685214a77 Don't create the RGB buffer for images that don't need resizing. 2014-01-19 14:21:36 -08:00
Yury Delendik
96fff4cc74 Refactors getTextContent return value 2014-01-17 13:26:00 -06:00
Brendan Dahl
ac91047f6d Merge pull request #4072 from yurydelendik/check-aa
Checks if subpixel-aa enabled before scaling the fonts
2014-01-17 10:45:17 -08:00
Yury Delendik
11e0ab3530 Merge pull request #4135 from timvandermeij/cleanup-extension
Cleaning up files in extension
2014-01-17 09:40:18 -08:00
Tim van der Meij
2684c79c4d Cleaning up files in extension 2014-01-17 18:32:30 +01:00
Yury Delendik
9409f3794a Merge pull request #4136 from timvandermeij/remove-extension-files
Removing extension-files file
2014-01-17 09:03:30 -08:00
Yury Delendik
e7d16ba1a2 Merge pull request #4138 from nnethercote/chunk-ImageData
Do createImageData/putImageData in chunks, to save memory.
2014-01-17 08:55:24 -08:00
Tim van der Meij
45585d9dd5 Merge pull request #4142 from Snuffleupagus/css-cleanup
Remove old CSS rules
2014-01-17 07:49:26 -08:00
Jonas Jenwald
80f5ae518f Remove old CSS rules 2014-01-17 16:31:51 +01:00
Tim van der Meij
070d77a332 Merge pull request #4119 from yurydelendik/preprocessor
Extracts evaluator preprocessor, refactor text extraction and paintFormXObject
2014-01-17 06:21:00 -08:00
Yury Delendik
09f8f951c8 Extracts evaluator preprocessor and refactor text extraction 2014-01-17 07:16:52 -06:00
Tim van der Meij
e14d917161 Close the secondary toolbar when an action is only performed once 2014-01-17 12:16:43 +01:00
Nicholas Nethercote
c044652320 Remove unneeded srcOffset arguments from createRgbBuffer. 2014-01-16 20:15:37 -08:00
Nicholas Nethercote
3de5d6ad0c Don't create the opacity buffer for images that lack a mask. 2014-01-16 20:15:37 -08:00
Nicholas Nethercote
4332c2fabe Do createImageData/putImageData in chunks, to save memory. 2014-01-16 17:20:20 -08:00
Tim van der Meij
c6640809a4 Removing extension-files file 2014-01-17 00:10:39 +01:00
Brendan Dahl
455265474a Merge pull request #4093 from yurydelendik/issue4068
Fixes fips regression from #4068
2014-01-16 13:45:10 -08:00
Brendan Dahl
ff66c23e6e Merge pull request #4089 from yurydelendik/issue3725
Takes ascent/descent in account in the text layer
2014-01-16 13:12:04 -08:00
Brendan Dahl
c57fdcceed Merge pull request #4125 from yurydelendik/issue4111
Fixes and refactors log functionality
2014-01-16 10:54:09 -08:00
Brendan Dahl
3b829f4a45 Merge pull request #4103 from yurydelendik/issue3977
Introduces disableObjectCreateURL
2014-01-16 10:51:22 -08:00
Yury Delendik
6c3bdd144a Merge pull request #4128 from Snuffleupagus/fix-open-button-on-fallback-bar
Fix regression that disabled the "Open With Different Viewer" button on the fallback bar
2014-01-16 05:26:30 -08: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
Yury Delendik
754e000907 Fixes and refactors log functionality 2014-01-15 15:28:31 -06:00
Yury Delendik
ab4f27b272 Merge pull request #4124 from tkristiansen/with-credentials
Allow setting xhr.withCredentials
2014-01-15 11:42:41 -08:00
terje.kristiansen
08737375f8 Added withCredentials parameter and passing it to xhr requests 2014-01-15 10:12:40 +01:00
Yury Delendik
7e75a665d2 Checks if subpixel-aa enabled before scaling the fonts 2014-01-14 17:31:23 -06:00
Brendan Dahl
a340336269 Merge pull request #4081 from yurydelendik/doubledraw
Avoiding double draw() calls
2014-01-14 14:33:16 -08:00
Yury Delendik
71cc234c6a Merge pull request #4122 from yurydelendik/bug878397
Use a more compact typed array to pass the image mask from the worker
2014-01-14 11:15:44 -08:00
Yury Delendik
1991efe4f0 Fixes type3 glyph compilation for bitpacked mask 2014-01-13 21:21:03 -06:00
Nicholas Nethercote
3f533a1cb0 Use a more compact typed array to pass the image mask from the worker to the main thread. 2014-01-13 20:09:05 -06:00
Yury Delendik
dabafb8444 Merge pull request #4121 from timvandermeij/open-button-b2g
Prevent the open file button from appearing in the B2G viewer/preview
2014-01-13 15:23:13 -08:00
Tim van der Meij
3e8795f8b8 Prevent the open file button from appearing in the B2G viewer/preview 2014-01-14 00:09:54 +01:00
Yury Delendik
2beb446f9d Merge pull request #4120 from timvandermeij/css-deinlining
De-inline CSS for the 'open file' button
2014-01-13 14:52:37 -08:00
Tim van der Meij
e05bda4045 De-inline CSS for the 'open file' button 2014-01-13 22:04:36 +01:00
Yury Delendik
f7a34df46d Merge pull request #4114 from Rob--W/crx-executeScriptInFrame-fix
Update chrome.tabs.executeScriptInFrame dependency
2014-01-13 12:45:50 -08:00