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);
|
throw new error("Ephemeral policy not found in survival tab %s!", tabId);
|
||||||
}
|
}
|
||||||
ns.unrestrictedTabs = new Set(unrestrictedTabs);
|
ns.unrestrictedTabs = new Set(unrestrictedTabs);
|
||||||
|
|
||||||
destroyIfNeeded();
|
destroyIfNeeded();
|
||||||
|
if (ns.initializing) await ns.initializing;
|
||||||
ns.policy = new Policy(policy);
|
ns.policy = new Policy(policy);
|
||||||
await ns.initializing;
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Object.entries(allSeen).map(
|
Object.entries(allSeen).map(
|
||||||
async ([tabId, seen]) => {
|
async ([tabId, seen]) => {
|
||||||
|
|
Loading…
Reference in New Issue