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

Expose some headers to fetch requests from the PDF.js Chrome extension #9447

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Feb 6, 2018

This is a work-around for https://crbug.com/784528 and allows the PDF.js networking code to perform more optimally. The user-visible effect is a visible progress bar, but this also affects file name determination and range request detection (which were broken because Chrome does not show these headers to callers of fetch).

Fixes #9446 (tested using the provided test case, step 1 & 2 = progress bar is visible)

@Rob--W Rob--W requested a review from Snuffleupagus February 6, 2018 14:14
@brendandahl brendandahl merged commit 43f1f96 into mozilla:master Feb 7, 2018
@timvandermeij timvandermeij removed the request for review from Snuffleupagus February 7, 2018 21:37
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Expose some headers to fetch requests from the PDF.js Chrome extension
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.

3 participants