Closed Bug 1654430 Opened 4 years ago Closed 4 years ago

200ms sleep on mainthread when inserting/removing USB/bluetooth cam/mic/headset

Categories

(Core :: WebRTC: Audio/Video, defect, P2)

defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: jib, Assigned: jib)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

We have a PR_Sleep(200) on mainthread here whenever the user inserts or removes a USB or bluetooth camera, mic or speaker device. 😬

Pushed by jbruaroey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7e2fb6f29963
Replace 200ms mainthread sleep on inserting/removing USB/bluetooth cam/mic/speaker with WaitFor() promise. r=achronop

This patch seems to expose various timing issues that I can't repro locally (on macOS).

Flags: needinfo?(jib)

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jib, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jib)
Attachment #9173528 - Attachment description: Bug 1654430 - Wait for ended events to have fired on other documents to not distrupt subsequent tests → Bug 1654430 - Wait for ended events to have fired on other documents to not disrupt subsequent tests
Pushed by jbruaroey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/788a6c7c52f1
Replace 200ms mainthread sleep on inserting/removing USB/bluetooth cam/mic/speaker with WaitFor() promise. r=achronop
https://hg.mozilla.org/integration/autoland/rev/0f1db7f155cb
Wait for ended events to have fired on other documents to not disrupt subsequent tests r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/495576ebc999
Update waitForRtpFlow() mochitest helper to use sender/receiver.getStats. r=ng
https://hg.mozilla.org/integration/autoland/rev/10a70b4fad32
Fix mDeviceIDs to only track real devices and not be overwritten by other enumerateDevices requests. r=pehrsons
Attachment #9173528 - Attachment description: Bug 1654430 - Wait for ended events to have fired on other documents to not disrupt subsequent tests → Bug 1654430 - Reorder devicechange event tests in test_ondevicechange.html
Pushed by jbruaroey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/098923480472
Replace 200ms mainthread sleep on inserting/removing USB/bluetooth cam/mic/speaker with WaitFor() promise. r=achronop
https://hg.mozilla.org/integration/autoland/rev/7b08ec67dff7
Reorder devicechange event tests in test_ondevicechange.html r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/79124a30c1ce
Update waitForRtpFlow() mochitest helper to use sender/receiver.getStats. r=ng
https://hg.mozilla.org/integration/autoland/rev/9cca568a743b
Fix mDeviceIDs to only track real devices and not be overwritten by other enumerateDevices requests. r=pehrsons
Regressions: 1667533
Regressions: 1667532
No longer regressions: 1667532
Flags: needinfo?(jib)
Regressed by: 1364038, 1522488
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: