Open Bug 1809165 Opened 2 years ago Updated 2 years ago

Netmonitor should display info about incomplete request

Categories

(DevTools :: Netmonitor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: valentin, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Keywords: parity-chrome)

I was investigating Bug 1808868 - backpressure support for fetch API and was looking at the demo provided by the reporter: https://fetch-flow-control-demo.glitch.me/
The demo issues a fetch but only reads from the response when you click the button. It expects to not download the full resource until you actually read from the response.

In Chrome, clicking the Fetch button in the no-store section, immediately displays the 200 status of the fetch request. Clicking read500K updates the Size of the downloaded resource.

In Firefox, we see the pending request, but we have no indication if it succeeded, if it downloaded any bytes or anything.

We should probably update the status in OnStartRequest, then use nsIProgressEventSink.onProgress to update the downloaded/uploaded size of the request, not only when onStopRequest is called.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.