Bug 1575191- Make callers to Document::SetContentType with ASCII literal using SetContentTypeInternal.. r=hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D129697
This commit is contained in:
olaoluwa
2021-11-04 06:47:05 +00:00
parent eadfe376b2
commit 613274e835
7 changed files with 27 additions and 28 deletions

View File

@@ -180,7 +180,7 @@ void nsHTMLDocument::ResetToURI(nsIURI* aURI, nsILoadGroup* aLoadGroup,
// Make the content type default to "text/html", we are a HTML
// document, after all. Once we start getting data, this may be
// changed.
SetContentTypeInternal(nsDependentCString("text/html"));
SetContentType(nsDependentCString("text/html"));
}
void nsHTMLDocument::TryReloadCharset(nsIContentViewer* aCv,