diff options
Diffstat (limited to 'layout/tools/layout-debug/ui/content')
-rw-r--r-- | layout/tools/layout-debug/ui/content/layoutdebug.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ( |