Skip to content

Commit

Permalink
Bug 1288915 P1 Make nsExternalAppHandler respect existing channel App…
Browse files Browse the repository at this point in the history
…lyConversion flag. r=jdm
  • Loading branch information
wanderview committed Jul 28, 2016
1 parent cac3cad commit 9d6dca3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uriloader/exthandler/nsExternalHelperAppService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,13 @@ nsExternalAppHandler::MaybeApplyDecodingForExtension(nsIRequest *aRequest)
// Turn off content encoding conversions if needed
bool applyConversion = true;

// First, check to see if conversion is already disabled. If so, we
// have nothing to do here.
encChannel->GetApplyConversion(&applyConversion);
if (!applyConversion) {
return;
}

nsCOMPtr<nsIURL> sourceURL(do_QueryInterface(mSourceUrl));
if (sourceURL)
{
Expand Down

0 comments on commit 9d6dca3

Please sign in to comment.