Pale Moon: Use file path for bookmarks import/export.

This commit is contained in:
Ascrod 2019-02-01 21:08:39 -05:00 • committed by Roy Tam
commit 13969c80a3

View file

@ -491,7 +491,7 @@ var PlacesOrganizer = {
Task.spawn(function() { Task.spawn(function() {
try { try {
yield BookmarkJSONUtils.importFromFile(aFile, true); yield BookmarkJSONUtils.importFromFile(aFile.path, true);
} catch(ex) { } catch(ex) {
PlacesOrganizer._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreParseError")); PlacesOrganizer._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreParseError"));
} }
@ -519,7 +519,7 @@ var PlacesOrganizer = {
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
let fpCallback = function fpCallback_done(aResult) { let fpCallback = function fpCallback_done(aResult) {
if (aResult != Ci.nsIFilePicker.returnCancel) { if (aResult != Ci.nsIFilePicker.returnCancel) {
BookmarkJSONUtils.exportToFile(fp.file); BookmarkJSONUtils.exportToFile(fp.file.path);
} }
}; };