Backed out changeset 9846de3bd954 (bug 1372405)

This commit is contained in:
Carsten "Tomcat" Book
2017-06-20 08:27:02 +02:00
parent 0640fe35ce
commit bbe9441993
613 changed files with 3568 additions and 6338 deletions

View File

@@ -571,10 +571,8 @@ ScriptPreloader::WriteCache()
MonitorAutoUnlock mau(mSaveMonitor);
NS_DispatchToMainThread(
NewRunnableMethod("ScriptPreloader::PrepareCacheWrite",
this,
&ScriptPreloader::PrepareCacheWrite),
NS_DISPATCH_SYNC);
NewRunnableMethod(this, &ScriptPreloader::PrepareCacheWrite),
NS_DISPATCH_SYNC);
}
if (mSaveComplete) {
@@ -804,9 +802,7 @@ ScriptPreloader::OffThreadDecodeCallback(void* token, void* context)
if (cache->mToken && !cache->mFinishDecodeRunnablePending) {
cache->mFinishDecodeRunnablePending = true;
NS_DispatchToMainThread(
NewRunnableMethod("ScriptPreloader::DoFinishOffThreadDecode",
cache,
&ScriptPreloader::DoFinishOffThreadDecode));
NewRunnableMethod(cache, &ScriptPreloader::DoFinishOffThreadDecode));
}
}