[wpt-sync] Sync PR 16368 - Fix flakiness in audioworklet-suspend.https.html
Categories
(Core :: Web Audio, defect, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 16368 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/16368
Details from upstream follow.
Hongchan Choi <hongchan@chromium.org> wrote:
Fix flakiness in audioworklet-suspend.https.html
It is because the actual suspension takes time to stop the render loop
completely. So the current time advances a little after the suspension
and the assertion that compares two timestamps fails.This CL fixes the problem by:
- Suspend the context immediately after its creation.
- Cache timestamp A after the worklet module loading is completed.
- Check timestamp B after 500ms. If the context is not suspended
(which is the original bug), two timestamps A and B won't match.Bug: 953332
Test: external/wpt/webaudio/the-audio-api/the-audioworklet-interface/audioworklet-suspend.https.html
Change-Id: I3fc4ccf78ec9c137128f8605d502692be303b02e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570129
Reviewed-by: Raymond Toy \<rtoy@chromium.org>
Reviewed-by: Robert Ma \<robertma@chromium.org>
Commit-Queue: Hongchan Choi \<hongchan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#651437}
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
| bugherder | ||
Description
•