Bug 1695362 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Here are the steps of how we can test those infobars without having a real error. 

Pre-requirement
1. set the pref `media.decoder-doctor.testing=true`

---
Test `To improve video quality, you may need to install Microsoft’s Media Feature Pack.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaWMFNeeded`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `To play audio, you may need to install the required PulseAudio software.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaCannotInitializePulseAudio`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `An error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeError`
2. set the pref `media.decoder-doctor.decode-errors-allowed=*`
3. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
4. the infobar will show

Test `A recoverable error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeWarning`
2. set the pref `media.decoder-doctor.decode-errors-allowed=*`
3. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
4. the infobar will show

Test `To play video, you may need to install the required video codecs.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaPlatformDecoderNotFound`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `libavcodec may be vulnerable or is not supported, and should be updated to play video.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaUnsupportedLibavcodec`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show
Here are the steps of how we can test those infobars without having a real error. 

Pre-requirement
1. set the pref `media.decoder-doctor.testing=true`

---
Test `To improve video quality, you may need to install Microsoft’s Media Feature Pack.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaWMFNeeded`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `To play audio, you may need to install the required PulseAudio software.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaCannotInitializePulseAudio`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `An error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeError`
2. set the pref `media.decoder-doctor.decode-errors-allowed=*`
3. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
4. the infobar will show

Test `A recoverable error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeWarning`
2. set the pref `media.decoder-doctor.decode-warnings-allowed=*`
3. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
4. the infobar will show

Test `To play video, you may need to install the required video codecs.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaPlatformDecoderNotFound`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `libavcodec may be vulnerable or is not supported, and should be updated to play video.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaUnsupportedLibavcodec`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show
Here are the steps of how we can test those infobars without having a real error. 

Pre-requirement
1. set the pref `media.decoder-doctor.testing=true`

---
Test `To improve video quality, you may need to install Microsoft’s Media Feature Pack.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaWMFNeeded`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `To play audio, you may need to install the required PulseAudio software.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaCannotInitializePulseAudio`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `An error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeError`
2. set the pref `media.decoder-doctor.decode-errors-allowed=*`
3. add `MediaDecodeError` into the pref `media.decoder-doctor.notifications-allowed`
4. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
5. the infobar will show

Test `A recoverable error occurred while decoding a media resource.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaDecodeWarning`
2. set the pref `media.decoder-doctor.decode-warnings-allowed=*`
3. add `MediaDecodeWarning` into the pref `media.decoder-doctor.notifications-allowed`
4. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
5. the infobar will show

Test `To play video, you may need to install the required video codecs.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaPlatformDecoderNotFound`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Test `libavcodec may be vulnerable or is not supported, and should be updated to play video.`
1. set the pref `media.decoder-doctor.testing.fake-error=MediaUnsupportedLibavcodec`
2. open a new tab and load url https://alastor0325.github.io/htmltests/autoplay_tests/autoplay_test1.html
3. the infobar will show

Back to Bug 1695362 Comment 7