-
Notifications
You must be signed in to change notification settings - Fork 3.5k
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=297161 #54219
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
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=297161 #54219
Conversation
This patch has been exported from WebKit; it will be approved automatically once the downstream patch is r+. |
9b4d64e
to
26bb4dc
Compare
@chrishtr @foolip Could you sign off on this change from the Chromium side? While fixing the only WebKit failure in this test, I found other bugs, and wrote tests for them. Chromium seems to share some of these bugs as well. Firefox passes all the tests written here. This would bring Chrome's "Modules" score from 100% to ~98.5%, but the failures are fairly straightforward to fix, it would just be checking that the mime type only uses valid HTTP tokens on both sides of the |
cc @jgraham @allstarschh for Gecko, although Gecko already passes those tests. |
da3d4ed
to
12a4a56
Compare
12a4a56
to
fa070ef
Compare
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 review process for this patch is being conducted in the WebKit project.
@nt1m the change itself seems straightforward, but does it affect anything other than Modules? Is there any web compat risk, things that would previously work but now would not? |
The JSON change only affects modules and Web Inspector (not web-exposed) in WebKit (based on code-analysis). The XML change isn't covered by this WPT PR, but covers what gets detected as an XML document when loading one in-page and in XHR. Gecko has shipped correct mimetype parsing for a while, and this change is limited to mimetypes with a suffix (e.g. |
Thanks for the details @nt1m, sounds like it should be fine. Microsoft is driving the Modules focus area of Interop 2025, so I'd like to hear from them too to avoid surprises. @dandclark can you take a look? |
Sorry for the delay, we're looking at this. There's a question of how feasible/reasonable it is to limit this stricter checking to just |
On further review this is fine from our side. |
Thanks! will merge it |
WebKit export from bug: JSON & XML MIME types should only contain valid HTTP tokens