Bug 1164253 - Save request is sent twice for every button press. r=jaws a=dolske
authorJustin Dolske <dolske@mozilla.com>
Wed, 13 May 2015 20:45:00 -0700
changeset 265982 c2f420841c186b26eecc4a31a9d9ea94efc03ca6
parent 265981 b2d357bd9c8b260e21da197fb06534826f04e6bc
child 265983 f0d036466718b378eec72d5cdfbe59bccc2969c8
push id4726
push userjdolske@mozilla.com
push dateThu, 14 May 2015 03:46:06 +0000
treeherdermozilla-beta@0954ecdb1dd9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, dolske
bugs1164253
milestone39.0
Bug 1164253 - Save request is sent twice for every button press. r=jaws a=dolske
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);
   },