Closed Bug 947495 Opened 11 years ago Closed 11 years ago

Network usage stats for TCPSocket get undefined value

Categories

(Core :: DOM: Core & HTML, defect)

24 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jdm, Assigned: lpy)

Details

(Whiteboard: [mentor=jdm][lang=js][good first bug])

Attachments

(1 file)

From TCPSocket.js:

>    this._txBytes += length;
>    this._saveNetworkStats(false);

The length variable no longer exists; it should be using byteLength instead.
This can cause incorrect network usage statistics, especially in regards to usage by the email app.
blocking-b2g: --- → koi?
Attached patch bug947495.patchSplinter Review
Well, I just saw |length| in http://mxr.mozilla.org/mozilla-central/source/dom/network/src/TCPSocket.js#670
Assignee: nobody → pylaurent1314
Attachment #8344168 - Flags: review?(josh)
Argh, I was looking at mozilla-central with the patch from bug 885982 applied :(
Status: NEW → RESOLVED
blocking-b2g: koi? → ---
Closed: 11 years ago
Resolution: --- → INVALID
Attachment #8344168 - Flags: review?(josh)
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: