mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
ca91e4cc05
commit
31c098f33b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user