Do not bail too early when trapping properties in `acs` scriptlet

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/2130#issuecomment-1621684566
This commit is contained in:
Raymond Hill 2023-07-05 10:00:31 -04:00
parent ed89293c62
commit fea6f7f311
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ function abortCurrentScriptCore(
for (;;) {
prop = chain.shift();
if ( chain.length === 0 ) { break; }
if ( prop in owner === false ) { break; }
owner = owner[prop];
if ( owner instanceof Object === false ) { return; }
}