From bbd05cb4c8bfca0000efaabf50c4c9f088428ebd Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Tue, 12 Apr 2022 19:22:59 +0800 Subject: [PATCH] Issue #2029 - Part 2: Protocol handling dialog should be `dependent` if not `modal` Following the behavior of the download dialog, the content handling dialog should be `dependent` as well. This means that this dialog should close when the parent window is closed, is not visible on the taskbar, and stays in front of the parent window. --- toolkit/mozapps/handling/nsContentDispatchChooser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/mozapps/handling/nsContentDispatchChooser.js b/toolkit/mozapps/handling/nsContentDispatchChooser.js index 95111afc1b..482385a157 100644 --- a/toolkit/mozapps/handling/nsContentDispatchChooser.js +++ b/toolkit/mozapps/handling/nsContentDispatchChooser.js @@ -66,6 +66,8 @@ nsContentDispatchChooser.prototype = var features = "chrome,dialog=yes,resizable,centerscreen"; if (Services.prefs.getBoolPref("prompts.content_handling_dialog_modal.enabled")) { features += ",modal"; + } else { + features += ",dependent"; } var ww = Cc["@mozilla.org/embedcomp/window-watcher;1"].