Fixed race condition causing temporary settings not to survive updates sometimes.
This commit is contained in:
parent
5c3b05ba07
commit
273a924324
|
@ -173,10 +173,9 @@ var LifeCycle = (() => {
|
|||
throw new error("Ephemeral policy not found in survival tab %s!", tabId);
|
||||
}
|
||||
ns.unrestrictedTabs = new Set(unrestrictedTabs);
|
||||
|
||||
destroyIfNeeded();
|
||||
if (ns.initializing) await ns.initializing;
|
||||
ns.policy = new Policy(policy);
|
||||
await ns.initializing;
|
||||
await Promise.all(
|
||||
Object.entries(allSeen).map(
|
||||
async ([tabId, seen]) => {
|
||||
|
|
Loading…
Reference in New Issue