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

Limit PDFFetchStream to http(s) in the Chrome extension #9363

Merged
merged 1 commit into from
Jan 21, 2018

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Jan 13, 2018

The fetch API is only supported for http(s), even in Chrome extensions. Because of this limitation, we should use the XMLHttpRequest API when the requested URL is not a http(s) URL.

Fixes #9361

The `fetch` API is only supported for http(s), even in Chrome extensions.
Because of this limitation, we should use the XMLHttpRequest API when the
requested URL is not a http(s) URL.

Fixes mozilla#9361
@Snuffleupagus
Copy link
Collaborator

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/1ae3dd8260e8f95/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/d766e33b9b7373a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/1ae3dd8260e8f95/output.txt

Total script time: 23.36 mins

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

Image differences available at: http://54.215.176.217:8877/1ae3dd8260e8f95/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/d766e33b9b7373a/output.txt

Total script time: 38.70 mins

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

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the patch!

@Snuffleupagus Snuffleupagus merged commit fe5102a into mozilla:master Jan 21, 2018
timvandermeij added a commit to timvandermeij/pdf.js that referenced this pull request Feb 4, 2018
…examples

This patch fixes a regression from mozilla#9363, causing the examples not to
load anymore.
IsaacSchemm pushed a commit to IsaacSchemm/pdf.js-seamonkey that referenced this pull request Mar 15, 2018
…examples

This patch fixes a regression from mozilla#9363, causing the examples not to
load anymore.

(cherry picked from commit 1f9878e)
ltetzlaff pushed a commit to ltetzlaff/pdf.js that referenced this pull request Apr 24, 2018
…examples

This patch fixes a regression from mozilla#9363, causing the examples not to
load anymore.
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Limit PDFFetchStream to http(s) in the Chrome extension
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…examples

This patch fixes a regression from mozilla#9363, causing the examples not to
load anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants