Find all blacklisted origins in stack
This commit is contained in:
parent
fc8d011758
commit
4a761efaed
@ -227,29 +227,21 @@ class Logger {
|
|||||||
stackInfo['mousemove'] = false;
|
stackInfo['mousemove'] = false;
|
||||||
stackInfo['exitLogs'] = false;
|
stackInfo['exitLogs'] = false;
|
||||||
|
|
||||||
// here we check which source triggered the action. We know that only one of these
|
// here we check which source triggered the action. There can be more
|
||||||
// functions will appear in the trace at most once (and if more than one of these
|
// than one source, too, so we don't break when we find the first one
|
||||||
// appears — e.g. frameCheck triggered by user toggling autodetection in popup —
|
|
||||||
// the most recent one will be the correct one 99% of the time)
|
|
||||||
for (const line of stackInfo.stack.trace) {
|
for (const line of stackInfo.stack.trace) {
|
||||||
if (line === 'doPeriodicPlayerElementChangeCheck') {
|
if (line === 'doPeriodicPlayerElementChangeCheck') {
|
||||||
stackInfo['periodicPlayerCheck'] = true;
|
stackInfo['periodicPlayerCheck'] = true;
|
||||||
break;
|
|
||||||
} else if (line === 'doPeriodicFallbackChangeDetectionCheck') {
|
} else if (line === 'doPeriodicFallbackChangeDetectionCheck') {
|
||||||
stackInfo['periodicVideoStyleChangeCheck'] = true;
|
stackInfo['periodicVideoStyleChangeCheck'] = true;
|
||||||
break;
|
|
||||||
} else if (line === 'frameCheck') {
|
} else if (line === 'frameCheck') {
|
||||||
stackInfo['aard'] = true;
|
stackInfo['aard'] = true;
|
||||||
break;
|
|
||||||
} else if (line === 'execAction') {
|
} else if (line === 'execAction') {
|
||||||
stackInfo['keyboard'] = true;
|
stackInfo['keyboard'] = true;
|
||||||
break;
|
|
||||||
} else if (line === 'processReceivedMessage') {
|
} else if (line === 'processReceivedMessage') {
|
||||||
stackInfo['popup'] = true;
|
stackInfo['popup'] = true;
|
||||||
break;
|
|
||||||
} else if (line === 'handleMouseMove') {
|
} else if (line === 'handleMouseMove') {
|
||||||
stackInfo['mousemove'] = true;
|
stackInfo['mousemove'] = true;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user