зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 5297eafc36e2 (bug 962911) for making B2G reftests much more failure-prone.
CLOSED TREE
This commit is contained in:
Родитель
0ac657796f
Коммит
154c073fb8
|
@ -14,7 +14,7 @@
|
|||
// When processing the next thread event, the appshell may process native
|
||||
// events (if not in performance mode), which can result in suppressing the
|
||||
// next thread event for at most this many ticks:
|
||||
#define THREAD_EVENT_STARVATION_LIMIT PR_MillisecondsToInterval(10)
|
||||
#define THREAD_EVENT_STARVATION_LIMIT PR_MillisecondsToInterval(20)
|
||||
|
||||
NS_IMPL_ISUPPORTS3(nsBaseAppShell, nsIAppShell, nsIThreadObserver, nsIObserver)
|
||||
|
||||
|
@ -246,9 +246,8 @@ nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal *thr, bool mayWait,
|
|||
// Reset prior to invoking DoProcessNextNativeEvent which might cause
|
||||
// NativeEventCallback to process gecko events.
|
||||
mProcessedGeckoEvents = false;
|
||||
PRIntervalTime start = PR_IntervalNow();
|
||||
while (DoProcessNextNativeEvent(false, recursionDepth) &&
|
||||
(PR_IntervalNow() - start) < THREAD_EVENT_STARVATION_LIMIT);
|
||||
|
||||
DoProcessNextNativeEvent(false, recursionDepth);
|
||||
|
||||
while (!NS_HasPendingEvents(thr) && !mProcessedGeckoEvents) {
|
||||
// If we have been asked to exit from Run, then we should not wait for
|
||||
|
|
Загрузка…
Ссылка в новой задаче