Closed Bug 1799421 Opened 2 years ago Closed 2 years ago

Avoid asyncLoadDB to run late in shutdown

Categories

(Toolkit :: Add-ons Manager, task, P3)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

Details

Attachments

(2 files)

The pref extensions.pendingOperations is writtent late during shutdown, asyncLoadDB probably should check for shutdown?

Blocks: 1754104
Severity: -- → N/A
Priority: -- → P3

PIProvider already uses AsyncShutdown.quitApplicationGranted to start its shutdown. But it should also check to not be instantiated anymore after we passed that barrier. And XPIDatabase should check XPIProvider for shutdown beofre attempting to load a database, too., too.

Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Blocks: 1805139
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8699d44117a Avoid late instantiation of XPIProvider and XPIDatabase. r=zombie,rpl

Backed out changeset e8699d44117a (Bug 1799421) for marionette failures on nsDebugImpl.cpp.
Backout link
Push with failures <--> Mn
Failure Log

Flags: needinfo?(jstutte)

Yeah, apparently asyncLoadDB needs to do

lazy.XPIInternal.resolveDBReady(this._dbPromise);

before returning in order to not block.

But the interesting piece is that we hit this at all in CI. I assume that indicates that the AddonManager can be starting late in shutdown. That reminds me of bug 1814104. If the test passes now we can probably file a new bug for this (or even ignore it).

Flags: needinfo?(jstutte)
Regressions: 1821089

Hopefully that regression will be addressed by the latest change, too.

Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9bf00b9d7ae Avoid late instantiation of XPIProvider and XPIDatabase. r=zombie,rpl
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8943596657f Amend test_shutdown_barriers.js to check resolveDBReady. r=rpl
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: