Bug 1141756 - Part 2: Correct removal of Printing:Preview:Entered message listener. r=mconley
authorBob Owen <bobowencode@gmail.com>
Wed, 01 Mar 2017 12:12:02 +0000
changeset 359636 c92f80e12f0c6fb8837b6707e75edf4731457b02
parent 359635 d2a1690e80fa92039f0da32fd3d19ce1be6918d0
child 359637 e9f2075a8de61086e6ba7207fdaf1f81b578f4ff
push id10854
push userryanvm@gmail.com
push dateSat, 04 Mar 2017 00:19:51 +0000
treeherdermozilla-aurora@e11b1a808700 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1141756
milestone53.0a2
Bug 1141756 - Part 2: Correct removal of Printing:Preview:Entered message listener. r=mconley
toolkit/components/printing/content/printUtils.js
--- a/toolkit/components/printing/content/printUtils.js
+++ b/toolkit/components/printing/content/printUtils.js
@@ -553,17 +553,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;
       }