Chun-Min Chang 287bbfa3f7 Bug 1897631 - Add testcase r=media-playback-reviewers,padenot
This patch introduces a test that simulates the steps outlined in bug
1897631 to reproduce a crash caused by the absence of the parent global
object. The parent object goes away when the page is refreshed, while
there are pending encoder or decoder output callbacks queued for
execution. In such cases, when these output callbacks are executed, they
fail to create the necessary WebCodecs elements due to lack of the
required parent global objects. Those objects were removed during the
page reload.

However, one drawback of using a page refresh in the test is that it
doesn't guarantee the crash will occur 100% of the time. There is a
slight chance the test will pass by luck. Nevertheless, having a test
that works 90% of the time is better than having no test at all.

Differential Revision: https://phabricator.services.mozilla.com/D211470
2024-05-24 16:40:14 +00:00

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Readme 6.1 GiB
Languages
JavaScript 32.3%
C++ 25.4%
HTML 21.1%
C 10.8%
Python 2.8%
Other 7.1%