Bug 196078 - Part 1: Remove duplicate gXMLTypes check from nsContentDLF, r=smaug

This was a typo introduced in bug 1209658. Previously the code would be
checking `gXULTypes`. Support for XUL documents has since been removed from
Gecko, so the code is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D212077
This commit is contained in:
Nika Layzell 2024-06-05 00:05:58 +00:00
parent 9306cb7c3e
commit c613d7241c

View file

@ -101,8 +101,7 @@ nsContentDLF::CreateInstance(const char* aCommand, nsIChannel* aChannel,
IsTypeInList(type, gHTMLTypes)) || IsTypeInList(type, gHTMLTypes)) ||
nsContentUtils::IsPlainTextType(type) || nsContentUtils::IsPlainTextType(type) ||
IsTypeInList(type, gXMLTypes) || IsTypeInList(type, gXMLTypes) ||
IsTypeInList(type, gSVGTypes) || IsTypeInList(type, gSVGTypes);
IsTypeInList(type, gXMLTypes);
if (knownType) { if (knownType) {
viewSourceChannel->SetContentType(type); viewSourceChannel->SetContentType(type);