Check the BHM option before starting it in multi-process mode.

This commit is contained in:
Quentin Rasmont 2020-04-02 00:11:03 +02:00
parent 516279e24f
commit 8b9390d68c

View file

@ -1016,8 +1016,11 @@ pub fn run_content_process(token: String) {
create_sandbox(); create_sandbox();
} }
let background_hang_monitor_register = let background_hang_monitor_register = if opts::get().background_hang_monitor {
unprivileged_content.register_with_background_hang_monitor(); unprivileged_content.register_with_background_hang_monitor()
} else {
None
};
// send the required channels to the service worker manager // send the required channels to the service worker manager
let sw_senders = unprivileged_content.swmanager_senders(); let sw_senders = unprivileged_content.swmanager_senders();