зеркало из https://github.com/mozilla/gecko-dev.git
Bug 241987: Export bookmarks doesn't save the bookmarks to a file like bookmarks.html
p=Daniel Lindkvist <gorgias@home.se>, r=vlad, sr=ben
This commit is contained in:
Родитель
a5a6cadc55
Коммит
8a6e703ecf
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче