Bug 1308039 - Add AutoAssertOnBarrier to painting code (r=mrbkap)
authorBill McCloskey <billm@mozilla.com>
Wed, 05 Oct 2016 16:29:13 -0700
changeset 423585 8aa8395f2e34a25270bce6a0a5ac87ca906122ed
parent 423584 37e793632d13208ec59ab418866f24a73f70801f
child 423586 2fc4ea870154988aaabb3df7826e2617b8370062
push id31945
push users.kaspari@gmail.com
push dateTue, 11 Oct 2016 12:27:19 +0000
reviewersmrbkap
bugs1308039
milestone52.0a1
Bug 1308039 - Add AutoAssertOnBarrier to painting code (r=mrbkap)
dom/ipc/ProcessHangMonitor.cpp
--- a/dom/ipc/ProcessHangMonitor.cpp
+++ b/dom/ipc/ProcessHangMonitor.cpp
@@ -303,16 +303,17 @@ HangMonitorChild::InterruptCallback()
 
     mForcePaint = false;
   }
 
   if (forcePaint) {
     RefPtr<TabChild> tabChild = TabChild::FindTabChild(forcePaintTab);
     if (tabChild) {
       JS::AutoAssertOnGC aaogc(mContext);
+      JS::AutoAssertOnBarrier nobarrier(mContext);
       tabChild->ForcePaint(forcePaintEpoch);
     }
   }
 }
 
 void
 HangMonitorChild::Shutdown()
 {