diff options
Diffstat (limited to 'devtools/client/performance-new/shared/browser.js')
-rw-r--r-- | devtools/client/performance-new/shared/browser.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/client/performance-new/shared/browser.js b/devtools/client/performance-new/shared/browser.js index c97bb0a0ab..34f641cc1b 100644 --- a/devtools/client/performance-new/shared/browser.js +++ b/devtools/client/performance-new/shared/browser.js @@ -153,7 +153,11 @@ function openFilePickerForObjdir(window, objdirs, changeObjdirs) { const FilePicker = Cc["@mozilla.org/filepicker;1"].createInstance( Ci.nsIFilePicker ); - FilePicker.init(window, "Pick build directory", FilePicker.modeGetFolder); + FilePicker.init( + window.browsingContext, + "Pick build directory", + FilePicker.modeGetFolder + ); FilePicker.open(rv => { if (rv == FilePicker.returnOK) { const path = FilePicker.file.path; |