Look into simplifying RFP check in MediaDevices::OnDeviceChange
Categories
(Core :: WebRTC: Audio/Video, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox132 | --- | fixed |
People
(Reporter: tschuster, Assigned: fkilic)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fpp:m?])
Attachments
(1 file)
Right now MediaDevices::OnDeviceChange calls ShouldResistFingerprinting
with a justification, but I am wondering if we could change this code now that checking ShouldResistFingerprinting()
on windows is fast.
I am a bit hesitant, because the code seems quite complicated. However after we pass the RFP check we set mHaveUnprocessedDeviceListChange
and call MaybeResumeDeviceExposure
and that function requires GetOwner
to return a non-null value. Could we move the RFP check into that function?
Or is mHaveUnprocessedDeviceListChange
actually some kind of way of retrying that function when we don't have a window?
Comment 1•3 years ago
|
||
FWIW The efficiency check isn't so much because ShouldRFP is fast, but because there's all that other stuff I wanted to guard. Bug 1721840 had similar code that had showed up in hangstats, so I think I was being similarly conservative.
Updated•2 years ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Description
•