Intent to Prototype: Expose coarsened cross-origin renderTime in elment timing/LCP (regardless of TAO)

193 views
Skip to first unread message

Chromestatus

unread,
Oct 14, 2024, 12:51:58 PM10/14/24
to blin...@chromium.org, mmo...@chromium.org, nrose...@chromium.org

Contact emails

nrose...@chromium.org, mmo...@chromium.org

Explainer

None

Specification

None

Summary

Element timing and LCP entries have a "renderTime" attribute, aligned with the first frame in which an image or text was painted. This attribute is currently guarded for cross-origin images by requiring a "Timing-Allow-Origin" header on the image resource. However, that restriction is easy to work around (e.g. by displaying a same-origin and cross-origin image in the same frame). Since this has been a source of confusion, we instead plan to remove this restriction, and instead coarsen all render times by 4ms when the document is not cross-origin-isolated. This is seemingly coarse enough to avoid leaking any useful decoding-time information about cross-origin images.



Blink component

Blink>PerformanceAPIs

Motivation

People using the LCP/element-timing APIs are currently utterly confused about this, it comes up frequently. Zeroing the renderTime doesn't make a lot of security sense, so the confusion can be solved while providing a more suitable mitigation security-wise.



Initial public proposal

https://github.com/w3c/paint-timing/issues/104#issuecomment-2411775797

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://issues.chromium.org/issues/373263977

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5128261284397056?gate=5089084605988864

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages