Bug 1800381 - Consider to use higher priority tasks for parser's load flusher, r=hsivonen

Depends on D161955

Differential Revision: https://phabricator.services.mozilla.com/D161960
This commit is contained in:
Olli Pettay
2022-11-16 09:23:28 +00:00
parent 1b9b031994
commit 93347899b6

View File

@@ -1778,7 +1778,8 @@ void nsHtml5StreamParser::PostLoadFlusher() {
// that need flushing may have been flushed earlier even if the
// flush right above here did nothing. (Is this still true?)
nsCOMPtr<nsIRunnable> runnable(mLoadFlusher);
if (NS_FAILED(DispatchToMain(runnable.forget()))) {
if (NS_FAILED(
DispatchToMain(CreateRenderBlockingRunnable(runnable.forget())))) {
NS_WARNING("failed to dispatch load flush event");
}