Bug 1185531 - Wrong NS_WARN_IF use in MessagePort.cpp, r=smaug

This commit is contained in:
Andrea Marchesini 2015-07-21 08:18:25 +01:00
parent f7531b86f7
commit 282ecec440

View File

@ -668,7 +668,7 @@ MessagePort::MessagesReceived(nsTArray<MessagePortMessage>& aMessages)
RemoveDocFromBFCache();
FallibleTArray<nsRefPtr<SharedMessagePortMessage>> data;
if (!NS_WARN_IF(SharedMessagePortMessage::FromMessagesToSharedChild(aMessages,
if (NS_WARN_IF(!SharedMessagePortMessage::FromMessagesToSharedChild(aMessages,
data))) {
// OOM, We cannot continue.
return;