Bug 685581 - Do not treat the empty string as a speculatively preloadable URL. r=bzbarsky.

This commit is contained in:
Henri Sivonen 2011-09-19 17:37:04 +03:00
parent 4787d54f01
commit db11f1f87f

View File

@ -861,6 +861,9 @@ nsHtml5TreeOpExecutor::InitializeDocWriteParserState(nsAHtml5TreeBuilderState* a
already_AddRefed<nsIURI>
nsHtml5TreeOpExecutor::ConvertIfNotPreloadedYet(const nsAString& aURL)
{
if (aURL.IsEmpty()) {
return nsnull;
}
// The URL of the document without <base>
nsIURI* documentURI = mDocument->GetDocumentURI();
// The URL of the document with non-speculative <base>