[tor-commits] [tor-browser/tor-browser-60.4.0esr-8.5-1] Bug 1504159 - use TYPE_SAVEAS_DOWNLOAD for data saved through nsIWebBrowserPersist, r=jkt

gk at torproject.org gk at torproject.org
Wed Jan 23 08:04:19 UTC 2019


commit 23d8a9b2966155118ab88ff001771082694fcc40
Author: Gijs Kruitbosch <gijskruitbosch at gmail.com>
Date:   Fri Nov 9 10:53:40 2018 +0000

    Bug 1504159 - use TYPE_SAVEAS_DOWNLOAD for data saved through nsIWebBrowserPersist, r=jkt
    
    Differential Revision: https://phabricator.services.mozilla.com/D11411
    
    --HG--
    extra : moz-landing-system : lando
---
 dom/webbrowserpersist/nsWebBrowserPersist.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom/webbrowserpersist/nsWebBrowserPersist.cpp b/dom/webbrowserpersist/nsWebBrowserPersist.cpp
index 97650a4b42a0..9466a1969855 100644
--- a/dom/webbrowserpersist/nsWebBrowserPersist.cpp
+++ b/dom/webbrowserpersist/nsWebBrowserPersist.cpp
@@ -1393,7 +1393,7 @@ nsresult nsWebBrowserPersist::SaveURIInternal(
                        aURI,
                        aTriggeringPrincipal,
                        nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
-                       nsIContentPolicy::TYPE_OTHER,
+                       nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD,
                        nullptr,  // aPerformanceStorage
                        nullptr,  // aLoadGroup
                        static_cast<nsIInterfaceRequestor*>(this),





More information about the tor-commits mailing list