diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-06-18 13:22:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 13:22:25 +0200 |
commit | 34302180b38e903c7c071b501cbc8be89efd56ec (patch) | |
tree | a64bc80cbee13acad97321f90a75c7bcd8bb7a62 /dom/fetch | |
parent | 4ee1656d4a0721d31039508e0d0abc79e3f38c8d (diff) | |
parent | 22f7e8f8a74ee5ff83a0b76c789d011bd54244b9 (diff) | |
download | UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.gz UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.lz UXP-34302180b38e903c7c071b501cbc8be89efd56ec.tar.xz UXP-34302180b38e903c7c071b501cbc8be89efd56ec.zip |
Merge pull request #509 from janekptacijarabaci/context-menu_save-link-as_principal_1
Added "nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD": The context menu - "Save Link As" feature should use the loading principal instead of the system principal
Diffstat (limited to 'dom/fetch')
-rw-r--r-- | dom/fetch/InternalRequest.cpp | 3 | ||||
-rw-r--r-- | dom/fetch/InternalRequest.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/dom/fetch/InternalRequest.cpp b/dom/fetch/InternalRequest.cpp index 85feabde3..b2631da6a 100644 --- a/dom/fetch/InternalRequest.cpp +++ b/dom/fetch/InternalRequest.cpp @@ -320,6 +320,9 @@ InternalRequest::MapContentPolicyTypeToRequestContext(nsContentPolicyType aConte case nsIContentPolicy::TYPE_WEB_MANIFEST: context = RequestContext::Manifest; break; + case nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD: + context = RequestContext::Internal; + break; default: MOZ_ASSERT(false, "Unhandled nsContentPolicyType value"); break; diff --git a/dom/fetch/InternalRequest.h b/dom/fetch/InternalRequest.h index 84ee0bf69..966490675 100644 --- a/dom/fetch/InternalRequest.h +++ b/dom/fetch/InternalRequest.h @@ -53,7 +53,7 @@ namespace dom { * image | TYPE_INTERNAL_IMAGE, TYPE_INTERNAL_IMAGE_PRELOAD, TYPE_INTERNAL_IMAGE_FAVICON * imageset | TYPE_IMAGESET * import | Not supported by Gecko - * internal | TYPE_DOCUMENT, TYPE_XBL, TYPE_OTHER + * internal | TYPE_DOCUMENT, TYPE_XBL, TYPE_OTHER, TYPE_SAVEAS_DOWNLOAD * location | * manifest | TYPE_WEB_MANIFEST * object | TYPE_INTERNAL_OBJECT |