Open Bug 1436963 Opened 6 years ago Updated 2 years ago

Multiple devicechange events are fired when plugging/unplugging a webcam with outdated driver

Categories

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

All
Windows
defect

Tracking

()

Tracking Status
firefox58 --- wontfix
firefox59 --- affected
firefox60 --- affected

People

(Reporter: JuliaC, Unassigned)

Details

[Note]:
- This issue is only reproducible if connecting/unplugging a second camera which has the driver outdated or disabled

[Affected versions]:
- 60.0a1 (2018-02-09) 
- 59.0b8 build2 (20180208193705)
- 58.0.2 build1 (20180206200532)

[Affected platforms]:
- Windows 10 x86/x64
- Windows 7 x64

[Steps to reproduce]:
Prerequisites:
 - Use a station with an integrated camera or have a webcam connected
1. Launch Firefox. 
2. Navigate to https://jsfiddle.net/Lqo4paed/.
3. Press "gUM!" and grant the camera permissions. 
4. Connect the second webcam.
5. Unplug the second webcam.

[Expected result]:
- The "device change!" log is displayed once for each time the device is connected/unplugged (or twice, if the webcam also has an integrated microphone)

[Actual result]:
- The "device change!" log is displayed 3 or 4 times every time the device is connected/unplugged

[Regression range]:
- This issue is not a recent regression, as it is reproducible all the way back to 57.0a1 (2017-08-02)

[Additional notes]:
- In case the primary webcam's driver is outdated, the "device change!" log is also displayed once right after step 3.
Reproduced the issue when using the following devices: 
- Microsoft LifeCam HD 3000 with integrated microphone
- Logitech HD C920 with integrated microphone
Some additional details: in order to easily reproduce this behaviour, you can disable the device driver, as I already mentioned. For this, your device must be connected to the station, you have to access the Device Manager (from Control Panel), go to the corresponding section (e.g. Imaging devices) then look for your device. The "Uninstall device" context menu option will uninstall the driver for the selected device. In this way you simulate a similar case, the one when your OS detects the outdated driver and installs a newer version when the device is used once more.
Rank: 25
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.