Bug 541079 - Make app cache selection happen before speculative loads in the HTML5 parser. r=bnewman.

This commit is contained in:
Henri Sivonen
2010-02-02 09:43:18 +02:00
parent 443fe4004d
commit c31d88132a
11 changed files with 119 additions and 67 deletions

View File

@@ -119,6 +119,9 @@ nsHtml5TreeOperation::~nsHtml5TreeOperation()
case eTreeOpNeedsCharsetSwitchTo:
delete[] mOne.charPtr;
break;
case eTreeOpProcessOfflineManifest:
nsMemory::Free(mOne.unicharPtr);
break;
default: // keep the compiler happy
break;
}
@@ -554,8 +557,9 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
return rv;
}
case eTreeOpProcessOfflineManifest: {
nsIContent* node = *(mOne.node);
aBuilder->ProcessOfflineManifest(node);
PRUnichar* str = mOne.unicharPtr;
nsDependentString dependentString(str);
aBuilder->ProcessOfflineManifest(dependentString);
return rv;
}
case eTreeOpMarkMalformedIfScript: {