Bug 1047340 fix annotation of marks by using the browser url rather than cannonical url, r=jaws

This commit is contained in:
Shane Caraveo 2014-08-19 09:01:52 -07:00
parent ff6386668c
commit de9788461e

View File

@ -192,11 +192,10 @@
// update the annotation based on this event, then update the
// icon as well
this.isMarked = JSON.parse(event.detail).marked;
let uri = Services.io.newURI(this.pageData.url, null, null);
if (this.isMarked) {
Social.markURI(provider.origin, uri);
Social.markURI(provider.origin, gBrowser.currentURI);
} else {
Social.unmarkURI(provider.origin, uri, () => {
Social.unmarkURI(provider.origin, gBrowser.currentURI, () => {
this.update();
});
}