Commit Graph

6022 Commits

Author SHA1 Message Date
Yury Delendik
4a34556ccc Merge pull request #4167 from timvandermeij/followup-document-properties
Miscellaneous improvements for the document properties dialog
2014-01-22 15:34:03 -08:00
Tim van der Meij
c952b6fb85 Miscellaneous improvements for the document properties dialog 2014-01-23 00:30:48 +01:00
Yury Delendik
5a6862decc Merge pull request #4164 from Snuffleupagus/bug-957034-followup
Only check for line dash pattern when annotation has a visible border (bug 957034 followup)
2014-01-22 08:27:47 -08:00
Yury Delendik
18a163c900 Merge pull request #4163 from Rob--W/issue-4159-uri-annot
Recover from bad URI values
2014-01-22 07:34:34 -08:00
Rob Wu
b35ced8c9e RFC 3986-compliant isValidUrl (protocol parsing)
To avoid misinterpreting URLs like "/File:wikipedia.png" as a
non-relative URLs.
2014-01-22 15:10:06 +01:00
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
b87ce518a7 Merge pull request #4160 from xavier114fch/zh-TW
Document Propeties translation in zh-TW
2014-01-22 05:13:13 -08:00
Yury Delendik
ba1eb4d1d1 Merge pull request #4126 from Rob--W/crx-using-streams-api
Chromium extension using streamsPrivate API!
2014-01-22 05:12:07 -08:00
Jonas Jenwald
46ba8d10b0 Only check for line dash pattern when annotation has a visible border (bug 957034 followup) 2014-01-22 14:04:55 +01:00
Xavier fung
554b6244b6 Document Propeties translation in zh-TW 2014-01-22 11:10:39 +08: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
Karl Denninghoff
1be27e3c81 Fixes but 960409 and adresses review comments including removal of do-while construct 2014-01-16 13:58:29 -08: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
Rob Wu
b754f9d878 Make streamsPrivate optional; remove manifest key
Use streamsPrivate API when available.
When the API is not available, the extension will still work on
on http/https/file URLs, but not for POST requests or FTP.

As of writing, the Chromium project has still not whitelisted
the PDF Viewer extension in the Chrome Web Store.
 (extension ID oemmndcbldboiebfnladdacbdfmadadm)
Request to whitelist PDF.js in Chromium:
 https://code.google.com/p/chromium/issues/detail?id=326949

Opera 19 has whitelisted the PDF Viewer extension from
 https://addons.opera.com/extensions/details/pdf-viewer/
 (extension ID encfpfilknmenlmjemepncnlbbjlabkc)
 (https://github.com/Rob--W/pdf.js/issues/1#issuecomment-32357302)

If you want to test the streamsPrivate feature in Chrome,
edit the build/extensions/manifest.json and add the "key" again
 (see this commit for the value of this "key" field).
2014-01-16 00:30:39 +01:00
Rob Wu
af31ace940 Work-around for http://crbug.com/276898
When a new incognito session is started, the onExecuteMimeTypeHandler event is
often not dispatched in time. Instead, it's triggered in the non-incognito profile.

This commit offers a work-around that allows new incognito instances to view PDF files.
2014-01-15 23:04:29 +01:00
Rob Wu
94ba01c8aa Use tab-specific stream storage
Also:
- Use webNavigation.getAllFrames to find out whether the navigation has
  already started. This is (at least) needed for top-level navigation to
  a stream. The webNavigation.onErrorOccurred event has become obsolete,
  and has been removed.
2014-01-15 23:04:29 +01:00