diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 4423a19cc8b..b73766cbbd8 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -5946,7 +5946,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState, newFrame = NS_NewMenuBarFrame(mPresShell, aStyleContext); } - else if (aTag == nsGkAtoms::popupgroup) { + else if (aTag == nsGkAtoms::popupgroup && aContent->IsNativeAnonymous()) { // This frame contains child popups newFrame = NS_NewPopupSetFrame(mPresShell, aStyleContext); } @@ -6208,7 +6208,7 @@ nsCSSFrameConstructor::ConstructXULFrame(nsFrameConstructorState& aState, } #ifdef MOZ_XUL - if (aTag == nsGkAtoms::popupgroup) { + if (aTag == nsGkAtoms::popupgroup && aContent->IsNativeAnonymous()) { nsIRootBox* rootBox = nsIRootBox::GetRootBox(mPresShell); if (rootBox) { NS_ASSERTION(rootBox->GetPopupSetFrame() == newFrame,