Bug 1732410 use object instead of subject principal for chrome enumerateDevices(...
commit0a5870dc7ba4662f8a943ca53ffc26ce219e6652
authorKarl Tomlinson <karlt+@karlt.net>
Mon, 11 Oct 2021 05:18:59 +0000 (11 05:18 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Mon, 11 Oct 2021 05:18:59 +0000 (11 05:18 +0000)
tree3441b66830af235316da1f42f841d57666614194
parent21920a4e987e3e8d44b3839f64bd84580d97d4ff
Bug 1732410 use object instead of subject principal for chrome enumerateDevices() resistFingerprinting override r=jib,emilio

This will simplify data structures for pending enumerateDevices() operations.

The subject principal was added for
https://bugzilla.mozilla.org/show_bug.cgi?id=1372073#c28
I don't see any current chrome callers, but chrome should be able to call this
method on a chrome document for real values.  Chrome should have no need
to call this on a content document.

Differential Revision: https://phabricator.services.mozilla.com/D127049
dom/media/MediaDevices.cpp
dom/media/MediaDevices.h
dom/media/MediaManager.cpp
dom/media/MediaManager.h
dom/webidl/MediaDevices.webidl