diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-17 09:35:48 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-17 09:35:48 +0200 |
commit | 07ee0792c9664d649fae8ae530b27462ee45f530 (patch) | |
tree | 47536f5fe5f03b41e1868df5e360dfabfef28751 /dom/security/nsContentSecurityManager.cpp | |
parent | 1f6068bc695b8bee56f0a99e4343ff138b1ee188 (diff) | |
download | UXP-07ee0792c9664d649fae8ae530b27462ee45f530.tar UXP-07ee0792c9664d649fae8ae530b27462ee45f530.tar.gz UXP-07ee0792c9664d649fae8ae530b27462ee45f530.tar.lz UXP-07ee0792c9664d649fae8ae530b27462ee45f530.tar.xz UXP-07ee0792c9664d649fae8ae530b27462ee45f530.zip |
Bug 1398229 - Save-link-as feature should use the loading principal - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD
Diffstat (limited to 'dom/security/nsContentSecurityManager.cpp')
-rw-r--r-- | dom/security/nsContentSecurityManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/security/nsContentSecurityManager.cpp b/dom/security/nsContentSecurityManager.cpp index f329aa723..4ee9b4877 100644 --- a/dom/security/nsContentSecurityManager.cpp +++ b/dom/security/nsContentSecurityManager.cpp @@ -471,6 +471,12 @@ DoContentSecurityChecks(nsIChannel* aChannel, nsILoadInfo* aLoadInfo) break; } + case nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD: { + mimeTypeGuess = EmptyCString(); + requestingContext = aLoadInfo->LoadingNode(); + break; + } + default: // nsIContentPolicy::TYPE_INVALID MOZ_ASSERT(false, "can not perform security check without a valid contentType"); |