icecat: add release icecat-140.8.0-2 for aramo

This commit is contained in:
Ark74 2026-03-11 06:58:43 -06:00
parent d9a6c0aa96
commit d570f39e11
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)) {