icecat: add release icecat-140.8.0-2gnu1 for ecne

This commit is contained in:
Ark74 2026-03-11 04:51:36 -06:00
parent 450538011a
commit 8eb1f1732f
616 changed files with 39955 additions and 33937 deletions

View file

@ -17,6 +17,7 @@
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIInputStream.h"
#include "nsIJARChannel.h"
#include "nsIStreamConverterService.h"
#include "nsIWeakReferenceUtils.h"
#include "nsIHttpChannel.h"
@ -692,6 +693,15 @@ nsresult nsDocumentOpenInfo::TryStreamConversion(nsIChannel* aChannel) {
srcContentType.AssignLiteral(UNKNOWN_CONTENT_TYPE);
}
// If this is an unknown content type loaded from a JAR file
// don't attempt to sniff it.
if (srcContentType.EqualsLiteral(UNKNOWN_CONTENT_TYPE)) {
if (nsCOMPtr<nsIJARChannel> jar = do_QueryInterface(aChannel)) {
m_targetStreamListener = nullptr;
return NS_ERROR_NOT_AVAILABLE;
}
}
nsresult rv =
ConvertData(aChannel, m_contentListener, srcContentType, anyType);
if (NS_FAILED(rv)) {