Backed out changeset bb19a439bfbd (bug 1318506)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 01 Dec 2016 13:35:11 +0100
changeset 325003 d48bc2da8280c50096c8dbc587ed1e2113c4f908
parent 325002 ba552ddb7a28f1f770d7360d53717b292a6d6b23
child 325004 ca73f213f05a4ae120619fbee6fe6cd11d577638
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
bugs1318506
milestone53.0a1
backs outbb19a439bfbda749e043add759db08e54d939c2e
Backed out changeset bb19a439bfbd (bug 1318506)
dom/base/nsScriptLoader.cpp
--- a/dom/base/nsScriptLoader.cpp
+++ b/dom/base/nsScriptLoader.cpp
@@ -2217,23 +2217,18 @@ void
 nsScriptLoader::ProcessPendingRequestsAsync()
 {
   if (mParserBlockingRequest ||
       !mXSLTRequests.isEmpty() ||
       !mLoadedAsyncRequests.isEmpty() ||
       !mNonAsyncExternalScriptInsertedRequests.isEmpty() ||
       !mDeferRequests.isEmpty() ||
       !mPendingChildLoaders.IsEmpty()) {
-    nsCOMPtr<nsIRunnable> task = NewRunnableMethod(this,
-                                                   &nsScriptLoader::ProcessPendingRequests);
-    if (mDocument) {
-      mDocument->Dispatch("ScriptLoader", TaskCategory::Other, task.forget());
-    } else {
-      NS_DispatchToCurrentThread(task.forget());
-    }
+    NS_DispatchToCurrentThread(NewRunnableMethod(this,
+                                                 &nsScriptLoader::ProcessPendingRequests));
   }
 }
 
 void
 nsScriptLoader::ProcessPendingRequests()
 {
   RefPtr<nsScriptLoadRequest> request;