Bug 1164253 - Save request is sent twice for every button press. r=jaws
authorJustin Dolske <dolske@mozilla.com>
Wed, 13 May 2015 16:18:46 -0700
changeset 243745 494fc85d8aef50504a0519d473992a70e7d69e4b
parent 243744 08dbb2a63a6bdecdf106b140b111445e62147f9e
child 243746 dcb6eeab33d1103719d144387ca100fb94a0134d
push id12932
push userjdolske@mozilla.com
push dateWed, 13 May 2015 23:19:14 +0000
treeherderfx-team@02ce92d55ac0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1164253
milestone41.0a1
Bug 1164253 - Save request is sent twice for every button press. r=jaws
browser/components/pocket/Pocket.jsm
--- a/browser/components/pocket/Pocket.jsm
+++ b/browser/components/pocket/Pocket.jsm
@@ -45,17 +45,17 @@ let Pocket = {
     }, 0);
   },
 
   onFrameLoaded(event) {
     let document = event.currentTarget.ownerDocument;
     let window = document.defaultView;
     let iframe = document.getElementById('pocket-panel-iframe');
 
-    iframe.removeEventListener("load", Pocket.onPanelLoaded, true);
+    iframe.removeEventListener("load", Pocket.onFrameLoaded, true);
     window.pktUI.pocketPanelDidShow();
   },
 
   onPanelViewHiding(event) {
     let window = event.target.ownerDocument.defaultView;
     window.pktUI.pocketPanelDidHide(event);
   },