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 243874 494fc85d8aef50504a0519d473992a70e7d69e4b
parent 243873 08dbb2a63a6bdecdf106b140b111445e62147f9e
child 243875 dcb6eeab33d1103719d144387ca100fb94a0134d
push id28754
push userkwierso@gmail.com
push dateThu, 14 May 2015 22:34:49 +0000
treeherdermozilla-central@9e97d75e5b1b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1164253
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);
   },