Bug 1428297 - (Part 3) Disable the assertion that don't allow to call ShowDropDown() in the content process when content-select is enabled.
To prevent the crash when content-select is enabled, I disable this
assertion that don't allow to call ShowDropDown() in the content
process.
MozReview-Commit-ID: F3BelChp1AK
--- a/layout/forms/nsComboboxControlFrame.cpp
+++ b/layout/forms/nsComboboxControlFrame.cpp
@@ -934,17 +934,20 @@ nsComboboxControlFrame::GetFrameName(nsA
//----------------------------------------------------------------------
// nsIComboboxControlFrame
//----------------------------------------------------------------------
void
nsComboboxControlFrame::ShowDropDown(bool aDoDropDown)
{
- MOZ_ASSERT(!XRE_IsContentProcess());
+ if (!nsLayoutUtils::IsContentSelectEnabled()) {
+ // TODO(kuoe0) remove this assertion after content-select is enabled
+ MOZ_ASSERT(!XRE_IsContentProcess());
+ }
mDelayedShowDropDown = false;
EventStates eventStates = mContent->AsElement()->State();
if (aDoDropDown && eventStates.HasState(NS_EVENT_STATE_DISABLED)) {
return;
}
if (!mDroppedDown && aDoDropDown) {
nsFocusManager* fm = nsFocusManager::GetFocusManager();