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

Don't block origin-less blob:-URLs in hosted viewer #9505

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

Rob--W
Copy link
Member

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

This is to work around a bug in IE11 (and IE10, earlier versions of IE do not support URL.createObjectURL for creating blob:-URLs anyway) - #9498 .

I could have checked for an empty or null origin, but since the browser's Same-origin policy already blocks cross-origin blob:-URL requests, I decided to have simpler code and just rely on the browser's same-origin policy enforcement for access control of blob:-URLs.

@Rob--W Rob--W added the viewer label Feb 23, 2018
@Rob--W Rob--W requested a review from yurydelendik February 23, 2018 11:52
Copy link
Contributor

@yurydelendik yurydelendik 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

@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/5c2e4467018be2d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/5c2e4467018be2d/output.txt

Total script time: 2.73 mins

Published

@timvandermeij timvandermeij merged commit 5f98f9b into mozilla:master Feb 23, 2018
@timvandermeij
Copy link
Contributor

Thank you for improving this!

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Don't block origin-less blob:-URLs in hosted viewer
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.

4 participants