From 205b94f6afd10d496aab6c28a15017ce6e0c47a4 Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Fri, 31 May 2024 17:30:23 +0000 Subject: [PATCH] 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 --- layout/build/nsContentDLF.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/build/nsContentDLF.cpp b/layout/build/nsContentDLF.cpp index 04750d7b9862..ba39665761e4 100644 --- a/layout/build/nsContentDLF.cpp +++ b/layout/build/nsContentDLF.cpp @@ -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);