From c02e30880d4e68717d45bc63fb9ad897df4be4cc Mon Sep 17 00:00:00 2001 From: Jared Wein Date: Wed, 29 Apr 2020 20:28:11 +0000 Subject: [PATCH] Bug 1632854 - Pass the ChromeWindow reference to the OSKeyStore instead of the content global so the dialog will be app modal. r=MattN Differential Revision: https://phabricator.services.mozilla.com/D73109 --- browser/components/preferences/privacy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js index 2418c6a6e065..6c82ed38b50a 100644 --- a/browser/components/preferences/privacy.js +++ b/browser/components/preferences/privacy.js @@ -1948,10 +1948,11 @@ var gPrivacyPane = { id: "master-password-os-auth-dialog-caption", }, ]); + let win = Services.wm.getMostRecentBrowserWindow(); let loggedIn = await OSKeyStore.ensureLoggedIn( messageText.value, captionText.value, - window, + win, false ); if (!loggedIn.authenticated) {