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

Update the GlobalWorkerOptions.workerSrc JSDoc comment #11520

Merged
merged 1 commit into from
Jan 19, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jan 19, 2020

This particular JSDoc comment is fairly old and it also contains some now unrelated/confusing information.
The only way to guarantee that the PDF.js library works as expected is to correctly set the global workerSrc[1], hence giving the impression that the option isn't strictly necessary is thus incorrect.


[1] Since advertising the fallbackWorkerSrc functionality definitely seems like the wrong thing to do.

This particular JSDoc comment is fairly old and it also contains some now unrelated/confusing information.
The only way to *guarantee* that the PDF.js library works as expected is to correctly set the global `workerSrc`[1], hence giving the impression that the option isn't strictly necessary is thus incorrect.

---
[1] Since advertising the fallbackWorkerSrc functionality definitely seems like the *wrong* thing to do.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/6ae49925baf6e88/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/6ae49925baf6e88/output.txt

Total script time: 9.95 mins

Published

@timvandermeij timvandermeij merged commit 1097fa1 into mozilla:master Jan 19, 2020
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the workerSrc-docs branch January 19, 2020 16:42
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