-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Seirdy
force-pushed
the
feat/document-policy
branch
from
August 12, 2022 04:58
12f7ed9
to
a4a87ed
Compare
thestinger
force-pushed
the
main
branch
10 times, most recently
from
August 18, 2022 19:51
f68494a
to
b0b84a0
Compare
thestinger
force-pushed
the
main
branch
2 times, most recently
from
August 26, 2022 03:15
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.
Seirdy
force-pushed
the
feat/document-policy
branch
from
August 26, 2022 16:34
a4a87ed
to
4d9b999
Compare
thestinger
force-pushed
the
main
branch
4 times, most recently
from
October 14, 2022 02:25
35468ab
to
b9f5696
Compare
thestinger
force-pushed
the
main
branch
6 times, most recently
from
October 18, 2022 01:00
de0367d
to
db964d7
Compare
thestinger
force-pushed
the
main
branch
2 times, most recently
from
October 22, 2022 09:38
07c0438
to
0cb1182
Compare
thestinger
force-pushed
the
main
branch
13 times, most recently
from
December 9, 2024 22:49
6df6261
to
9ff9ebe
Compare
thestinger
force-pushed
the
main
branch
7 times, most recently
from
December 20, 2024 22:09
344eae9
to
8889812
Compare
thestinger
force-pushed
the
main
branch
2 times, most recently
from
December 29, 2024 21:13
fde2131
to
df7ee49
Compare
thestinger
force-pushed
the
main
branch
5 times, most recently
from
January 18, 2025 08:18
5e4c313
to
811e79d
Compare
thestinger
force-pushed
the
main
branch
2 times, most recently
from
January 26, 2025 14:19
571f78e
to
e456753
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.