[web] Download CanvasKit chromium when possible#39827
[web] Download CanvasKit chromium when possible#39827auto-submit[bot] merged 10 commits intoflutter:mainfrom
Conversation
ditman
left a comment
There was a problem hiding this comment.
Question about the "chromium" mode. Do we want it?
|
Also there's a failing test that is probably passing |
Nah. It's a real For some reason |
|
It turns out, the value is |
ditman
left a comment
There was a problem hiding this comment.
Let's go chromium mode! (small change required in the switch though!)
|
🚀 |
|
@eyebrowsoffire it looks like I need your approval too (to override your previous "Request Changes" review). |
|
Let's goooo! |
On Chromium-based browsers, try downloading the Chromium variant of CanvasKit. If not available, fallback to the normal variant.
This PR also introduce a new runtime config to control the filename of the
canvaskit.jsfile. This allows users to force the Chromium of variant of CanvasKit by settingcanvasKitJsFileName: "chromium/canvaskit.js"or force the non-Chromium one by doingcanvasKitJsFileName: "canvaskit.js"(could be useful in tests as well).This is still disabled so it should have no effect yet. Once all the pieces are ready, we need to set
useClientICUto the correct value based on the browser we are running on.Part of flutter/flutter#118801