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
The main problem that there is no way to detect which tab is opened by a user manually and which one is opened programmatically. $popup modifier rule is applied on the onBeforeRequest event where isNewPopupTab() returns the same result for both cases — true, and the tab is being closed.
AdGuard Extension version
4.2.168
Browser version
Chrome 116
OS version
macos 13.5.2
Steps to reproduce
$popup,domain=iana.org
Result:
The new tab is closed by the rule but it shouldn't be.
the same happens when the tab is opened by js in the console:
The main problem that there is no way to detect which tab is opened by a user manually and which one is opened programmatically.
$popup
modifier rule is applied on theonBeforeRequest
event whereisNewPopupTab()
returns the same result for both cases —true
, and the tab is being closed.It would be helpful if the
details
object has a new boolean property, for example,initiatedByUser
, because now all other properties do not provide enough data to calculate it:https://developer.chrome.com/docs/extensions/reference/webRequest/#event-onBeforeRequest
Expected Behavior
Tab opened by a user should not be blocked by
$popup
modifier rulesThe text was updated successfully, but these errors were encountered: