mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
0cc2fc80c7
This patch is to delay starting `UntrustedModulesProcessor` to avoid processing a massive amount of loaded modules in the browser process during startup. To achive that, this patch introduces "unblock-untrusted-modules-thread" notification. Before the notification, `UntrustedModulesProcessor` is created but marked as not ready. This means the processor does not go beyond `ScheduleNonEmptyQueueProcessing`. Once the notification is observed, we propagate it to all existing child processes, and afterward `UntrustedModulesProcessor` in new processes will be marked ready from the beginning. Differential Revision: https://phabricator.services.mozilla.com/D140123