Skip to content

Commit

Permalink
Bug 241987: Export bookmarks doesn't save the bookmarks to a file lik…
Browse files Browse the repository at this point in the history
…e bookmarks.html

p=Daniel Lindkvist <gorgias@home.se>, r=vlad, sr=ben
  • Loading branch information
p_ch%verizon.net committed Sep 6, 2004
1 parent a5a6cad commit 8a6e703
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser/components/bookmarks/content/bookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,14 @@ var BookmarksCommand = {
if (!fileName) return;
}
else return;

var aFile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
if (!aFile)
return;
aFile.initWithPath(fileName);
if (!aFile.exists()) {
aFile.create(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0644);
}
}
catch (e) {
return;
Expand Down
8 changes: 8 additions & 0 deletions xpfe/components/bookmarks/resources/bookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,14 @@ var BookmarksCommand = {
if (!fileName) return;
}
else return;

var aFile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
if (!aFile)
return;
aFile.initWithPath(fileName);
if (!aFile.exists()) {
aFile.create(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0644);
}
}
catch (e) {
return;
Expand Down

0 comments on commit 8a6e703

Please sign in to comment.