Open
Bug 1335967
Opened 8 years ago
Updated 2 years ago
discardedPackets is now packetsDiscarded in RTCInboundRTPStreamStats via spec
Categories
(Core :: WebRTC, defect, P3)
Core
WebRTC
Tracking
()
NEW
People
(Reporter: ng, Assigned: ng)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
RTCInboundRTPStreamStats.discardedPackets is now packetsDiscarded in the spec [1], and we should change our implementation to match.
[1] http://rawgit.com/w3c/webrtc-stats/master/webrtc-stats.html#dom-rtcinboundrtpstreamstats-packetsdiscarded
Assignee | ||
Updated•8 years ago
|
Rank: 20
Priority: -- → P2
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8832748 -
Flags: review?(jib)
Updated•8 years ago
|
Assignee: nobody → na-g
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8832748 [details]
Bug 1335967 changing stat discardedPackets to packetsDiscarded for spec compliance
https://reviewboard.mozilla.org/r/108970/#review110354
You'll need a DOM review for the webidl change. Maybe smaug?
This is a breaking change, so it's worth mentioning in release notes. Unfortunately, I don't see a lot of options as far as deprecation warnings go. While we could have done a cycle where we instrument getters of the old attribute to warn people ahead of breaking them, this could get trigger a lot of false positives, since a lot of JS appears to copy stats wholesale for various reasons (e.g. JSON.stringify).
We should add code to adapter to shim this on older FF so people can use packetsDiscarded without having to check for both.
::: toolkit/content/aboutwebrtc/aboutWebrtc.js:588
(Diff revision 1)
> }
>
> if (stats.droppedFrames) {
> statsString += ` ${getString("dropped_frames_label")}: ${stats.droppedFrames}`;
> }
> if (stats.discardedPackets) {
Missed one.
Attachment #8832748 -
Flags: review?(jib) → review+
Updated•8 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 3•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8832748 [details]
Bug 1335967 changing stat discardedPackets to packetsDiscarded for spec compliance
https://reviewboard.mozilla.org/r/108970/#review110354
I am not quite ready to land this. I am working on PeerConnection.js so that discardedPackets will continue to appear with the legacy getStats(). Additionally I have a change in the localization strings of aboutWebRtc, that will I assume need peer review.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•8 years ago
|
||
After talking with Jan-Ivar I am not altering the behavior for the legacy stats call. The strategy is to when possible keep them in sync.
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8832748 [details]
Bug 1335967 changing stat discardedPackets to packetsDiscarded for spec compliance
https://reviewboard.mozilla.org/r/108970/#review114260
not happy with webrtc making these backwards incompatible changes :/
But apparently this makes the spec more consistent internally.
Attachment #8832748 -
Flags: review+
Comment 7•7 years ago
|
||
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•