Closed Bug 1618980 Opened 6 years ago Closed 6 years ago

ChannelWrapper returns incorrect requestSize and responseSize

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox74 --- fixed
firefox75 --- fixed

People

(Reporter: xeonchen, Assigned: xeonchen)

References

Details

Attachments

(1 file)

Bug 1545423 introduced ChannelWrapper.requestSize and ChannelWrapper.responseSize, but these values are cached and never refreshed. If the value had been read before nsHttpChannel::OnStopRequest, it will always be zero.

Attachment #9129861 - Attachment description: Bug 1618980 - clear RequestSize/ResponseSiz cache; → Bug 1618980 - clear RequestSize/ResponseSize cache;
Pushed by xeonchen@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f55efd6af146 clear RequestSize/ResponseSize cache; r=mixedpuppy
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75

Comment on attachment 9129861 [details]
Bug 1618980 - clear RequestSize/ResponseSize cache;

Beta/Release Uplift Approval Request

  • User impact if declined: Bug 1614777 may not able to collect bandwidth data on certain profiles.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This only reset cached values on some specific criteria.
  • String changes made/needed: N/A
Attachment #9129861 - Attachment description: Bug 1618980 - clear RequestSize/ResponseSize cache; → Bug 1618980 - clear RequestSize/ResponseSiz cache;
Attachment #9129861 - Flags: approval-mozilla-beta?
Attachment #9129861 - Attachment description: Bug 1618980 - clear RequestSize/ResponseSiz cache; → Bug 1618980 - clear RequestSize/ResponseSize cache;

Comment on attachment 9129861 [details]
Bug 1618980 - clear RequestSize/ResponseSize cache;

Patch is minimal and needed for the study in 74, uplift approved for the beta branch before RC.

Attachment #9129861 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: