Open Bug 1458705 Opened 7 years ago Updated 1 year ago

JSON.stringify of a RTCStatsReport should yield '{}'

Categories

(Core :: WebRTC, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: ng, Assigned: ng)

Details

RTCStatsReport is now a Maplike and as such it should be stringified to '{}'. See https://github.com/w3c/webrtc-pc/issues/1859 . As of right now it yields the legacy stats.
Jan-Ivar, do we need to issue a warning about this prior to changing the behavior for stats returned from the Promise based getStats interface?
Flags: needinfo?(jib)
Rank: 15
Priority: -- → P2
Most definitely we should warn people, but since this effectively returns the legacy (e.g. non-hyphenated) stats, might a common warning on access of those hit both?
Flags: needinfo?(jib)
Severity: normal → S3
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.