mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 16:51:46 +00:00

When the launcher process is enabled, we run `RestoreImportDirectory` twice as below. This patch removes the 1st one. 1st call: xul!mozilla::SandboxBroker::LaunchApp --> xul!mozilla::RestoreImportDirectory 2nd call: xul!mozilla::SandboxBroker::LaunchApp --> firefox!mozilla::InitializeDllBlocklistOOP --> firefox!mozilla::InitializeDllBlocklistOOPInternal --> firefox!mozilla::RestoreImportDirectory To handle the case where the launcher process is disabled, we need to call `RestoreImportDirectory` from `InitializeDllBlocklistOOP` if the browser process is not bootstrapped. Differential Revision: https://phabricator.services.mozilla.com/D62853 --HG-- extra : moz-landing-system : lando