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

Check that this.baseUrl is defined before attempting to fetch any data in DOMCMapReaderFactory/NodeCMapReaderFactory #8962

Merged
merged 1 commit into from
Sep 29, 2017
Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Excerpt from #8937 (comment):

And finally, why baseUrl was null in the first place and why the request was not stopped because of it?

No reason. Adding the null-check before issuing a request or, even better, using "always fails" CMapReaderFactory will be a good addition to the PDF.js core library.

This PR implements the additional validation suggested above, since that seems like a good idea regardless of if/when a specialized factory is added.

…ata in `DOMCMapReaderFactory`/`NodeCMapReaderFactory`
@Snuffleupagus
Copy link
Collaborator Author

/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/ef958a74d109213/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/53b40637ba99568/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/53b40637ba99568/output.txt

Total script time: 16.60 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/ef958a74d109213/output.txt

Total script time: 22.82 mins

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

@yurydelendik yurydelendik merged commit f206ee5 into mozilla:master Sep 29, 2017
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the CMapReaderFactory-baseUrl-check branch September 29, 2017 13:20
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…baseUrl-check

Check that `this.baseUrl` is defined before attempting to fetch any data in `DOMCMapReaderFactory`/`NodeCMapReaderFactory`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants