mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Match type exactly in prevent-addEventListener scriptlet
Unless `type` is a regex of course. Related feedback: https://github.com/uBlockOrigin/uAssets/discussions/17907#discussioncomment-7362212
This commit is contained in:
parent
b8542cb894
commit
d32204f984
1 changed files with 1 additions and 1 deletions
|
|
@ -1365,7 +1365,7 @@ function addEventListenerDefuser(
|
|||
) {
|
||||
const safe = safeSelf();
|
||||
const extraArgs = safe.getExtraArgs(Array.from(arguments), 2);
|
||||
const reType = safe.patternToRegex(type);
|
||||
const reType = safe.patternToRegex(type, undefined, true);
|
||||
const rePattern = safe.patternToRegex(pattern);
|
||||
const log = shouldLog(extraArgs);
|
||||
const debug = shouldDebug(extraArgs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue