Bug 1190093 - Stop throttling frame requests for loading pages by checking Hidden(), not isShowing. r=tnikkel, a=sylvestre
authorRoss Lovas <rosslovas@gmail.com>
Fri, 08 Jan 2016 15:20:34 -0600
changeset 310864 e559a00838e457037d771c88c20ed1eb46e754a3
parent 310863 8687e5dc1369056d1beec7ace9e78332a5f3a238
child 310865 a0ac106e1252f23b553e2eec72b4eca662c43abf
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstnikkel, sylvestre
bugs1190093
milestone45.0a2
Bug 1190093 - Stop throttling frame requests for loading pages by checking Hidden(), not isShowing. r=tnikkel, a=sylvestre
dom/base/nsDocument.cpp
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -3713,18 +3713,18 @@ nsIDocument::TakeFrameRequestCallbacks(F
 bool
 nsIDocument::ShouldThrottleFrameRequests()
 {
   if (mStaticCloneCount > 0) {
     // Even if we're not visible, a static clone may be, so run at full speed.
     return false;
   }
 
-  if (!mIsShowing) {
-    // We're not showing (probably in a background tab or the bf cache).
+  if (Hidden()) {
+    // We're not visible (probably in a background tab or the bf cache).
     return true;
   }
 
   if (!mPresShell) {
     return false;  // Can't do anything smarter.
   }
 
   nsIFrame* frame = mPresShell->GetRootFrame();