1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Remove the test of experimental properties in workers

This commit is contained in:
vyv03354 2013-02-17 14:30:08 +09:00
parent f8e70dcf13
commit b591d39130
3 changed files with 18 additions and 7 deletions

View file

@ -168,8 +168,14 @@ var WorkerMessageHandler = {
}
// check if the response property is supported by xhr
var xhr = new XMLHttpRequest();
if (!('response' in xhr || 'mozResponse' in xhr ||
'responseArrayBuffer' in xhr || 'mozResponseArrayBuffer' in xhr)) {
var responseExists = 'response' in xhr;
// check if the property is actually implemented
try {
var dummy = xhr.responseType;
} catch (e) {
responseExists = false;
}
if (!responseExists) {
handler.send('test', false);
return;
}