Eden Chuang 375183e50e Bug 1930893 - Ensure PRemoteWorkerNonLifeCycleOpController IPC channel be closed after Worker starting shutdown. r=dom-worker-reviewers,asuth
When a Worker starts shutdown, RemoteWorkerNonLifeCycleOpControllerChild will call SendTerminated() to the parent side to nullify the RemoteWorkerController::mNonLifeCycleOpController to forbidden message sending from RemoteWorkerController.

However, SendTermainted() does not close the IPC channel, this causes the channel still can send/receive messages from IPC internal mechanism.

This patch force to close the IPC channel when Shutdown/Terminated send.

Differential Revision: https://phabricator.services.mozilla.com/D229459
2024-11-20 17:24:51 +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 GiB
Languages
JavaScript 32.3%
C++ 25.4%
HTML 21%
C 10.8%
Python 2.8%
Other 7.2%