Bug 1535291: Actually use aContentPolicyType argument within nsWebBrowserPersist::SaveURIInternal r=Gijs
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Thu, 14 Mar 2019 18:42:47 +0000
changeset 521924 8d51957df27ad95b830b8bb93c32ebc2727be918
parent 521923 32112b7c202edccb5ec54ab18971e0a46af3ee58
child 521925 29b316b9a0359f085ddd11330820b91733c1392f
push id10870
push usernbeleuzu@mozilla.com
push dateFri, 15 Mar 2019 20:00:07 +0000
treeherdermozilla-beta@c594aee5b7a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1535291
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1535291: Actually use aContentPolicyType argument within nsWebBrowserPersist::SaveURIInternal r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D23484
dom/webbrowserpersist/nsWebBrowserPersist.cpp
--- a/dom/webbrowserpersist/nsWebBrowserPersist.cpp
+++ b/dom/webbrowserpersist/nsWebBrowserPersist.cpp
@@ -1239,17 +1239,17 @@ nsresult nsWebBrowserPersist::SaveURIInt
   // based on the current state of the prefs/permissions.
   nsCOMPtr<nsICookieSettings> cookieSettings =
       mozilla::net::CookieSettings::Create();
 
   // Open a channel to the URI
   nsCOMPtr<nsIChannel> inputChannel;
   rv = NS_NewChannel(getter_AddRefs(inputChannel), aURI, aTriggeringPrincipal,
                      nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
-                     nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD, cookieSettings,
+                     aContentPolicyType, cookieSettings,
                      nullptr,  // aPerformanceStorage
                      nullptr,  // aLoadGroup
                      static_cast<nsIInterfaceRequestor *>(this), loadFlags);
 
   nsCOMPtr<nsIPrivateBrowsingChannel> pbChannel =
       do_QueryInterface(inputChannel);
   if (pbChannel) {
     pbChannel->SetPrivate(aIsPrivate);