mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander)
This commit is contained in:
parent
e311ad2454
commit
25b5bed2af
@ -2134,6 +2134,15 @@ MessageChannel::CancelCurrentTransaction()
|
||||
{
|
||||
MonitorAutoLock lock(*mMonitor);
|
||||
if (mCurrentTransaction) {
|
||||
if (DispatchingSyncMessagePriority() == IPC::Message::PRIORITY_URGENT ||
|
||||
DispatchingAsyncMessagePriority() == IPC::Message::PRIORITY_URGENT)
|
||||
{
|
||||
MOZ_CRASH("Intentional crash: we're running a nested event loop "
|
||||
"while processing an urgent message");
|
||||
}
|
||||
|
||||
IPC_LOG("Cancel requested: current xid=%d", mCurrentTransaction);
|
||||
MOZ_ASSERT(DispatchingSyncMessage());
|
||||
CancelMessage *cancel = new CancelMessage();
|
||||
cancel->set_transaction_id(mCurrentTransaction);
|
||||
mLink->SendMessage(cancel);
|
||||
|
Loading…
Reference in New Issue
Block a user