Bug 1439323 - Backed out bug 1429125 (changeset 2e705f777acd) to build Thunderbird 60. a=jorgk DONTBUILD CLOSED TREE THUNDERBIRD_60_VERBRANCH
authorJorg K <jorgk@jorgk.com>
Thu, 26 Apr 2018 22:42:45 +0200
branchTHUNDERBIRD_60_VERBRANCH
changeset 469300 481fea2011e633e214ebba06a62caa8081b1c6b7
parent 469299 3b208a6419c575e583b197eb5c3f2fbb5406c6e4
child 469301 74ec2f52df3c2a2e27cd21b64134f4c597812375
child 470336 88497e338153dbe5aac3d17af326cd79ae840eaa
child 470986 6ca65f4c831f262190d696d8cd8c82c9739636c1
push id9166
push usermozilla@jorgk.com
push dateThu, 26 Apr 2018 21:27:05 +0000
treeherdermozilla-beta@481fea2011e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1439323, 1429125
milestone60.0
Bug 1439323 - Backed out bug 1429125 (changeset 2e705f777acd) to build Thunderbird 60. a=jorgk DONTBUILD CLOSED TREE
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -7237,18 +7237,18 @@ nsCSSFrameConstructor::CheckBitsForLazyF
 // NOTE(emilio): The IsXULElement check is pretty unfortunate, but there's tons
 // of browser chrome code that rely on XBL bindings getting synchronously loaded
 // as soon as the elements get inserted in the DOM.
 bool
 nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
                                             nsIContent* aContainer,
                                             nsIContent* aChild)
 {
-  if (!aContainer || aContainer->IsInNativeAnonymousSubtree() ||
-      aContainer->IsXULElement()) {
+  if (mPresShell->GetPresContext()->IsChrome() || !aContainer ||
+      aContainer->IsInNativeAnonymousSubtree() || aContainer->IsXULElement()) {
     return false;
   }
 
   if (aOperation == CONTENTINSERT) {
     if (aChild->IsRootOfAnonymousSubtree() || aChild->IsXULElement()) {
       return false;
     }
   } else { // CONTENTAPPEND