-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Canvas's measureText shouldn't throw SecurityError #3992
Comments
Thanks, how would you like to be acknowledged? I couldn't find you. |
I'm not sure how acknowledgement look like in WHATWG but maybe something like Jun KoKatsu? If you can't link then only the name would be fine too :) |
Only names, but we support all of Unicode if that's of interest. 😊 |
I don't expect everyone to be able to read my name in Japanese Kanji so english one's fine :) |
For Kanji we typically list both, e.g., 黒澤剛志 (Kurosawa Takeshi). |
Whoa! Then following please 😃 |
Fonts have no origins. This was missed in 440a8eb. Fixes whatwg#3992.
Fonts have no origins. This was missed in 440a8eb. Fixes whatwg#3992.
https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-measuretext
Cross-origin fonts are loaded with CORS enabled requests. Satisfying CORS should mean that Document object that owns the canvas element has access to the font even though it's not same-origin per origin cencept. Therefore "SecurityError" should not be thrown.
The text was updated successfully, but these errors were encountered: