mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02: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
@ -1365,7 +1365,7 @@ function addEventListenerDefuser(
|
|||||||
) {
|
) {
|
||||||
const safe = safeSelf();
|
const safe = safeSelf();
|
||||||
const extraArgs = safe.getExtraArgs(Array.from(arguments), 2);
|
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 rePattern = safe.patternToRegex(pattern);
|
||||||
const log = shouldLog(extraArgs);
|
const log = shouldLog(extraArgs);
|
||||||
const debug = shouldDebug(extraArgs);
|
const debug = shouldDebug(extraArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user