bug 1340579 - add another diagnostic assert r=davidb
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Tue, 21 Feb 2017 14:42:53 -0500
changeset 344196 18bc0b31d8c810180d445200a65c2ce18ad8c348
parent 344195 c1544abd34c28bc2ec4abe1b970a85ca4d163f43
child 344197 afe3edac6acd6ee4c3832226c839ae9f4b3bcce7
push id31402
push usercbook@mozilla.com
push dateWed, 22 Feb 2017 13:33:50 +0000
treeherdermozilla-central@f5372cb6c3c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidb
bugs1340579
milestone54.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 1340579 - add another diagnostic assert r=davidb
accessible/ipc/DocAccessibleParent.cpp
--- a/accessible/ipc/DocAccessibleParent.cpp
+++ b/accessible/ipc/DocAccessibleParent.cpp
@@ -444,16 +444,17 @@ DocAccessibleParent::AddChildDoc(DocAcce
   }
 
   return IPC_OK();
 }
 
 mozilla::ipc::IPCResult
 DocAccessibleParent::RecvShutdown()
 {
+  MOZ_DIAGNOSTIC_ASSERT(LiveDocs().Contains(IProtocol::Id()));
   Destroy();
 
   auto mgr = static_cast<dom::TabParent*>(Manager());
   if (!mgr->IsDestroyed()) {
     if (!PDocAccessibleParent::Send__delete__(this)) {
       return IPC_FAIL_NO_REASON(mgr);
     }
   }