forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1767063 - make PerformanceEntry.mEpoch narrowing conversion expli…
…cit. r=sefeng The converted value gets passed into TimingNotification which assigns the value into a PerformanceEntry (this is the only usage). Since PerformanceEntry is defined in WebIDL, we could not change its types (which is double for mEpoch) so we were forced to safely convert the value where we did. I don't think the existing conversion code had any bugs since we converted a 64-bit signed integer timestamp into uint64_t (safe) into a double (which is safe for the reasons mentioned in the code comments). Differential Revision: https://phabricator.services.mozilla.com/D145142
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters