bug 1340579 - add another diagnostic assert r=davidb
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Tue, 21 Feb 2017 14:42:53 -0500
changeset 373223 18bc0b31d8c810180d445200a65c2ce18ad8c348
parent 373222 c1544abd34c28bc2ec4abe1b970a85ca4d163f43
child 373224 afe3edac6acd6ee4c3832226c839ae9f4b3bcce7
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavidb
bugs1340579
milestone54.0a1
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);
     }
   }