Open Bug 311009 Opened 19 years ago Updated 2 years ago

nsIRequest::IsPending not set to false uniformly

Categories

(Core :: Networking, defect, P5)

defect

Tracking

()

mozilla1.9alpha1

People

(Reporter: darin.moz, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

While working with bryner on one of the bfcache bugs, we found that
nsIRequest::isPending is not set to false in a uniform way.  For example, the
HTTP channel sets isPending to false before calling OnStopRequest, while other
channels set isPending to false after calling OnStopRequest.

It would be nice if all channels set IsPending to false before calling
OnStopRequest so that way downstream someone could determine if the channel is
in the process of calling OnStopRequest.  for example, in the case of a
multipart mixed response, it would have been nice if one could inspect the
IsPending state of the partChannel's baseChannel to determine if the
OnStopRequest being called is the last OnStopRequest.  bryner added
nsIMultiPartChannel::IsLastPart to get around this problem.

there may be other cases where being consistent here matters, so we should fix it.
Target Milestone: --- → mozilla1.9alpha
This bug is partially fixed for the protocol handlers covered by bug 312760.
Depends on: basechannel
Priority: -- → P2
-> defaults
Assignee: darin.moz → nobody
QA Contact: benc → networking
I think we should fix this for 1.9...
Flags: blocking1.9?
biesi, are you interested in taking this?
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Assignee: nobody → cbiesinger
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Assignee: cbiesinger → nobody
Honza, Michal, Patrick - do you guys know if this is still an issue?
I don't know if there's inconsistency between protocols anymore, but we're still inconsitstent *within* HTTP: see bug 748117
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P2 → P5
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.