1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00

Call XHR.open even if the request will be blocked

Without calling it an error may be thrown if other XHR parameters are set.
This commit is contained in:
Deathamns 2014-11-11 15:15:21 +01:00
parent 8edb628e1e
commit 812da0900e

View File

@ -317,8 +317,8 @@ if (self.chrome) {
"open = function(u) {",
"return block(u, 'popup') ? null : wo.apply(this, [].slice.call(arguments));",
"};",
"XMLHttpRequest.prototype.open = function(m, u) {",
"return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));",
"XMLHttpRequest.prototype.open = function(m, u, s) {",
"return xo.apply(this, block(u, 'xmlhttprequest') ? ['HEAD', u, s] : [].slice.call(arguments));",
"};"
];