diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-22 21:59:46 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-22 21:59:46 +0200 |
commit | 5b0f4649b3fee771379af60ec04d43b8a525cf80 (patch) | |
tree | f4e2982b0d8f0484e2f261aebf0cccfc7b5ce9f5 /docshell/base/nsILinkHandler.h | |
parent | 2e33335820b2816bee111e78588ac82e401c86ae (diff) | |
download | UXP-5b0f4649b3fee771379af60ec04d43b8a525cf80.tar UXP-5b0f4649b3fee771379af60ec04d43b8a525cf80.tar.gz UXP-5b0f4649b3fee771379af60ec04d43b8a525cf80.tar.lz UXP-5b0f4649b3fee771379af60ec04d43b8a525cf80.tar.xz UXP-5b0f4649b3fee771379af60ec04d43b8a525cf80.zip |
Bug 1182569 - Skip security check for plugins using newstream attribute
native in moebius
Diffstat (limited to 'docshell/base/nsILinkHandler.h')
-rw-r--r-- | docshell/base/nsILinkHandler.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docshell/base/nsILinkHandler.h b/docshell/base/nsILinkHandler.h index 7cdcd566d..7069f1f1d 100644 --- a/docshell/base/nsILinkHandler.h +++ b/docshell/base/nsILinkHandler.h @@ -37,6 +37,8 @@ public: * @param aFileName non-null when the link should be downloaded as the given file * @param aHeadersDataStream ??? * @param aIsTrusted false if the triggerer is an untrusted DOM event. + * @param aTriggeringPrincipal, if not passed explicitly we fall back to + * the document's principal. */ NS_IMETHOD OnLinkClick(nsIContent* aContent, nsIURI* aURI, @@ -44,7 +46,8 @@ public: const nsAString& aFileName, nsIInputStream* aPostDataStream, nsIInputStream* aHeadersDataStream, - bool aIsTrusted) = 0; + bool aIsTrusted, + nsIPrincipal* aTriggeringPrincipal) = 0; /** * Process a click on a link. @@ -61,6 +64,8 @@ public: * @param aHeadersDataStream ??? * @param aDocShell (out-param) the DocShell that the request was opened on * @param aRequest the request that was opened + * @param aTriggeringPrincipal, if not passed explicitly we fall back to + * the document's principal. */ NS_IMETHOD OnLinkClickSync(nsIContent* aContent, nsIURI* aURI, @@ -69,7 +74,8 @@ public: nsIInputStream* aPostDataStream = 0, nsIInputStream* aHeadersDataStream = 0, nsIDocShell** aDocShell = 0, - nsIRequest** aRequest = 0) = 0; + nsIRequest** aRequest = 0, + nsIPrincipal* aTriggeringPrincipal = nullptr) = 0; /** * Process a mouse-over a link. |