Attention needed from Stefan Zager
Philip Rogers voted and added 3 comments![Open in Gerrit]()
Votes added by Philip Rogers
3 comments
Patchset-level comments
File-level comment, Patchset 2:Philip Rogers .
resolvedI think this is too brittle and complex. I'd like to switch to just pessimistically treating all css paint worklet images as cross-origin. WDYT? This would prevent them from working in html-in-canvas. Paint worklet is currently chromium-only, and we could bring this patch back in the future if needed.
Philip RogersUpdated to this approach in the latest patch.
File third_party/blink/renderer/core/style/style_generated_image.cc
Line 105, Patchset 2:bool StyleGeneratedImage::IsCorsSameOrigin(const ComputedStyle* style,Stefan Zager .
resolvedThis might feel less gross if we could pre-compute it during style resolution rather than computing it on the fly from paint.
Philip RogersUnfortunately, this is not computed until paint time. For example `BoxPainterBase::PaintFillLayer` calls `StyleGeneratedImage::GetImage` (this is one of many callers of `GetImage`), and this is what copies the paint-worklet inputs off the style object (see: `CSSPaintValue::GetImage`).
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I88509e079f9640edfe0da22e2655143d695e8512
Gerrit-Change-Number: 7846744
Gerrit-PatchSet: 5
Gerrit-Comment-Date: Thu, 14 May 2026 17:15:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes