From 36ddeff63c9af9bbcddf049c40afaa86c00c444a Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Mon, 14 Mar 2022 21:23:32 +0800 Subject: [PATCH] Issue #2029 - Part 1: Add preference for opening the protocol handling dialog as window modal This adds the preference, `prompts.content_handling_dialog_modal.enabled`, to control whether the dialog is window modal or not. --- modules/libpref/init/all.js | 3 +++ .../mozapps/handling/nsContentDispatchChooser.js | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f9f1e80540..e8419d664b 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -5227,6 +5227,9 @@ pref("dom.storageManager.enabled", false); // See application preferences for appropriate defaults. pref("prompts.authentication_dialog_abuse_limit", 0); +// Whether content handling dialog is window modal +pref("prompts.content_handling_dialog_modal.enabled", false); + // Whether module scripts (