-
Notifications
You must be signed in to change notification settings - Fork 269
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
IE9 cross request to AWS S3 pdf #163
Comments
SCRIPT5007: Unable to get value of the property 'byteLength': object is I think it won't work because IE9 doesn't support array buffer On Tuesday, July 21, 2015, Roberto Contiero notifications@github.com
|
Hi Jaime,
from viewer.html), it works. So, I think that there is a problem with XDomain and pdf.js. Do you have a use case where XDomain is used with pdf.js and the pdf file is downloaded from S3 using a cross domain request (obviously that works in IE9)? |
Does pdf.js use a flash fallback for IE9? |
I can answer this question, pdf.js uses only javascript, also with IE9 (JS polyfill for HTML5 missing features https://github.com/mozilla/pdf.js/blob/master/web/compatibility.js ). Michele |
Hi Jaime, |
Hi Roberto, sorry I'm not able to tell what's going wrong. Maybe you could On Tuesday, July 28, 2015, Roberto Contiero notifications@github.com
|
Hi Jaime,
Thank you so much for all your help and time. Roberto |
Hi Roberto, thanks for putting together the demo - I'll check it out tonight On Wed, Jul 29, 2015 at 3:31 PM, Roberto Contiero notifications@github.com
|
Attempted to debug on saucelabs though its quite limiting. Will try again when I'm at a windows 7 VM. |
I saw your debug session video. If you need a virtualBox VM with IE9, you can download it from here: Roberto |
Hi.
In my project (suppose that it is hosted on www.example.com) I'm trying to use pdf.js to view a pdf downloaded from Amazon S3 in Internet Explorer 9. This is the CORS setted into the bucket:
In the root of that bucket I have putted this proxy.html:
In the viewer.js hosted on www.example.com I have putted these lines:
With this configuration in IE9 I get this error, while with Firefox and Chrome the pdf is opened properly:
LOG: xdomain (https://XXX.XXX.XXX.XXX): adding slave: https://my-bucket.s3-eu-west-1.amazonaws.com
LOG: Warning: Setting up fake worker.
LOG: xdomain (https://XXX.XXX.XXX.XXX): proxying request to slave: 'https://my-bucket.s3-eu-west-1.amazonaws.com'
LOG: xdomain (https://XXX.XXX.XXX.XXX): creating iframe xdomain-f4d1ebaf
LOG: xdomain (https://XXX.XXX.XXX.XXX): new socket: xdomain-bf099a26
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-bf099a26: ready
LOG: xdomain (https://XXX.XXX.XXX.XXX): send socket: xdomain-bf099a26: request
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-bf099a26: XD_CHECK -> [object Object]
LOG: xdomain (https://XXX.XXX.XXX.XXX): send socket: xdomain-bf099a26: ready
LOG: xdomain (https://XXX.XXX.XXX.XXX): ready socket: xdomain-bf099a26 (emit #1 pending)
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-bf099a26: xhr-event -> readystatechange
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-bf099a26: xhr-event -> readystatechange
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-bf099a26: response
LOG: xdomain (https://XXX.XXX.XXX.XXX): send socket: xdomain-bf099a26: close
LOG: xdomain (https://XXX.XXX.XXX.XXX): close socket: xdomain-bf099a26
LOG: xdomain (https://XXX.XXX.XXX.XXX): proxying request to slave: 'https://my-bucket.s3-eu-west-1.amazonaws.com'
LOG: xdomain (https://XXX.XXX.XXX.XXX): new socket: xdomain-ed1314d8
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-ed1314d8: ready
LOG: xdomain (https://XXX.XXX.XXX.XXX): send socket: xdomain-ed1314d8: request
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-ed1314d8: XD_CHECK -> [object Object]
LOG: xdomain (https://XXX.XXX.XXX.XXX): send socket: xdomain-ed1314d8: ready
LOG: xdomain (https://XXX.XXX.XXX.XXX): ready socket: xdomain-ed1314d8 (emit #1 pending)
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-ed1314d8: xhr-event -> readystatechange
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-ed1314d8: xhr-event -> readystatechange
LOG: xdomain (https://XXX.XXX.XXX.XXX): receive socket: xdomain-ed1314d8: response
SCRIPT5007: Unable to get value of the property 'byteLength': object is null or undefined
pdf.worker.js, line 2285 character 7
My pdf.js version is:
Is there any error in my configuration?
Thanks for your support.
Roberto
The text was updated successfully, but these errors were encountered: