зеркало из https://github.com/mozilla/pjs.git
Bug 387833 - Cannot add keyword bookmark (because (get|set)PageAnnotationString is noscript now), r=mano
This commit is contained in:
Родитель
8eb492710d
Коммит
cfbafe6467
|
@ -1307,7 +1307,7 @@ var PlacesUtils = {
|
|||
setPostDataForURI: function PU_setPostDataForURI(aURI, aPostData) {
|
||||
const annos = this.annotations;
|
||||
if (aPostData)
|
||||
annos.setPageAnnotationString(aURI, POST_DATA_ANNO, aPostData, 0, 0);
|
||||
annos.setPageAnnotation(aURI, POST_DATA_ANNO, aPostData, 0, 0);
|
||||
else if (annos.pageHasAnnotation(aURI, POST_DATA_ANNO))
|
||||
annos.removePageAnnotation(aURI, POST_DATA_ANNO);
|
||||
},
|
||||
|
@ -1320,7 +1320,7 @@ var PlacesUtils = {
|
|||
getPostDataForURI: function PU_getPostDataForURI(aURI) {
|
||||
const annos = this.annotations;
|
||||
if (annos.pageHasAnnotation(aURI, POST_DATA_ANNO))
|
||||
return annos.getPageAnnotationString(aURI, POST_DATA_ANNO);
|
||||
return annos.getPageAnnotation(aURI, POST_DATA_ANNO);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче