Bug 387833 - Cannot add keyword bookmark (because (get|set)PageAnnotationString is noscript now), r=mano

This commit is contained in:
philringnalda@gmail.com 2007-07-11 23:05:15 -07:00
Родитель 2c73b2927f
Коммит 683e899f90
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1307,7 +1307,7 @@ var PlacesUtils = {
setPostDataForURI: function PU_setPostDataForURI(aURI, aPostData) { setPostDataForURI: function PU_setPostDataForURI(aURI, aPostData) {
const annos = this.annotations; const annos = this.annotations;
if (aPostData) 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)) else if (annos.pageHasAnnotation(aURI, POST_DATA_ANNO))
annos.removePageAnnotation(aURI, POST_DATA_ANNO); annos.removePageAnnotation(aURI, POST_DATA_ANNO);
}, },
@ -1320,7 +1320,7 @@ var PlacesUtils = {
getPostDataForURI: function PU_getPostDataForURI(aURI) { getPostDataForURI: function PU_getPostDataForURI(aURI) {
const annos = this.annotations; const annos = this.annotations;
if (annos.pageHasAnnotation(aURI, POST_DATA_ANNO)) if (annos.pageHasAnnotation(aURI, POST_DATA_ANNO))
return annos.getPageAnnotationString(aURI, POST_DATA_ANNO); return annos.getPageAnnotation(aURI, POST_DATA_ANNO);
return null; return null;
} }