зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1676345 - Fix clang-format issue CLOSED TREE
This commit is contained in:
Родитель
225a24f0bc
Коммит
636095bb54
|
@ -247,13 +247,12 @@ static bool GetFilenameAndExtensionFromChannel(nsIChannel* aChannel,
|
||||||
// We can get an extension if the filename is from a header, or if getting
|
// We can get an extension if the filename is from a header, or if getting
|
||||||
// it from the URL was allowed.
|
// it from the URL was allowed.
|
||||||
bool canGetExtensionFromFilename =
|
bool canGetExtensionFromFilename =
|
||||||
!gotFileNameFromURI ||
|
!gotFileNameFromURI || aAllowURLExtension;
|
||||||
aAllowURLExtension;
|
|
||||||
// ... , or if the mimetype is meaningless and we have nothing to go on:
|
// ... , or if the mimetype is meaningless and we have nothing to go on:
|
||||||
if (!canGetExtensionFromFilename) {
|
if (!canGetExtensionFromFilename) {
|
||||||
nsAutoCString contentType;
|
nsAutoCString contentType;
|
||||||
if (NS_SUCCEEDED(aChannel->GetContentType(contentType))) {
|
if (NS_SUCCEEDED(aChannel->GetContentType(contentType))) {
|
||||||
canGetExtensionFromFilename =
|
canGetExtensionFromFilename =
|
||||||
contentType.EqualsIgnoreCase(APPLICATION_OCTET_STREAM) ||
|
contentType.EqualsIgnoreCase(APPLICATION_OCTET_STREAM) ||
|
||||||
contentType.EqualsIgnoreCase("binary/octet-stream") ||
|
contentType.EqualsIgnoreCase("binary/octet-stream") ||
|
||||||
contentType.EqualsIgnoreCase("application/x-msdownload");
|
contentType.EqualsIgnoreCase("application/x-msdownload");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче