Bug 1558394 - Pass the TriggeringSandboxFlags to nsILoadinfo r=ckerschb,smaug,necko-reviewers,valentin
Add triggering Sandbox flags to loadinfo *** Pass triggering Flags into Loadinfo *** Fix triggeringSandboxflags passing Differential Revision: https://phabricator.services.mozilla.com/D69588
This commit is contained in:
@@ -102,6 +102,10 @@ class nsDocShellLoadState final {
|
||||
|
||||
void SetTriggeringPrincipal(nsIPrincipal* aTriggeringPrincipal);
|
||||
|
||||
uint32_t TriggeringSandboxFlags() const;
|
||||
|
||||
void SetTriggeringSandboxFlags(uint32_t aTriggeringSandboxFlags);
|
||||
|
||||
nsIContentSecurityPolicy* Csp() const;
|
||||
|
||||
void SetCsp(nsIContentSecurityPolicy* aCsp);
|
||||
@@ -307,6 +311,11 @@ class nsDocShellLoadState final {
|
||||
// SystemPrincipal as the triggeringPrincipal.
|
||||
nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
|
||||
|
||||
// The SandboxFlags of the load, that are, the SandboxFlags of the entity
|
||||
// responsible for causing the load to occur. Most likely this are the
|
||||
// SandboxFlags of the document that started the load.
|
||||
uint32_t mTriggeringSandboxFlags;
|
||||
|
||||
// The CSP of the load, that is, the CSP of the entity responsible for causing
|
||||
// the load to occur. Most likely this is the CSP of the document that started
|
||||
// the load. In case the entity starting the load did not use a CSP, then mCsp
|
||||
|
||||
Reference in New Issue
Block a user