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-05-31 17:30:23 +00:00
parent 2ae6781b16
commit 205b94f6af

View File

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