diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-21 20:56:16 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-21 20:56:16 +0200 |
commit | 3f8a6e25520c76304db649c971fe8284bc9c9ab7 (patch) | |
tree | 8fc4a0b9cac50602b7159eef7e0bf05bd6190a05 /netwerk/base/nsILoadInfo.idl | |
parent | 2546ae588f7131bf2879af4ed6094a96025f1a27 (diff) | |
download | UXP-3f8a6e25520c76304db649c971fe8284bc9c9ab7.tar UXP-3f8a6e25520c76304db649c971fe8284bc9c9ab7.tar.gz UXP-3f8a6e25520c76304db649c971fe8284bc9c9ab7.tar.lz UXP-3f8a6e25520c76304db649c971fe8284bc9c9ab7.tar.xz UXP-3f8a6e25520c76304db649c971fe8284bc9c9ab7.zip |
CSP: Support for "LoadInfo::GetLoadingContext" and "LoadInfo::GetLoadingContextXPCOM()"
https://bugzilla.mozilla.org/show_bug.cgi?id=1439713 (partially)
Diffstat (limited to 'netwerk/base/nsILoadInfo.idl')
-rw-r--r-- | netwerk/base/nsILoadInfo.idl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/netwerk/base/nsILoadInfo.idl b/netwerk/base/nsILoadInfo.idl index 9a883ff98..bc609c317 100644 --- a/netwerk/base/nsILoadInfo.idl +++ b/netwerk/base/nsILoadInfo.idl @@ -10,7 +10,7 @@ interface nsIDOMDocument; interface nsINode; interface nsIPrincipal; - +native LoadContextRef(already_AddRefed<nsISupports>); %{C++ #include "nsTArray.h" #include "mozilla/BasePrincipal.h" @@ -334,6 +334,21 @@ interface nsILoadInfo : nsISupports nsISupports binaryContextForTopLevelLoad(); /** + * For all loads except loads of TYPE_DOCUMENT, the loadingContext + * simply returns the loadingNode. For loads of TYPE_DOCUMENT this + * will return the context available for top-level loads which + * do not have a loadingNode. + */ + [binaryname(LoadingContextXPCOM)] + readonly attribute nsISupports loadingContext; + + /** + * A C++ friendly version of the loadingContext. + */ + [noscript, notxpcom, nostdcall, binaryname(GetLoadingContext)] + LoadContextRef binaryGetLoadingContext(); + + /** * The securityFlags of that channel. */ readonly attribute nsSecurityFlags securityFlags; |