diff --git a/xpfe/components/prefwindow/resources/content/pref-applications-new.js b/xpfe/components/prefwindow/resources/content/pref-applications-new.js index 7bec0bc406f..7c6dd6ba97e 100644 --- a/xpfe/components/prefwindow/resources/content/pref-applications-new.js +++ b/xpfe/components/prefwindow/resources/content/pref-applications-new.js @@ -23,9 +23,8 @@ function Startup() function chooseApp() { - var filePicker = Components.classes["component://mozilla/filepicker"].createInstance(); - if (filePicker) - filePicker = filePicker.QueryInterface(Components.interfaces.nsIFilePicker); + const nsIFilePicker = Components.interfaces.nsIFilePicker; + var filePicker = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); if (filePicker) { const FP = Components.interfaces.nsIFilePicker var windowTitle = gBundle.GetStringFromName("chooseHandler");