Bug 1402687 - Remove unused variable following MOZ_B2G cleanup r?froydnj draft
authorRob Wu <rob@robwu.nl>
Sun, 24 Sep 2017 13:27:38 +0200
changeset 669555 790b4294747d4edda85e270e1021eec863f4de48
parent 669553 ff40c5dcaa41261b39a4e9795e02a9d51dd30ced
child 732981 d75dc65d3da5834b9947d0cd6864015473c84b1a
push id81357
push userbmo:rob@robwu.nl
push dateSun, 24 Sep 2017 11:31:03 +0000
reviewersfroydnj
bugs1402687
milestone58.0a1
Bug 1402687 - Remove unused variable following MOZ_B2G cleanup r?froydnj MozReview-Commit-ID: Gtw8FyxbGNH
uriloader/base/nsURILoader.cpp
--- a/uriloader/base/nsURILoader.cpp
+++ b/uriloader/base/nsURILoader.cpp
@@ -397,20 +397,17 @@ nsresult nsDocumentOpenInfo::DispatchCon
   // Check whether the data should be forced to be handled externally.  This
   // could happen because the Content-Disposition header is set so, or, in the
   // future, because the user has specified external handling for the MIME
   // type.
   bool forceExternalHandling = false;
   uint32_t disposition;
   rv = aChannel->GetContentDisposition(&disposition);
 
-  bool allowContentDispositionToForceExternalHandling = true;
-
-  if (NS_SUCCEEDED(rv) && (disposition == nsIChannel::DISPOSITION_ATTACHMENT) &&
-      allowContentDispositionToForceExternalHandling) {
+  if (NS_SUCCEEDED(rv) && disposition == nsIChannel::DISPOSITION_ATTACHMENT) {
     forceExternalHandling = true;
   }
 
   LOG(("  forceExternalHandling: %s", forceExternalHandling ? "yes" : "no"));
 
   if (!forceExternalHandling)
   {
     //