Bug 1391850 - Allow IdleDispatch from any thread (r=smaug)

MozReview-Commit-ID: FWb48VV0do8
This commit is contained in:
Bill McCloskey 2017-08-10 16:29:20 -07:00
Родитель c0ec174576
Коммит 8d0e884b2f
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -821,12 +821,6 @@ nsThread::HasPendingEvents(bool* aResult)
NS_IMETHODIMP
nsThread::IdleDispatch(already_AddRefed<nsIRunnable> aEvent)
{
// Currently the only supported idle dispatch is from the same
// thread. To support idle dispatch from another thread we need to
// support waking threads that are waiting for an event queue that
// isn't mIdleEvents.
MOZ_ASSERT(PR_GetCurrentThread() == mThread);
nsCOMPtr<nsIRunnable> event = aEvent;
if (NS_WARN_IF(!event)) {