You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another issue is that xhr_should_not_blocked.getAllResponseHeaders() (same steps as in previous comment) throws error. Uncaught TypeError: Cannot read properties of undefined (reading 'length')
Squashed commit of the following:
commit 7de58b6
Author: Adam Wróblewski <adam@adguard.com>
Date: Tue Aug 1 20:15:15 2023 +0200
Fix issue with multiple requests in prevent-xhr
Related to - #261, but a bit different.
Steps to reproduce
xhr_should_be_blocked.responseURL
should returns'https://example.org/advert'
, but it returns'https://example.org/test'
.Screenshot
The problem is here:
Scriptlets/src/scriptlets/prevent-xhr.js
Line 197 in bb9c893
xhrData.url
is from second request.We could add something like
thisArg.url = xhrData.url
, here:Scriptlets/src/scriptlets/prevent-xhr.js
Lines 129 to 131 in bb9c893
and then use it in
responseURL
instead ofxhrData.url
.The text was updated successfully, but these errors were encountered: