AdguardTeam/PopupBlocker

AdGuard Popup Blocker Beta is not compatible with specific abort-current-inline-script

Closed this issue · 1 comments

Steps to reproduce

  1. Install latest AdGuard Popup Blocker Beta (2.5.86)
  2. Add this rule to user rules:
example.org#%#//scriptlet('abort-current-inline-script', 'EventTarget.prototype.addEventListener', 'qwertyTest')
  1. Go to - https://example.org/
  2. Run in browser console:
document.documentElement.addEventListener("click", () => window.open(`/test`) );
  1. Click somewhere

Popup should be blocked, but it looks like that abort-current-inline-script with EventTarget.prototype.addEventListener causes that AdGuard Popup Blocker is broken.

Screenshot

image

I'm not sure if it's correct place to report it, but this issue doesn't occur with stable version of popup blocker 2.5.71, so I'm reporting it here.

@AdamWr Thank you, we will take care of it.