-
Notifications
You must be signed in to change notification settings - Fork 728
[css-fonts-4] Use “create a potential-CORS request” #5838
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
[css-fonts-4] Use “create a potential-CORS request” #5838
Conversation
75e4f4a
to
f75d37e
Compare
sideshowbarker marked as non substantive for IPR from ash-nazg. |
f75d37e
to
3b45813
Compare
Why can this not create a request directly? HTML's abstraction is mostly useful if you have a |
Good point. I'll rewrite it |
It is not the case for the CSS It will be the case for the planned replacement for |
Will wait for your rewrite before merging. |
@svgeesus even in that case I doubt it would have an actual HTML attribute state, which is what that algorithm expects. |
3b45813
to
75e4f4a
Compare
Is the force-push the rewrite, or should I still wait? |
Hi @svgeesus
The force-push is not the rewrite, so please wait. (Sorry for not having gotten back to this yet; I’ll try to do it early this week.) |
Some of other CSS modules also use “potentially CORS-enabled fetch” algorithm. |
OK, thanks for the heads-up — I’ll update those too |
This change makes the CSS Fonts spec call directly into the Fetch spec when specifying the requirements for loading fonts from @font-face rules. Otherwise, without this change, the CSS Fonts spec references “potentially CORS-enabled fetch”, which is an obsolete algorithm that no longer exists either in the Fetch spec nor in HTML.
75e4f4a
to
17da2bb
Compare
OK, I’ve amended the commit and this is now ready for re-review |
I’d prefer to get this one change right first — rather than trying to include patches to multiple other specs in this PR. Once we have the language in this PR right, the language can be re-used for patches to the other specs. |
75e4f4a
to
17da2bb
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.
Excellent, thanks
This change makes the CSS Fonts spec reference the “create a potential-CORS request” algorithm from the HTML spec.
Otherwise, without this change, the CSS Fonts spec references “potentially CORS-enabled fetch”, which is an obsolete algorithm that no longer exists either in the Fetch spec nor in HTML.
Related: whatwg/html#6265