mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
4737104967
We use the process handle returned from `CreateProcess` to derive another handle with more permissions, but the original handle is never closed. This bug appears to be fairly old: it existed before this code was converted to use MozPromise. Currently we provide the original handle to external consumers of the launch promise; this patch resolves the promise with the privileged handle instead and closes the original one. (One consumer uses the handle only to obtain the pid, and the rest don't use it at all, so this shouldn't change anything.) As a related cleanup, `ProcessLaunchPromise` is now exclusive (because it's resolved with resources which are consumed) and no longer declared in the header file (because it's used only internally). Differential Revision: https://phabricator.services.mozilla.com/D119820 |
||
---|---|---|
.. | ||
app | ||
chromium | ||
contentproc | ||
glue | ||
gtest | ||
ipdl | ||
mscom | ||
testshell | ||
moz.build | ||
pull-chromium.py |