bug 1172538 - make sure a document has an IPC actor before shutting it down r=davidb, lsocks

If a document is shutdown before ever being bound to a parent document it
doesn't have an associated IPC actor, so we shouldn't try and shut one down.
This commit is contained in:
Trevor Saunders 2015-06-08 11:38:40 -04:00
parent 2f9806beef
commit 1d487a4fcd

View File

@ -455,7 +455,8 @@ DocAccessible::Shutdown()
mChildDocuments.Clear();
// XXX thinking about ordering?
if (IPCAccessibilityActive()) {
if (mIPCDoc) {
MOZ_ASSERT(IPCAccessibilityActive());
mIPCDoc->Shutdown();
MOZ_ASSERT(!mIPCDoc);
}