Closed
Bug 1865239
Opened 2 years ago
Closed 2 years ago
Try to provide a way for OnDataFinish to be done strictly before OnStopRequest.
Categories
(Core :: Networking, task, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
122 Branch
Tracking | Status | |
---|---|---|
firefox122 | --- | fixed |
People
(Reporter: emilio, Assigned: smayya)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Being able to rely on that would simplify the implementation of bug 1864817 quite a bit.
It seems that, if I'm reading this code correctly, there is no race if either:
- The ODA/ODF event target is the same as the OnStopRequest target (because in that case ODA is guaranteed to be enqueued first).
- The ODA/ODF event target is the socket thread (which is true of the CSS loader, and a bunch of others, IIUC, that's what code like this tries to do). Because in that case the task is executed sync and ODA/ODF is done before OnStopRequest is enqueued.
If that's correct, it'd be good to have that more explicitly documented at least, so that it's not so sketchy to rely on that. Maybe even worth having a more explicit API to make that even clearer.
At least for the CSS loader, it'd be nice to be able to rely on that, since that means we could make ODF do something like taking care of the happy path in ODF, and set a flag to nerf OnStopRequest
Assignee | ||
Updated•2 years ago
|
Assignee: nobody → smayya
Assignee | ||
Updated•2 years ago
|
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee | ||
Comment 1•2 years ago
|
||
Pushed by smayya@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eb4ff33091f5
update ChannelEventQueue and nsIThreadRetargetableStreamListener documentation. r=necko-reviewers,jesup DONTBUILD
Comment 3•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox122:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•