Bug 485265 - "JSON backup should force .json extension". r=mak77
authorPrakhar Gupta <prakharguptaiitd>
Thu, 30 Jun 2016 13:21:00 +0200
changeset 303533 bb2fbb0f9984d4fa0ebf020ef00086384a1865bf
parent 303532 76746a3c04de178f267af8a716f8ae419f09ac91
child 303534 5259741a70311478dd4b799d05bd7668313370c6
push id30393
push userphilringnalda@gmail.com
push dateMon, 04 Jul 2016 21:48:04 +0000
treeherdermozilla-central@0842107a80e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak77
bugs485265
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 485265 - "JSON backup should force .json extension". r=mak77
browser/components/places/content/places.js
--- a/browser/components/places/content/places.js
+++ b/browser/components/places/content/places.js
@@ -554,16 +554,17 @@ var PlacesOrganizer = {
       }
     };
 
     fp.init(window, PlacesUIUtils.getString("bookmarksBackupTitle"),
             Ci.nsIFilePicker.modeSave);
     fp.appendFilter(PlacesUIUtils.getString("bookmarksRestoreFilterName"),
                     RESTORE_FILEPICKER_FILTER_EXT);
     fp.defaultString = PlacesBackups.getFilenameForDate();
+    fp.defaultExtension = "json";
     fp.displayDirectory = backupsDir;
     fp.open(fpCallback);
   },
 
   _detectAndSetDetailsPaneMinimalState:
   function PO__detectAndSetDetailsPaneMinimalState(aNode) {
     /**
      * The details of simple folder-items (as opposed to livemarks) or the