зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1428297 - (Part 3) Disable the assertion that don't allow to call ShowDropDown() in the content process when content-select is enabled. r=mats
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 --HG-- extra : rebase_source : 2bbec4dceffb7698804609010127b37442a907a7
This commit is contained in:
Родитель
4bd2b6bbf0
Коммит
25856340db
|
@ -943,7 +943,10 @@ nsComboboxControlFrame::GetFrameName(nsAString& aResult) const
|
|||
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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче