Bug 1853057 - use the cached remote result to anwser the support information. r=jolin
commitd1dca9e21ffb8b5834f51c4d459f84d20f40aeff
authoralwu <alwu@mozilla.com>
Fri, 15 Sep 2023 04:35:45 +0000 (15 04:35 +0000)
committeralwu <alwu@mozilla.com>
Fri, 15 Sep 2023 04:35:45 +0000 (15 04:35 +0000)
tree018f59277a9204d21bf37f541fcb28b72de6fbe3
parent5eff4e2dcc8dd880b7c52ffaa35dbf13bd606709
Bug 1853057 - use the cached remote result to anwser the support information. r=jolin

When asking config in the content process, we should return result based
on the cached result in the remote decoder because we don't want
to run Windows Media Foundation (WMF) in the content process, which
should be better to run only in the higher security sandboxed process.

We use that function in [1] in the content process to indentify what
types the media engine supports.

[1] https://searchfox.org/mozilla-central/rev/b6cd901cf074c5e75e3902d660bafa3cf3967c40/dom/media/ExternalEngineStateMachine.cpp#332-337

Differential Revision: https://phabricator.services.mozilla.com/D187522
dom/media/platforms/wmf/MFMediaEngineDecoderModule.cpp
dom/media/platforms/wmf/MFMediaEngineDecoderModule.h