Bug 1289650 - Ensure the APZEventState object is destroyed on the main thread. r=kats
authorRyan Hunt <rhunt@mozilla.com>
Wed, 24 Aug 2016 14:37:27 -0700
changeset 354698 600e4f0568c49c7bedde455e7171892f01fd88b0
parent 354697 b0d9956e125145216bf1c88890280f9730393b5f
child 354699 4a0dd5baf1a2a769617671d8995c045a917a900e
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1289650
milestone51.0a1
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
Bug 1289650 - Ensure the APZEventState object is destroyed on the main thread. r=kats MozReview-Commit-ID: Aeq5CA22VLr
gfx/layers/apz/util/ChromeProcessController.cpp
--- a/gfx/layers/apz/util/ChromeProcessController.cpp
+++ b/gfx/layers/apz/util/ChromeProcessController.cpp
@@ -83,16 +83,17 @@ ChromeProcessController::Destroy()
 {
   if (MessageLoop::current() != mUILoop) {
     mUILoop->PostTask(NewRunnableMethod(this, &ChromeProcessController::Destroy));
     return;
   }
 
   MOZ_ASSERT(MessageLoop::current() == mUILoop);
   mWidget = nullptr;
+  mAPZEventState = nullptr;
 }
 
 nsIPresShell*
 ChromeProcessController::GetPresShell() const
 {
   if (!mWidget) {
     return nullptr;
   }