Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements onerror for JpegStreams #4969

Merged
merged 1 commit into from
Jun 18, 2014

Conversation

timvandermeij
Copy link
Contributor

Partly addresses #2812. It resolves the infinite loop and renders everything but the images.

Thanks to @yurydelendik for helping with debugging this!

@timvandermeij timvandermeij mentioned this pull request Jun 18, 2014
@@ -1562,5 +1562,9 @@ function loadJpegStream(id, imageUrl, objs) {
img.onload = (function loadJpegStream_onloadClosure() {
objs.resolve(id, img);
});
img.onerror = (function loadJpegStream_onerrorClosure() {
objs.resolve(id, null);
error('Image dependency not ready');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it a warning and change the text to something like 'Error during JPEG image loading'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. This makes the console messages much nicer.

@yurydelendik
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.21.233.14:8877/7133ca171ee0e71/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @yurydelendik received. Current queue size: 0

Live output at: http://107.22.172.223:8877/e1d8942c5c999e7/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/e1d8942c5c999e7/output.txt

Total script time: 21.36 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/7133ca171ee0e71/output.txt

Total script time: 23.74 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

Thanks

yurydelendik added a commit that referenced this pull request Jun 18, 2014
Implements onerror for JpegStreams
@yurydelendik yurydelendik merged commit c4ed02e into mozilla:master Jun 18, 2014
@timvandermeij timvandermeij deleted the image-loading branch June 18, 2014 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants