Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don’t throw an error inside XMLHttpRequest
Potential for regressions here
Could also fake a bad response instead
  • Loading branch information
el1t committed Mar 21, 2017
1 parent c933d03 commit 19e8fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/safari/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ x.setAttribute("src", val);\
return x;\
};\
open = function(u) {\
if ( block(u, "popup") ) return {};\
if ( block(u, "popup") ) return null;\
else return wo.apply(this, arguments);\
};\
XMLHttpRequest.prototype.open = function(m, u) {\
if ( block(u, "xmlhttprequest") ) {\
throw new Error("InvalidAccessError"); return;\
xo.apply(this, [m, ""]); return;\
} else {\
xo.apply(this, arguments); return;}\
};';
Expand Down

0 comments on commit 19e8fe8

Please sign in to comment.