Bug 1543711 - Incorrect function call to getDisplayNameForFile should be getFileDisplayName r=frg a=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Thu, 11 Apr 2019 20:55:58 +0200
changeset 32176 de61fdab33dd
parent 32175 8e29ae45df19
child 32177 4c89753d77a6
push id184
push userfrgrahl@gmx.net
push dateThu, 11 Apr 2019 18:56:37 +0000
treeherdercomm-esr60@de61fdab33dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1543711
Bug 1543711 - Incorrect function call to getDisplayNameForFile should be getFileDisplayName r=frg a=frg
suite/components/pref/content/pref-applications.js
--- a/suite/components/pref/content/pref-applications.js
+++ b/suite/components/pref/content/pref-applications.js
@@ -1636,17 +1636,17 @@ var gApplicationsPane = {
 
       // Prompt the user to pick an app.  If they pick one, and it's a valid
       // selection, then add it to the list of possible handlers.
       fp.open(rv => {
         if (rv == nsIFilePicker.returnOK && fp.file &&
             this._isValidHandlerExecutable(fp.file)) {
           handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"]
                          .createInstance(Ci.nsILocalHandlerApp);
-          handlerApp.name = getDisplayNameForFile(fp.file);
+          handlerApp.name = getFileDisplayName(fp.file);
           handlerApp.executable = fp.file;
 
           // Add the app to the type's list of possible handlers.
           let handlerInfo = this._handledTypes[this._list.selectedItem.type];
           handlerInfo.addPossibleApplicationHandler(handlerApp);
         }
         onSelectionDone();
       });