Closed Bug 2076776 Opened 15 days ago Closed 1 day ago

iframe auto inherits the permissions policy from the HTTP header

Categories

(Core :: DOM: Security, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 2081658

People

(Reporter: ahedri, Assigned: ahedri)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Attachments

(1 obsolete file)

Summary

iframe shouldn't auto inherit from the HTTP header, but currently it does!
if an HTTP headers allows https://a.test.local to use fullscreen, but a child iframe with src="https://a.test.local" doesn't contain an allow="fullscreen" in the attributes, the iframe shouldn't not be able to use fullscreen

POC

luckily there is already a WPT for that

./mach wpt testing/web-platform/tests/permissions-policy/permissions-policy-frame-policy-allowed-for-all.https.sub.html

Targeted subtest
FAIL - Test frame policy on cross origin iframe does not inherit from header policy.


the header is not enabled by default, so if you want to test this without the WPT, enable the pref in about:config > permissionsPolicy :)

The severity field is not set for this bug.
:freddy, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(fbraun)
Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(fbraun)

A permissive parent header must not replace implicit same-origin delegation.

Summary: iframe auto inhertis the permissions policy from the HTTP header → iframe auto inherits the permissions policy from the HTTP header
Depends on: 2081658
Attachment #9656717 - Attachment is obsolete: true

The issue was fixed in Bug 2081658

Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Duplicate of bug: 2081658
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: