Closed Bug 1893954 Opened 1 year ago Closed 9 months ago

device change event not triggering on AMD laptops

Categories

(Core :: WebRTC, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: leo.ziyou.assini, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Steps to reproduce:

User agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"

  • open dev tools console
  • enter "await navigator.mediaDevices.getUserMedia({video: true, audio: true})" into the console
  • enter "navigator.mediaDevices.ondevicechange = () => {console.log("devices changed")};" into the console
  • plug into the laptop a microphone or webcam

Laptop information:
OS Name Microsoft Windows 10 Enterprise
Version 10.0.19045 Build 19045
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Manufacturer HP
System Model HP EliteBook 845 G7 Notebook PC
System Type x64-based PC
System SKU 2P5Q1UC#ABZ
Processor AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700 Mhz, 8 Core(s), 16 Logical Processor(s)
BIOS Version/Date HP S77 Ver. 01.06.00, 7/29/2021
SMBIOS Version 3.2
Embedded Controller Version 7.53
BIOS Mode UEFI
BaseBoard Manufacturer HP
BaseBoard Product 8760
BaseBoard Version KBC Version 07.35.00
Platform Role Mobile
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Hardware Abstraction Layer Version = "10.0.19041.3636"
Time Zone W. Europe Daylight Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.3 GB
Available Physical Memory 557 MB
Total Virtual Memory 30.4 GB
Available Virtual Memory 3.76 GB
Page File Space 15.0 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off

Issue does not reproduce on Intel computers, seems to be a hardware related issue?

Actual results:

No console output

Expected results:

Device change should be detected

The Bugbug bot thinks this bug should belong to the 'Core::Privacy: Anti-Tracking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Privacy: Anti-Tracking
Product: Firefox → Core
Version: other → unspecified

Most likely not anti-tracking related.

Component: Privacy: Anti-Tracking → WebRTC
Flags: needinfo?(jib)

Device changes are a fingerprint, so the spec limits when this event is fired. Ahead of active microphone or camera use, it's only supposed to fire when the number of devices of a kind go from zero to nonzero or nonzero to zero. Is this your situation?

The spec similarly restricts what's exposed in enumerateDevices. Unfortunately, Firefox (like Chrome) still exposes too much information there right now due to bug 1843434. But I believe we get the devicechange event right.

Does it repro with https://jan-ivar.github.io/dummy/enumerate.html ? That page should output "device change!" on the page if you insert a device. Please try it both with and without clicking the Start Mic! button first.

Flags: needinfo?(jib) → needinfo?(leo.ziyou.assini)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 9 months ago
Flags: needinfo?(leo.ziyou.assini)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.