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/base/nsIContentPolicyBase.idl | |
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/base/nsIContentPolicyBase.idl')
-rw-r--r-- | dom/base/nsIContentPolicyBase.idl | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/dom/base/nsIContentPolicyBase.idl b/dom/base/nsIContentPolicyBase.idl index 884e3d96d..908e562a8 100644 --- a/dom/base/nsIContentPolicyBase.idl +++ b/dom/base/nsIContentPolicyBase.idl @@ -24,7 +24,7 @@ typedef unsigned long nsContentPolicyType; * by launching a dialog to prompt the user for something). */ -[scriptable,uuid(17418187-d86f-48dd-92d1-238838df0a4e)] +[scriptable,uuid(d6ab1d11-8e24-4db4-8582-c40a78281737)] interface nsIContentPolicyBase : nsISupports { /** @@ -329,11 +329,17 @@ interface nsIContentPolicyBase : nsISupports */ const nsContentPolicyType TYPE_INTERNAL_IMAGE_FAVICON = 41; + /** + * Indicates an save-as link download from the front-end code. + */ + const nsContentPolicyType TYPE_SAVEAS_DOWNLOAD = 42; + /* When adding new content types, please update nsContentBlocker, - * NS_CP_ContentTypeName, nsCSPContext, all nsIContentPolicy - * implementations, the static_assert in dom/cache/DBSchema.cpp, - * and other things that are not listed here that are related to - * nsIContentPolicy. */ + * NS_CP_ContentTypeName, nsCSPContext, CSP_ContentTypeToDirective, + * DoContentSecurityChecks, all nsIContentPolicy implementations, the + * static_assert in dom/cache/DBSchema.cpp, nsPermissionManager.cpp, + * and other things that are not listed here that are related + * to nsIContentPolicy. */ ////////////////////////////////////////////////////////////////////// |