Bug 1286444 - Use 64-bit numbers for VideoPlaybackQuality bindings - r?bz
totalVideoFrames, droppedVideoFrames, and corruptedVideoFrames were 'unsigned
long' (equivalent to uint32_t), but they come from the VideoPlaybackQuality
class, which stores and exposes uint64_t numbers.
So to avoid silent truncation, these attributes should use unsigned long long
(equivalent to uint64_t) instead.
MozReview-Commit-ID: ECgA5iLPRXO
--- a/dom/webidl/VideoPlaybackQuality.webidl
+++ b/dom/webidl/VideoPlaybackQuality.webidl
@@ -8,14 +8,14 @@
*
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
* liability, trademark and document use rules apply.
*/
[Func="mozilla::dom::MediaSource::Enabled"]
interface VideoPlaybackQuality {
readonly attribute DOMHighResTimeStamp creationTime;
- readonly attribute unsigned long totalVideoFrames;
- readonly attribute unsigned long droppedVideoFrames;
- readonly attribute unsigned long corruptedVideoFrames;
+ readonly attribute unsigned long long totalVideoFrames;
+ readonly attribute unsigned long long droppedVideoFrames;
+ readonly attribute unsigned long long corruptedVideoFrames;
// At Risk: readonly attribute double totalFrameDelay;
};