Bug 1141756 - Part 2: Correct removal of Printing:Preview:Entered message listener. r=mconley, a=jcristau
authorBob Owen <bobowencode@gmail.com>
Wed, 01 Mar 2017 12:12:02 +0000
changeset 355438 420396d5e26de377c222ce81c7b0b152335ba8fa
parent 355437 f7c262517722225f5a32979e8939606aa95d8681
child 355439 ed9521749d6f9f5945fac2383292c453e30f7285
push id6975
push userryanvm@gmail.com
push dateFri, 24 Mar 2017 21:24:58 +0000
treeherdermozilla-esr52@62df7046e959 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, jcristau
bugs1141756
milestone52.0.2
Bug 1141756 - Part 2: Correct removal of Printing:Preview:Entered message listener. r=mconley, a=jcristau
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -548,17 +548,17 @@ var PrintUtils = {
     }
 
     if (this._webProgressPP.value) {
       mm.addMessageListener("Printing:Preview:StateChange", this);
       mm.addMessageListener("Printing:Preview:ProgressChange", this);
     }
 
     let onEntered = (message) => {
-      mm.removeMessageListener("Printing:PrintPreview:Entered", onEntered);
+      mm.removeMessageListener("Printing:Preview:Entered", onEntered);
 
       if (message.data.failed) {
         // Something went wrong while putting the document into print preview
         // mode. Bail out.
         this._listener.onEnter();
         this._listener.onExit();
         return;
       }