Closed Bug 1870594 Opened 11 months ago Closed 11 months ago

Handle the no-CSCP case in StreamList::CloseAll

Categories

(Core :: Storage: Cache API, task)

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

Details

Attachments

(1 file)

It seems that removing entries from StreamList::mList depends on CacheStreamControlParent to be ever created and/or able to send events to the child when shutting down.

We can handle this edge case, but it is unclear if this is really happening in the wild.

Assignee: nobody → jstutte
Status: NEW → ASSIGNED

(In reply to Jens Stutte [:jstutte] from comment #0)

It seems that removing entries from StreamList::mList depends on `CacheStreamControlParent to be ever created and/or able to send events to the child when shutting down.

We can handle this edge case, but it is unclear if this is really happening in the wild.

It seems like this could be possible if a content process crashes after actions are dispatched to the Cache API DB thread but before the results are dispatched to the requesting (PBackground) thread. This would be a relatively small window.

I think we could add a test for this situation by wedging the Cache API thread, having a content process issue some Cache API requests, then terminating the content process.

(In reply to Andrew Sutherland [:asuth] (he/him) from comment #2)

I think we could add a test for this situation by wedging the Cache API thread, having a content process issue some Cache API requests, then terminating the content process.

I assume you are suggesting to add such a test in the patch. I wonder if "wedging the Cache API thread" could be a use case for bug 1844129 (I did not look into the WIP patch there, so I might be wrong) ?

Flags: needinfo?(aiunusov)

(In reply to Jens Stutte [:jstutte] from comment #3)

I assume you are suggesting to add such a test in the patch. I wonder if "wedging the Cache API thread" could be a use case for bug 1844129 (I did not look into the WIP patch there, so I might be wrong) ?

Starting to type up a sketch, I think getting the test operational will be at least a medium effort and so it makes sense to land the patch now; I'll r+ the patch now for clarity. I'll see also this bug from a new bug proposing the test.

See Also: → 1871215
Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2339ef37f586 Handle the no-CSCP case in StreamList::CloseAll. r=dom-storage-reviewers,asuth

Removing Artur's ni? here. We can move any further discussion about "wedging the Cache API thread" to bug 1871215.

Flags: needinfo?(aiunusov)
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: