Bug 1166365 - Pass window object in notification. r?Gijs draft
authorEitan Isaacson <eitan@monotonous.org>
Tue, 16 Feb 2016 06:39:58 -0800
changeset 331382 9c3e2ee7adb7fa32dc593b4a3bc7268b40ed7456
parent 331381 77cea0601c758d009c31fcb6134c0faeab973a1f
child 331383 fd876dd83195e5aa7566022ce396c7d922aaa402
push id10973
push userbmo:eitan@monotonous.org
push dateWed, 17 Feb 2016 00:07:47 +0000
reviewersGijs
bugs1166365
milestone47.0a1
Bug 1166365 - Pass window object in notification. r?Gijs MozReview-Commit-ID: GNo1fAQFif8
toolkit/components/reader/AboutReader.jsm
--- a/toolkit/components/reader/AboutReader.jsm
+++ b/toolkit/components/reader/AboutReader.jsm
@@ -821,17 +821,17 @@ AboutReader.prototype = {
     this._contentElement.style.display = "block";
     this._updateImageMargins();
     this._requestReadingListStatus();
 
     this._showListIntro();
     this._requestFavicon();
     this._doc.body.classList.add("loaded");
 
-    Services.obs.notifyObservers(null, "AboutReader:Ready", "");
+    Services.obs.notifyObservers(this._win, "AboutReader:Ready", "");
   },
 
   _hideContent: function() {
     this._headerElement.style.display = "none";
     this._contentElement.style.display = "none";
   },
 
   _showProgressDelayed: function() {