diff --git a/ipc/glue/MessageChannel.cpp b/ipc/glue/MessageChannel.cpp index 0f89f64a3cf4a..4add93c5f9024 100644 --- a/ipc/glue/MessageChannel.cpp +++ b/ipc/glue/MessageChannel.cpp @@ -776,8 +776,7 @@ MessageChannel::Send(Message* aMsg) } MOZ_RELEASE_ASSERT(!aMsg->is_sync()); - // We never send an async high priority message. - MOZ_RELEASE_ASSERT(aMsg->priority() != IPC::Message::PRIORITY_HIGH); + MOZ_RELEASE_ASSERT(aMsg->nested_level() != IPC::Message::NESTED_INSIDE_SYNC); CxxStackFrame frame(*this, OUT_MESSAGE, aMsg);