Bug 1209464 - Fix missing neutered window region in MessageChannel::WaitForInterruptNotify. Regression from bug 1189709; r=jimm, a=sylvestre
authorAaron Klotz <aklotz@mozilla.com>
Sun, 04 Oct 2015 22:17:20 -0600
changeset 296325 3a692b89bd0961b5d9558d1fd0ca6c27e1ab189d
parent 296324 6d2260ddac363ce1a319c470f6f428356dfb5bbf
child 296326 21ba3bb55cb04f7b0feed36e5e4d90972ffd707b
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm, sylvestre
bugs1209464, 1189709
milestone43.0a2
Bug 1209464 - Fix missing neutered window region in MessageChannel::WaitForInterruptNotify. Regression from bug 1189709; r=jimm, a=sylvestre
ipc/glue/WindowsMessageLoop.cpp
--- a/ipc/glue/WindowsMessageLoop.cpp
+++ b/ipc/glue/WindowsMessageLoop.cpp
@@ -1127,16 +1127,18 @@ MessageChannel::WaitForInterruptNotify()
     }
 
     if (mTimeoutMs != kNoTimeout && !timerId) {
       InitTimeoutData(&timeoutData, mTimeoutMs);
       timerId = SetTimer(nullptr, 0, mTimeoutMs, nullptr);
       NS_ASSERTION(timerId, "SetTimer failed!");
     }
 
+    NeuteredWindowRegion neuteredRgn(true);
+
     MSG msg = { 0 };
 
     // Don't get wrapped up in here if the child connection dies.
     {
       MonitorAutoLock lock(*mMonitor);
       if (!Connected()) {
         break;
       }