-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Add Document-Policy header #484
Open
Seirdy
wants to merge
1
commit into
GrapheneOS:main
Choose a base branch
from
Seirdy:feat/document-policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12f7ed9
to
a4a87ed
Compare
f68494a
to
b0b84a0
Compare
c6701d3
to
66132ef
Compare
@Seirdy We had to rebase the repository to fix some commit messages for a legal reason. Can you rebase this? |
This header accomplishes the following: - Forbids document.write - Forbids document.domain - Forbids use of profiling APIs - Forbids popups (similar to the overly-agressive "sandbox" CSP directive; uplifed from the deprecated Feature-Policy header) These are preffed off in Chromium as "experimental"; the only DP directive currently enabled in Chromium is "force-load-at-top". More information: - Document-Policy explainer: https://github.com/wicg/document-policy/blob/main/document-policy-explainer.md - Document-Policy specification: https://wicg.github.io/document-policy/ - Current directives supported in Chromium: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/permissions_policy/document_policy_features.json5 To try this out, go to "chrome://flags" and enable experimental web platform features. See implementation status at https://bugs.chromium.org/p/chromium/issues/detail?id=993790.
a4a87ed
to
4d9b999
Compare
35468ab
to
b9f5696
Compare
de0367d
to
db964d7
Compare
07c0438
to
0cb1182
Compare
6df6261
to
9ff9ebe
Compare
344eae9
to
8889812
Compare
fde2131
to
df7ee49
Compare
5e4c313
to
811e79d
Compare
571f78e
to
e456753
Compare
bcf7568
to
58de140
Compare
880704c
to
5ac7824
Compare
d2bf062
to
1fd9f58
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This header accomplishes the following:
directive; uplifed from the deprecated Feature-Policy header)
These are preffed off in Chromium as "experimental"; the only DP
directive currently enabled in Chromium is "force-load-at-top".
More information:
Document-Policy explainer:
https://github.com/wicg/document-policy/blob/main/document-policy-explainer.md
Document-Policy specification:
https://wicg.github.io/document-policy/
Current directives supported in Chromium:
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
To try this out, go to "chrome://flags" and enable experimental web
platform features. See implementation status at
https://bugs.chromium.org/p/chromium/issues/detail?id=993790.