Bug 1333333 - Label runnables in the HTML parser. r=billm

MozReview-Commit-ID: 6ItIgFSSR2s
This commit is contained in:
Henri Sivonen
2017-05-15 15:54:54 +03:00
parent f6a1edfcd5
commit 50f9822551
8 changed files with 377 additions and 523 deletions

View File

@@ -615,9 +615,8 @@ void
nsHtml5TreeOperation::SvgLoad(nsIContent* aNode)
{
nsCOMPtr<nsIRunnable> event = new nsHtml5SVGLoadDispatcher(aNode);
if (NS_FAILED(aNode->OwnerDoc()->Dispatch("nsHtml5SVGLoadDispatcher",
TaskCategory::Other,
event.forget()))) {
if (NS_FAILED(aNode->OwnerDoc()->Dispatch(
"nsHtml5SVGLoadDispatcher", TaskCategory::Network, event.forget()))) {
NS_WARNING("failed to dispatch svg load dispatcher");
}
}