Backed out changeset 7755e3c5ce0a (bug 1351148)

This commit is contained in:
Stone Shih 2017-08-11 15:18:50 +08:00
Родитель 6f61a3006c
Коммит e34132948b
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -950,7 +950,17 @@ nsThread::nsChainedEventQueue::PutEvent(already_AddRefed<nsIRunnable> aEvent,
}
break;
case nsIRunnablePriority::PRIORITY_HIGH:
mHighQueue->PutEvent(event.forget(), aProofOfLock);
if (mIsInputPrioritizationEnabled) {
mHighQueue->PutEvent(event.forget(), aProofOfLock);
} else {
// During startup, ContentParent sends SetXPCOMProcessAttributes to
// initialize ContentChild and enable input event prioritization. After
// that, ContentParent sends PBrowserConstructor to create PBrowserChild.
// To prevent PBrowserConstructor preempt SetXPCOMProcessAttributes and
// cause problems, we have to put high priority events in mNormalQueue to
// keep the correct order of initialization.
mNormalQueue->PutEvent(event.forget(), aProofOfLock);
}
break;
default:
MOZ_ASSERT(false);