From 19527731b37fbbce671e3dd4589f3a33974e8332 Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Mon, 14 Dec 2009 15:51:15 +0200 Subject: [PATCH] Bug 534546 - Script with defer attribute never runs in the HTML5 parser. Part of the patch for bug 515610 (r=bnewman) but not landed due to a bad merge. --HG-- extra : rebase_source : 9a6d14b2147370d16bd27b206e12b05037279d83 --- parser/html/nsHtml5TreeOperation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp index 5352f913ee0..3e95aad15a3 100644 --- a/parser/html/nsHtml5TreeOperation.cpp +++ b/parser/html/nsHtml5TreeOperation.cpp @@ -508,6 +508,11 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder, *aScriptElement = node; return rv; } + case eTreeOpRunScriptAsyncDefer: { + nsIContent* node = *(mOne.node); + aBuilder->RunScript(node); + return rv; + } case eTreeOpDoneAddingChildren: { nsIContent* node = *(mOne.node); node->DoneAddingChildren(aBuilder->HaveNotified(node));