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 345230 467c4bdf5110eb6ace092a4163a5eb4a68e0812d
parent 345229 fb5e539b6624112a60be8ac65058d2a2116e2c04
child 345231 f6479c35a73ca37abded7fe570dccc67d3e38fac
push id87543
push userbobowencode@gmail.com
push dateWed, 01 Mar 2017 12:12:23 +0000
treeherdermozilla-inbound@467c4bdf5110 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1141756
milestone54.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 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
@@ -556,17 +556,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;
       }