mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1047340 fix annotation of marks by using the browser url rather than cannonical url, r=jaws
This commit is contained in:
parent
ff6386668c
commit
de9788461e
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user