Bug 1141093: Ensure that FinishInjectorInitTask::PostToMainThread is no longer executing before leaving FinishInjectorInitTask::Run; r=dmajor

This commit is contained in:
Aaron Klotz
2015-03-09 19:23:34 -06:00
parent ce1d72423b
commit b388d57e78

View File

@@ -155,6 +155,10 @@ public:
void Run() MOZ_OVERRIDE
{
mParent->DoInjection(mSnapshot);
// We don't need to hold this lock during DoInjection, but we do need
// to obtain it before returning from Run() to ensure that
// PostToMainThread has completed before we return.
mozilla::MutexAutoLock lock(mMutex);
}
void Cancel() MOZ_OVERRIDE