Always use correct context when setting CSP headers.
This commit is contained in:
parent
3e53483c88
commit
9c7fd70d57
|
@ -536,7 +536,7 @@ var RequestGuard = (() => {
|
|||
let capabilities;
|
||||
if (ns.isEnforced(tabId)) {
|
||||
let policy = ns.policy;
|
||||
let perms = policy.get(url, documentUrl).perms;
|
||||
let {perms} = policy.get(url, ns.policyContext(request));
|
||||
if (isMainFrame) {
|
||||
if (policy.autoAllowTop && perms === policy.DEFAULT) {
|
||||
policy.set(Sites.optimalKey(url), perms = policy.TRUSTED.tempTwin);
|
||||
|
|
Loading…
Reference in New Issue