Skip to content

Commit 19e8fe8

Browse files
committed
Don’t throw an error inside XMLHttpRequest Potential for regressions here Could also fake a bad response instead
1 parent c933d03 commit 19e8fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/safari/vapi-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,12 @@ x.setAttribute("src", val);\
634634
return x;\
635635
};\
636636
open = function(u) {\
637-
if ( block(u, "popup") ) return {};\
637+
if ( block(u, "popup") ) return null;\
638638
else return wo.apply(this, arguments);\
639639
};\
640640
XMLHttpRequest.prototype.open = function(m, u) {\
641641
if ( block(u, "xmlhttprequest") ) {\
642-
throw new Error("InvalidAccessError"); return;\
642+
xo.apply(this, [m, ""]); return;\
643643
} else {\
644644
xo.apply(this, arguments); return;}\
645645
};';

0 commit comments

Comments
 (0)