Bug 1390263 - Follow up for Bug 1357742. r?xidorn draft
authorWei-Cheng Pan <wpan@mozilla.com>
Thu, 17 Aug 2017 17:40:21 +0800
changeset 648153 f4e9b330b533e7e64916e1a9343bad8a6a9fae60
parent 648046 932388b8c22c9775264e543697ce918415db9e23
child 726727 8102d97c52cb1d4ef6d1b656669d697f4642b765
push id74647
push userbmo:wpan@mozilla.com
push dateThu, 17 Aug 2017 09:45:04 +0000
reviewersxidorn
bugs1390263, 1357742
milestone57.0a1
Bug 1390263 - Follow up for Bug 1357742. r?xidorn MozReview-Commit-ID: CMQkpkmL9Cb
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -9725,16 +9725,17 @@ PresShell::Observe(nsISupports* aSubject
     if (!AssumeAllFramesVisible() && mPresContext->IsRootContentDocument()) {
       DoUpdateApproximateFrameVisibility(/* aRemoveOnly = */ true);
     }
     return NS_OK;
   }
 
   if (!nsCRT::strcmp(aTopic, NS_WIDGET_WAKE_OBSERVER_TOPIC)) {
     mLastOSWake = TimeStamp::Now();
+    return NS_OK;
   }
 
   NS_WARNING("unrecognized topic in PresShell::Observe");
   return NS_ERROR_FAILURE;
 }
 
 bool
 nsIPresShell::AddRefreshObserverInternal(nsARefreshObserver* aObserver,