-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Fix up COOP HTTP header errors #38568
Conversation
Preview URLs Flaws (6)URL:
(comment last updated: 2025-03-13 13:12:08) |
files/en-us/web/http/headers/cross-origin-opener-policy/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spec links in the comments were very useful to cross-check, and looks good, so a +1 from me - thanks 👍🏻
I think this is definitely better. I don't have time to try a full review of this page, but of course happy to merge this as an incremental improvement. But a couple of other things you might consider now: Line 91: BCD->BCG Line 103: you could simplify this:
...by removing the first clause: if the policies have to be the same, and we already know they are not both In general it's worth being really precise about language, because this is complex. For example, you have:
What does "opened" mean here? I think it is "The opened document has a policy of I think the way the table expresses the choice (New/Same) is better than the way the text does (true/false), because with the text there's another logical link (what is true?) and of course that got flipped in the original here. So I would consider rewriting the algorithm text like:
Getting into more extensive territory:
|
This pull request has merge conflicts that must be resolved before it can be merged. |
48e5967
to
8407639
Compare
Preview URLs Flaws (6)URL:
|
Thanks for the reviews. @wbamberg I have integrated your "easy feedback" pretty much verbatim - much better. What was there before is what you get when you spend way too long looking at something and end up deciding that matching the spec is the safest option. I am not going near those examples. I still have PTSD from the last time I was involved in this document. |
There is a typo in the description for the HTTP COOP header, for the case of opening a page in a popup (using
window.open()
that makes the table wrong.The steps come from https://html.spec.whatwg.org/multipage/browsers.html#check-browsing-context-group-switch-coop-value-popup. This directly matches the spec (I suspect I tried to invert the logic originally, hence the mismatch).