Add a testing ability to directly show the infobars by generating fake media error
Categories
(Core :: Audio/Video: Playback, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(6 files)
Proton visual refresh will be happen on Fx89, and the infobars is the part of the Proton project. There is not an easy way to display those infobars which are related with media error, so we would like to implement a way to allow QA easily to test those infobars and see if they are redesigned correctly.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D106676
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D106681
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D106682
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D106683
Assignee | ||
Comment 7•4 years ago
|
||
Here are the steps of how we can test those infobars without having a real error.
Pre-requirement
- set the pref
media.decoder-doctor.testing=true
Test To improve video quality, you may need to install Microsoft’s Media Feature Pack.
- set the pref
media.decoder-doctor.testing.fake-error=MediaWMFNeeded
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Test To play audio, you may need to install the required PulseAudio software.
- set the pref
media.decoder-doctor.testing.fake-error=MediaCannotInitializePulseAudio
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Test An error occurred while decoding a media resource.
- set the pref
media.decoder-doctor.testing.fake-error=MediaDecodeError
- set the pref
media.decoder-doctor.decode-errors-allowed=*
- add
MediaDecodeError
into the prefmedia.decoder-doctor.notifications-allowed
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Test A recoverable error occurred while decoding a media resource.
- set the pref
media.decoder-doctor.testing.fake-error=MediaDecodeWarning
- set the pref
media.decoder-doctor.decode-warnings-allowed=*
- add
MediaDecodeWarning
into the prefmedia.decoder-doctor.notifications-allowed
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Test To play video, you may need to install the required video codecs.
- set the pref
media.decoder-doctor.testing.fake-error=MediaPlatformDecoderNotFound
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Test libavcodec may be vulnerable or is not supported, and should be updated to play video.
- set the pref
media.decoder-doctor.testing.fake-error=MediaUnsupportedLibavcodec
- open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
- the infobar will show
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9d9d308f58bd
https://hg.mozilla.org/mozilla-central/rev/c7f6feaa92d9
https://hg.mozilla.org/mozilla-central/rev/c10a84c77c0b
https://hg.mozilla.org/mozilla-central/rev/ab7c4e56db27
Description
•