Closed Bug 1683280 Opened 4 years ago Closed 2 years ago

Barrier state should return a property bag, not an array of property bags

Categories

(Toolkit :: Async Tooling, defect, P3)

defect
Points:
3

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Copying my comment from https://bugzilla.mozilla.org/show_bug.cgi?id=1617559#c9:

nsIAsyncShutdownBarrier state is supposed to be a property bag:
https://searchfox.org/mozilla-central/rev/8d722de75886d6bffc116772a1db8854e34ee6a7/toolkit/components/asyncshutdown/nsIAsyncShutdown.idl#149
But here it's instead returning an array:
https://searchfox.org/mozilla-central/rev/8d722de75886d6bffc116772a1db8854e34ee6a7/toolkit/components/asyncshutdown/nsAsyncShutdown.jsm#203
The array is built here:
https://searchfox.org/mozilla-central/rev/8d722de75886d6bffc116772a1db8854e34ee6a7/toolkit/components/asyncshutdown/AsyncShutdown.jsm#836-848

These structures are too complex anyway, I wonder why Async Shutdown went with property bags than just stringified JSON (I imagine to help cpp consumers), my plan for now would be to convert the array of property bags into a single property bag containing json strings. That should report more useful metadata.

Severity: -- → S3
Iteration: --- → 86.1 - Dec 14 - Dec 27
Points: --- → 3
Priority: -- → P3

Sorry, there was a problem with the detection of inactive users. I'm reverting the change.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Summary: Barrier state should return a property bag, not an array → Barrier state should return a property bag, not an array of property bags
Iteration: 86.1 - Dec 14 - Dec 27 → ---
Attachment #9303611 - Attachment description: WIP: Bug 1683280 - Barrier state should return a property bag, not an array of property bags. → Bug 1683280 - Barrier state should return a property bag, not an array of property bags. r=mconley
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/c5aac6c52773 Barrier state should return a property bag, not an array of property bags. r=mconley
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: