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 --- layout/tools/layout-debug/ui/content/layoutdebug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layout/tools/layout-debug/ui/content') diff --git a/layout/tools/layout-debug/ui/content/layoutdebug.js b/layout/tools/layout-debug/ui/content/layoutdebug.js index 0c68f0155c..b381822c3c 100644 --- a/layout/tools/layout-debug/ui/content/layoutdebug.js +++ b/layout/tools/layout-debug/ui/content/layoutdebug.js @@ -443,7 +443,7 @@ function toggle(menuitem) { function openFile() { var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); - fp.init(window, "Select a File", Ci.nsIFilePicker.modeOpen); + fp.init(window.browsingContext, "Select a File", Ci.nsIFilePicker.modeOpen); fp.appendFilters(Ci.nsIFilePicker.filterHTML | Ci.nsIFilePicker.filterAll); fp.open(rv => { if ( -- cgit v1.2.3