icecat: add release icecat-140.8.0-2 for aramo
This commit is contained in:
parent
d9a6c0aa96
commit
d570f39e11
616 changed files with 39955 additions and 33937 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue