mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 685581 - Do not treat the empty string as a speculatively preloadable URL. r=bzbarsky.
This commit is contained in:
parent
4787d54f01
commit
db11f1f87f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user