The worst offender is probably AudioContext, where you can get
the current time thus:
var audioContext = new AudioContext();audioContext.currentTime;
Similarly, HTMLVideoElement.currentTime, HTMLAudioElement.currentTime, and CanvasCaptureMediaStream.currentTime can each be used as a time source with resolution better than 10 ms.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
b91f47cce42a2e048f970a18710f9c15672a6cfc is a fixup for our #1517 (moved) patch that rounds the values returned by the currentTime attributes mentioned above.
936cadcc8dd2b0e6784be69cabe44880e36839b0 provides regression tests for all time sources we are rounding in the old and new patches.
Trac: Status: new to needs_review Keywords: TorBrowserTeam201605 deleted, TorBrowserTeam201605R added Description: The worst offender is probably AudioContext, where you can get
the current time thus:
var audioContext = new AudioContext();audioContext.currentTime;
Similarly, HTMLVideoElement.currentTime, HTMLAudioElement.currentTime, and CanvasCaptureMediaStream.currentTime can be used as a time source with resolution better than 10 ms.
to
The worst offender is probably AudioContext, where you can get
the current time thus:
var audioContext = new AudioContext();audioContext.currentTime;
Similarly, HTMLVideoElement.currentTime, HTMLAudioElement.currentTime, and CanvasCaptureMediaStream.currentTime can each be used as a time source with resolution better than 10 ms.
For the regression test patch (936cadcc8dd2b0e6784be69cabe44880e36839b0), the test code references silence.ogg but the patch adds a file named audio.ogg. Shouldn't they match?
The currentTime rounding patch (b91f47cce42a2e048f970a18710f9c15672a6cfc) looks good.
I tried to run the regression tests myself, but mach mochitest is not cooperating at the moment (I think this is due to Mac OS 10.11 Python differences; it is definitely not related to the tests themselves).
I tried to run the regression tests myself, but mach mochitest is not cooperating at the moment (I think this is due to Mac OS 10.11 Python differences; it is definitely not related to the tests themselves).
OK, I was able to run tbb-tests/test_tor_bug1517.html on a different system and it worked correctly. I guess the test does not care about the silence.ogg vs. audio.ogg difference (but it should probably be fixed).
I tried to run the regression tests myself, but mach mochitest is not cooperating at the moment (I think this is due to Mac OS 10.11 Python differences; it is definitely not related to the tests themselves).
OK, I was able to run tbb-tests/test_tor_bug1517.html on a different system and it worked correctly. I guess the test does not care about the silence.ogg vs. audio.ogg difference (but it should probably be fixed).
Thanks for catching that mistake. I've corrected it here: