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

MozReview-Commit-ID: 1Z89LSr46dN
This commit is contained in:
Henri Sivonen
2017-06-27 10:38:30 -07:00
parent 15be754192
commit c3862d6f4b
8 changed files with 384 additions and 518 deletions

View File

@@ -614,9 +614,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");
}
}