From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- security/manager/pki/resources/content/load_device.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'security/manager/pki/resources/content/load_device.js') diff --git a/security/manager/pki/resources/content/load_device.js b/security/manager/pki/resources/content/load_device.js index 0f77e1f1bd..ac122851e0 100644 --- a/security/manager/pki/resources/content/load_device.js +++ b/security/manager/pki/resources/content/load_device.js @@ -16,7 +16,11 @@ async function onBrowseBtnPress() { let [loadPK11ModuleFilePickerTitle] = await document.l10n.formatValues([ { id: "load-pk11-module-file-picker-title" }, ]); - fp.init(window, loadPK11ModuleFilePickerTitle, Ci.nsIFilePicker.modeOpen); + fp.init( + window.browsingContext, + loadPK11ModuleFilePickerTitle, + Ci.nsIFilePicker.modeOpen + ); fp.appendFilters(Ci.nsIFilePicker.filterAll); fp.open(rv => { if (rv == Ci.nsIFilePicker.returnOK) { -- cgit v1.2.3