Bug 1519461 - Unify the hasLayers getter to use the same frameLoader check as renderLayers and docShellIsActive;r=mconley
authorBrian Grinstead <bgrinstead@mozilla.com>
Mon, 14 Jan 2019 20:36:23 +0000
changeset 510913 e00e03df2c6b67ddb2be816cca1be77d5b3ef25d
parent 510912 c036c740fbbc3e0fb8a4270ef029aaa160d30c9a
child 510914 848d8e9a1f031827544f0c14c7c018fdcde6c774
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1519461
milestone66.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 1519461 - Unify the hasLayers getter to use the same frameLoader check as renderLayers and docShellIsActive;r=mconley Differential Revision: https://phabricator.services.mozilla.com/D16369
toolkit/content/widgets/browser-custom-element.js
--- a/toolkit/content/widgets/browser-custom-element.js
+++ b/toolkit/content/widgets/browser-custom-element.js
@@ -419,17 +419,17 @@ class MozBrowser extends MozElementMixin
       return false;
     }
     return this.docShellIsActive;
   }
 
   get hasLayers() {
     if (this.isRemoteBrowser) {
       let { frameLoader } = this;
-      if (frameLoader.tabParent) {
+      if (frameLoader && frameLoader.tabParent) {
         return frameLoader.tabParent.hasLayers;
       }
       return false;
     }
 
     return this.docShellIsActive;
   }