Bug 1163576 - Pages that were only added to Pocket by one user failed to get removed. r=jaws a=dolske
authorNate Weiner <nate@readitlater.com>
Mon, 11 May 2015 15:50:42 -0400
changeset 260485 f7f9fc975cdc
parent 260484 921eb304600e
child 260486 01c7b55e4a28
push id799
push userjdolske@mozilla.com
push date2015-05-14 03:46 +0000
treeherdermozilla-release@11c4678a21bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, dolske
bugs1163576
milestone38.0.1
Bug 1163576 - Pages that were only added to Pocket by one user failed to get removed. r=jaws a=dolske
browser/components/pocket/panels/js/saved.js
--- a/browser/components/pocket/panels/js/saved.js
+++ b/browser/components/pocket/panels/js/saved.js
@@ -54,17 +54,17 @@ var PKT_SAVED_OVERLAY = function (option
         {
             myself.suggestedTagsLoaded = true;
             myself.startCloseTimer();
             return;
         }
 
         thePKT_SAVED.sendMessage("getSuggestedTags",
         {
-            url: myself.savedUrl || window.location.toString()
+            url: myself.savedUrl
         }, function(resp) 
         {
             $('.pkt_ext_suggestedtag_detail').removeClass('pkt_ext_suggestedtag_detail_loading');
             if (resp.status == 'success') 
             {
                 var newtags = [];
                 for (var i = 0; i < resp.value.suggestedTags.length; i++)
                 {
@@ -309,17 +309,17 @@ var PKT_SAVED_OVERLAY = function (option
                 if (text.length)
                 {
                     originaltags.push(text);
                 }
             });
 
             thePKT_SAVED.sendMessage("addTags",
             {
-                url: myself.savedUrl || window.location.toString(),
+                url: myself.savedUrl,
                 tags: originaltags   
             }, function(resp)
             {
                 if (resp.status == 'success') 
                 {
                     myself.showStateFinalMsg(myself.dictJSON.tagssaved);
                 }
                 else if (resp.status == 'error') 
@@ -406,17 +406,17 @@ var PKT_SAVED_OVERLAY = function (option
         });
     };
     this.showStateSaved = function(initobj) {
         this.wrapper.find('.pkt_ext_detail h2').text(this.dictJSON.pagesaved);
         this.wrapper.find('.pkt_ext_btn').addClass('pkt_ext_btn_disabled');
         if (typeof initobj.item == 'object')
         {
             this.savedItemId = initobj.item.item_id;
-            this.savedUrl = initobj.item.resolved_url;
+            this.savedUrl = initobj.item.given_url;
         }
         $('.pkt_ext_containersaved').addClass('pkt_ext_container_detailactive').removeClass('pkt_ext_container_finalstate');
 
         myself.fillUserTags();
         if (myself.suggestedTagsLoaded) {
             myself.startCloseTimer();
         }
         else {