1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 18:19:38 +02:00

Test for presence of vAPI in deferred methods

This commit is contained in:
Raymond Hill 2023-03-28 08:39:31 -04:00
parent 198c20db76
commit 391b2a4e67
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -257,6 +257,7 @@ vAPI.SafeAnimationFrame = class {
let timer;
const send = function() {
if ( self.vAPI instanceof Object === false ) { return; }
vAPI.messaging.send('scriptlets', {
what: 'securityPolicyViolation',
type: 'net',
@ -1066,6 +1067,7 @@ vAPI.DOMFilterer = class {
};
const doSurvey = ( ) => {
if ( self.vAPI instanceof Object === false ) { return; }
const t0 = performance.now();
const hashes = [];
const nodes = pendingNodes;