Bug 1297300 - Add missing checks to GetSpec() calls in parser/. r=hsivonen.

This commit is contained in:
Nicholas Nethercote
2016-08-31 12:13:59 +10:00
parent 392da94467
commit 0b805da907
5 changed files with 16 additions and 8 deletions

View File

@@ -899,7 +899,8 @@ bool
nsHtml5TreeOpExecutor::ShouldPreloadURI(nsIURI *aURI)
{
nsAutoCString spec;
aURI->GetSpec(spec);
nsresult rv = aURI->GetSpec(spec);
NS_ENSURE_SUCCESS(rv, false);
if (mPreloadedURLs.Contains(spec)) {
return false;
}