Bug 1166365 - Pass window object in notification. r=Gijs draft
authorEitan Isaacson <eitan@monotonous.org>
Tue, 16 Feb 2016 06:39:58 -0800
changeset 331583 08a4c76dab46ec178465b84cae4035a69d1c94fe
parent 331582 7e6b1570ce52a1f8d2476246139526f7a8ee37a8
child 331584 e57893da8ab7cbcf552b506f3423562b0bbbcaf6
push id11019
push userbmo:eitan@monotonous.org
push dateWed, 17 Feb 2016 17:54: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() {