Backed out changeset 25c65ac95fc5 (bug 1331854) for test_blob_worker_xhr_read.html | Test timed outs
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 20 Jan 2017 09:27:39 +0100
changeset 377565 8c38fdf34cef2b7a822770965f67c887e8398146
parent 377564 9396973616a5456da5544bbbcf4c3df66142ebb4
child 377566 19507933747f4c345866d53e57dc8ff63f353e11
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1331854
milestone53.0a1
backs out25c65ac95fc5191ded02ade757f0a3da819266b0
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 25c65ac95fc5 (bug 1331854) for test_blob_worker_xhr_read.html | Test timed outs
dom/file/ipc/Blob.cpp
--- a/dom/file/ipc/Blob.cpp
+++ b/dom/file/ipc/Blob.cpp
@@ -1010,30 +1010,22 @@ void
 RemoteInputStream::ReallyBlockAndWaitForStream()
 {
   MOZ_ASSERT(!IsOnOwningThread());
 
   DebugOnly<bool> waited;
 
   {
     MonitorAutoLock lock(mMonitor);
+
     waited = !mStream;
-  }
-
-  nsIThread* currentThread = NS_GetCurrentThread();
-  MOZ_ASSERT(currentThread);
-
-  while (true) {
-    {
-      MonitorAutoLock lock(mMonitor);
-      if (mStream) {
-        break;
-      }
+
+    while (!mStream) {
+      mMonitor.Wait();
     }
-    MOZ_ALWAYS_TRUE(NS_ProcessNextEvent(currentThread));
   }
 
   MOZ_ASSERT(mStream);
 
 #ifdef DEBUG
   if (waited && mWeakSeekableStream) {
     int64_t position;
     if (NS_SUCCEEDED(mWeakSeekableStream->Tell(&position))) {