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

Resource blob not found on IE11 #3977

Closed
ofirdev opened this issue Nov 26, 2013 · 13 comments · Fixed by #4103
Closed

Resource blob not found on IE11 #3977

ofirdev opened this issue Nov 26, 2013 · 13 comments · Fixed by #4103

Comments

@ofirdev
Copy link
Contributor

ofirdev commented Nov 26, 2013

I'm getting several errors with the attached pdf in IE11:
Resource 'blob:F2053AEF-3AE5-42E4-A411-D6F6E95E7072' not found

The loading icon on the second page keep spinning.

In a custom viewer with paging buttons, I can't switch from the first to the second page.

https://drive.google.com/file/d/0B0odzw1WMqkGMmVkWlRBN05rTG8/edit?usp=sharing

Thanks

@yurydelendik
Copy link
Contributor

Probably some intermittent problem with IE11 in non-debug mode. I can see images when debugging the PDF.js.
ie11-blob

Report it to the vendor via https://connect.microsoft.com/

As a workaround you can modify PDFJS.createObjectURL to always create data URL instead https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js#L1103

@ofirdev
Copy link
Contributor Author

ofirdev commented Nov 26, 2013

ie-spinner
I can also see the images on both pages but page 2 loading spinner keeps spinning on IE11.
Maybe the blob issue is not the cause.

@yurydelendik
Copy link
Contributor

Maybe the blob issue is not the cause.

I'm confused about this statement. The error clearly points to an issue with blob.

@ofirdev
Copy link
Contributor Author

ofirdev commented Nov 26, 2013

I meant that the page displays fine even when I see the error.
Something makes the page stay in loading state.
For me, it's not an intermittent problem and it happens every time.

@yurydelendik
Copy link
Contributor

Something makes the page stay in loading state.

Yes, it's waiting for image to be loaded. We probably shall add img.onerror stuff when img.onload is used

@ofirdev
Copy link
Contributor Author

ofirdev commented Jan 10, 2014

Is there a workaround for this iissue n IE?
I understand that it's a browser bug but it makes pdf.js unusable for us on IE.

@timvandermeij
Copy link
Contributor

@ofirdev Yury posted a workaround a few comments ago:

"As a workaround you can modify PDFJS.createObjectURL to always create data URL instead https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js#L1103"

@ofirdev
Copy link
Contributor Author

ofirdev commented Jan 10, 2014

I've tried commenting lines 1182-1187 to force it to use the data schema but I'm getting the same error.
https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js#L1182
Can you explain how I can use data URL?

After all the work invested in IE compatibility, why are you willing to drop support instead of adding a simple fix in the compatibility.js file?

@timvandermeij
Copy link
Contributor

@ofirdev We are not dropping support for IE, it's just that the developers are also very busy with other parts of PDF.js. There aren't that many developers and because it is primarily being developed for Firefox, the focus is there. We are definitely trying to support as much browsers as possible. Pull requests are therefore very welcome!

Let's see if Yury has more ideas.

/cc @yurydelendik

@yurydelendik
Copy link
Contributor

@ofirdev did you report the issue to the IE vendor?

@timvandermeij
Copy link
Contributor

@ofirdev Yury made #4103 to address this issue.

@yurydelendik
Copy link
Contributor

Cool, thanks

DanielHeath added a commit to DanielHeath/browser-compat-data that referenced this issue Jan 15, 2020
For instance: mozilla/pdf.js#3977 

When reading a image out of a pdf, the resulting Blob does not have its readonly `type` property set.

As a result, IE11 will only sometimes display the image. I'm as yet unclear why it does not behave predictably; I have had the same file fail or succeed on different runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants