Bug 1685399 - part13 : add test. r=padenot

As we can only snapshot a telemetry histogram in the chrome process, we have to make them measurable in the chrome process and write a chrome mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D101266
This commit is contained in:
alwu
2021-01-19 19:49:23 +00:00
parent 5aa1fbbb7a
commit 113f4b293d
11 changed files with 521 additions and 4 deletions

View File

@@ -7137,6 +7137,13 @@ FrameStatistics* HTMLMediaElement::GetFrameStatistics() const {
return mDecoder ? &(mDecoder->GetFrameStatistics()) : nullptr;
}
void HTMLMediaElement::DispatchAsyncTestingEvent(const nsAString& aName) {
if (!StaticPrefs::media_testing_only_events()) {
return;
}
DispatchAsyncEvent(aName);
}
void HTMLMediaElement::AudioCaptureTrackChange(bool aCapture) {
// No need to capture a silent media element.
if (!HasAudio()) {