Bug 1571530 - Don't uselessly check for OOM in Loader::PostLoadEvent. r=heycam

MANUAL PUSH: This part of the stack is independent and has been reviewed sooner, so can land now.

Differential Revision: https://phabricator.services.mozilla.com/D40849
This commit is contained in:
Emilio Cobos Álvarez 2019-08-06 17:07:13 +02:00
parent ca91e4cc05
commit 31c098f33b

View File

@ -2227,9 +2227,7 @@ nsresult Loader::PostLoadEvent(nsIURI* aURI, StyleSheet* aSheet,
aURI, aSheet, false, aElement, aWasAlternate, aMediaMatched, aObserver,
nullptr, aReferrerInfo, mDocument);
if (!mPostedEvents.AppendElement(evt)) {
return NS_ERROR_OUT_OF_MEMORY;
}
mPostedEvents.AppendElement(evt);
nsresult rv;
RefPtr<SheetLoadData> runnable(evt);