зеркало из https://github.com/mozilla/gecko-dev.git
Bug 558566 - Restoring bookmarks from a backup should case-insensitively check the file extension. r=mak
--HG-- extra : commitid : 1a4l34Z6mMM
This commit is contained in:
Родитель
9ee8a4af74
Коммит
e6d4bd1501
|
@ -507,7 +507,8 @@ var PlacesOrganizer = {
|
|||
*/
|
||||
restoreBookmarksFromFile: function PO_restoreBookmarksFromFile(aFilePath) {
|
||||
// check file extension
|
||||
if (!aFilePath.endsWith("json") && !aFilePath.endsWith("jsonlz4")) {
|
||||
if (!aFilePath.toLowerCase().endsWith("json") &&
|
||||
!aFilePath.toLowerCase().endsWith("jsonlz4")) {
|
||||
this._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreFormatError"));
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче