Closed Bug 1690493 Opened 3 years ago Closed 3 years ago

Reintroduce synchronous QuotaManager::GetOrCreate

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: janv, Assigned: janv)

Details

Attachments

(1 file)

QuotaManager::Init doesn't have to run off the owning thread anymore (after bug 1526891).
However, QuotaManager::GetOrCreate still pretends that the creation must be asynchronous which is not the case anymore. Updating all quota clients is a non-trivial task, so instead of updating everything at once, we can reintroduce synchronous GetOrCreate, and incrementally update clients later.
At this occasion, I'd like to also fix all the xpcshell tests which require QuotaManager, but they don't call do_get_profile which results in a warning. This bug will change it to an assertion.

At this occasion, I'd like to also fix all the xpcshell tests which require QuotaManager, but they don't call do_get_profile which results in a warning. This bug will change it to an assertion.

Unfortunatelly, some webgl generated tests now trigger the assertion:
https://treeherder.mozilla.org/logviewer?job_id=328676751&repo=try&lineNumber=3358

The stack trace is not very helpful, so we will stick with a warning for now.

For reference, you saying "reintroduce synchronous GetOrCreate", which implies this had existed before at some time. Could you link the bug that removed that?

(In reply to Simon Giesecke [:sg] [he/him] from comment #3)

For reference, you saying "reintroduce synchronous GetOrCreate", which implies this had existed before at some time. Could you link the bug that removed that?

Bug 961049
Exact changeset: https://hg.mozilla.org/mozilla-central/rev/27a67b5cc5916ac57ca7b64808da50799e0407f0

Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e3f866fc70f4
Reintroduce synchronous QuotaManager::GetOrCreate; r=dom-workers-and-storage-reviewers,sg
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: