зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1160131 - editBookmarkOverlay.js throws an error when adding a tag to a bookmark. r=ttaubert
This commit is contained in:
Родитель
a8dd3d18b0
Коммит
c09150dc35
|
@ -468,10 +468,14 @@ let gEditItemOverlay = {
|
|||
if (!anyChanges)
|
||||
return false;
|
||||
|
||||
// The panel could have been closed in the meanwhile.
|
||||
if (!this._paneInfo)
|
||||
return false;
|
||||
|
||||
// Ensure the tagsField is in sync, clean it up from empty tags
|
||||
currentTags = this._paneInfo.bulkTagging ?
|
||||
this._getCommonTags() :
|
||||
PlacesUtils.tagging.getTagsForURI(this._uri);
|
||||
PlacesUtils.tagging.getTagsForURI(this._paneInfo.uri);
|
||||
this._initTextField(this._tagsField, currentTags.join(", "), false);
|
||||
return true;
|
||||
}),
|
||||
|
|
Загрузка…
Ссылка в новой задаче