mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Ensure strict-blocking is enabled when gaining broad permissions
This commit is contained in:
parent
51db128dc2
commit
f15adcf2d5
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ async function onPermissionsAdded(permissions) {
|
|||
if ( details === undefined ) {
|
||||
const modified = await syncWithBrowserPermissions();
|
||||
if ( modified === false ) { return; }
|
||||
return registerInjectables();
|
||||
return Promise.all([
|
||||
updateSessionRules(),
|
||||
registerInjectables(),
|
||||
]);
|
||||
}
|
||||
const defaultMode = await getDefaultFilteringMode();
|
||||
if ( defaultMode >= MODE_OPTIMAL ) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue