-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Coop header parsing null byte #25181
Conversation
Oh yeah, this is by design, but only Chrome implements it thus far I think. Edit: see whatwg/xhr#165. |
Aha, thanks @annevk! I see tests for fetch and XHR were added. Other kinds of loads with 0x00 might also be good to test, right? |
Yup, see #21019 for some of those. |
I guess it's also time to enshrine this in the specification given that it stuck in Chromium and others want this as well. |
Thanks. I'll close this, since the test introduced here is invalid. Is the spec change for HTTP? Is there an issue for this? |
It's whatwg/xhr#165 and it would be either HTTP or Fetch. And if it's HTTP, Fetch should probably still call it out as an assert or some such. |
@Hexcles as per #20873 (comment) (which this PR is on top of, only the last commit here is new).
When looking at this again, it seems the connection rejection may be happening in Chromium, since this test is working in Firefox. That is, wptserve handles this fine.
The interesting URL is https://web-platform.test:8443/html/cross-origin-opener-policy/resources/coop-coep.py?coop=same-origin%00&coep=&channel=unspecified_to_SAME_ORIGIN_same-origin%00 (or whatever port you get with
wpt run
orwpt serve
)In Chrome, I get an error page: