{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/6167","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6167/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6167/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6167/events","html_url":"https://github.com/mozilla/pdf.js/issues/6167","id":92483949,"number":6167,"title":"pdf.js modifies XMLHttpRequest.response, breaking other JS that wants blobs","user":{"login":"samterrell","id":94885,"avatar_url":"https://avatars.githubusercontent.com/u/94885?v=3","gravatar_id":"","url":"https://api.github.com/users/samterrell","html_url":"https://github.com/samterrell","followers_url":"https://api.github.com/users/samterrell/followers","following_url":"https://api.github.com/users/samterrell/following{/other_user}","gists_url":"https://api.github.com/users/samterrell/gists{/gist_id}","starred_url":"https://api.github.com/users/samterrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samterrell/subscriptions","organizations_url":"https://api.github.com/users/samterrell/orgs","repos_url":"https://api.github.com/users/samterrell/repos","events_url":"https://api.github.com/users/samterrell/events{/privacy}","received_events_url":"https://api.github.com/users/samterrell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-01T21:01:58Z","updated_at":"2015-07-02T00:40:29Z","closed_at":null,"body":"If you load pdf.js on the same page as code like this:\r\n```javascript\r\nvar xhr = new XMLHttpRequest();\r\nxhr.open('GET', 'binary.jpg', true);\r\nxhr.responseType = 'blob';\r\nxhr.onload = function(e) {\r\n  console.log(xhr.response);\r\n};\r\nxhr.send();\r\n```\r\nYou won't get a Blob as you would expect. This is the offending line:\r\nhttps://github.com/mozilla/pdf.js/blob/d10573468634e5b1f431821ec2f8cf80d5a64ef6/web/compatibility.js#L199"},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/117861883","html_url":"https://github.com/mozilla/pdf.js/issues/6167#issuecomment-117861883","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6167","id":117861883,"user":{"login":"yurydelendik","id":1523410,"avatar_url":"https://avatars.githubusercontent.com/u/1523410?v=3","gravatar_id":"","url":"https://api.github.com/users/yurydelendik","html_url":"https://github.com/yurydelendik","followers_url":"https://api.github.com/users/yurydelendik/followers","following_url":"https://api.github.com/users/yurydelendik/following{/other_user}","gists_url":"https://api.github.com/users/yurydelendik/gists{/gist_id}","starred_url":"https://api.github.com/users/yurydelendik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurydelendik/subscriptions","organizations_url":"https://api.github.com/users/yurydelendik/orgs","repos_url":"https://api.github.com/users/yurydelendik/repos","events_url":"https://api.github.com/users/yurydelendik/events{/privacy}","received_events_url":"https://api.github.com/users/yurydelendik/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T00:40:29Z","updated_at":"2015-07-02T00:40:29Z","body":"I don't understand how it's related Chrome code shall not reach this line due to https://github.com/mozilla/pdf.js/blob/d10573468634e5b1f431821ec2f8cf80d5a64ef6/web/compatibility.js#L163 (at least for me)... unless you have really old version of Chrome.\r\n\r\nPlease provide more information about your environment including link to the sample code that demonstrates the issue. See also https://github.com/mozilla/pdf.js/blob/d10573468634e5b1f431821ec2f8cf80d5a64ef6/CONTRIBUTING.md"}}