Skip to content

Send reports for Permissions Policy violations in iframe to parent frame's endpoint #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Sep 25, 2024

Conversation

shhnjk
Copy link
Member

@shhnjk shhnjk commented Apr 30, 2024

This change implements permission policy reporting for potential Permissions Policy violations to parent frames.

Currently, Permissions Policy violations inside an iframe is not sent to parent frame, because of security concerns. However, this makes it difficult for websites to roll out Permissions Policy because the site owner does not have insight into permission breakage in iframes.

The change is implemented in a way that it does not leak any new information to parent frame, while sending signals that iframes might be affected by the Permissions Policy.

Fixes: #537


Preview | Diff

@shhnjk shhnjk requested a review from clelland April 30, 2024 23:12
@shhnjk
Copy link
Member Author

shhnjk commented May 11, 2024

Friendly ping @clelland :)

@shhnjk
Copy link
Member Author

shhnjk commented Aug 6, 2024

@clelland, I've introduced Generate report for potential violation of permissions policy on settings. PTAL!

@shhnjk
Copy link
Member Author

shhnjk commented Aug 20, 2024

@clelland, PTAL when you have time!

Add a monkey patch
@clelland
Copy link
Collaborator

This is looking really good, @shhnjk - other than one nit, I think it's probably good to merge

@shhnjk
Copy link
Member Author

shhnjk commented Sep 23, 2024

@clelland feel free to merge this :)

@clelland clelland merged commit 314ffc9 into w3c:main Sep 25, 2024
2 checks passed
@clelland
Copy link
Collaborator

Thanks, @shhnjk ! This looks good now.

github-actions bot added a commit that referenced this pull request Sep 25, 2024
…ame's endpoint (#546)

SHA: 314ffc9
Reason: push, by clelland

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 8, 2025
Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 8, 2025
Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 8, 2025
Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 13, 2025
…ial permissions policy violation, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for potential permissions policy violation

Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}

--

wpt-commits: 0da5f39aed96a8635d840b0c39ebf28133d1b218
wpt-pr: 49978
sadym-chromium pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 14, 2025
Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jan 14, 2025
…ial permissions policy violation, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for potential permissions policy violation

Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <[email protected]>
Reviewed-by: Mustafa Emre Acer <[email protected]>
Auto-Submit: Jun Kokatsu <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1403647}

--

wpt-commits: 0da5f39aed96a8635d840b0c39ebf28133d1b218
wpt-pr: 49978
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jan 16, 2025
…ial permissions policy violation, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for potential permissions policy violation

Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <iclellandchromium.org>
Reviewed-by: Mustafa Emre Acer <meacerchromium.org>
Auto-Submit: Jun Kokatsu <jkokatsugoogle.com>
Commit-Queue: Mustafa Emre Acer <meacerchromium.org>
Cr-Commit-Position: refs/heads/main{#1403647}

--

wpt-commits: 0da5f39aed96a8635d840b0c39ebf28133d1b218
wpt-pr: 49978

UltraBlame original commit: 60d9a821c4239f18f01e796616ff8a0a32733e6d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Jan 16, 2025
…ial permissions policy violation, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for potential permissions policy violation

Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <iclellandchromium.org>
Reviewed-by: Mustafa Emre Acer <meacerchromium.org>
Auto-Submit: Jun Kokatsu <jkokatsugoogle.com>
Commit-Queue: Mustafa Emre Acer <meacerchromium.org>
Cr-Commit-Position: refs/heads/main{#1403647}

--

wpt-commits: 0da5f39aed96a8635d840b0c39ebf28133d1b218
wpt-pr: 49978

UltraBlame original commit: 60d9a821c4239f18f01e796616ff8a0a32733e6d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jan 16, 2025
…ial permissions policy violation, a=testonly

Automatic update from web-platform-tests
Add a runtime enabled feature for potential permissions policy violation

Implements w3c/webappsec-permissions-policy#546

Bug: 40941424
Change-Id: I969a7ce326986b2a05f9417038f5d164ca6308dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925839
Reviewed-by: Ian Clelland <iclellandchromium.org>
Reviewed-by: Mustafa Emre Acer <meacerchromium.org>
Auto-Submit: Jun Kokatsu <jkokatsugoogle.com>
Commit-Queue: Mustafa Emre Acer <meacerchromium.org>
Cr-Commit-Position: refs/heads/main{#1403647}

--

wpt-commits: 0da5f39aed96a8635d840b0c39ebf28133d1b218
wpt-pr: 49978

UltraBlame original commit: 60d9a821c4239f18f01e796616ff8a0a32733e6d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send reports for Permissions Policy violations in iframe to parent frame's endpoint
2 participants