Closed Bug 1963917 Opened 1 year ago Closed 1 year ago

Ignore the TAO check for cross origin images for LCP

Categories

(Core :: DOM: Performance APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: sefeng211, Assigned: sefeng211)

References

Details

Attachments

(1 file)

There was an update to LCP spec such that the renderTime is no longer
protected by Timing-Allow-Origin due to it's easy to side channel attack
it and it isn't needed for CORS protected images.

The solution was to coarsen the timestamp by 4ms (this is what Chrome did).

To do something similar in Firefox, we don't need to coarsen the
timestamp because we already reduce more precisions. We just need to
always expose this.

Spec discussion: https://github.com/w3c/largest-contentful-paint/issues/111

This patch won't fix any test, instead, it'll make multiple-redirects-TAO.html starts to depend on PaintTimingMixin

There was an update to LCP spec such that the renderTime is no longer
protected by Timing-Allow-Origin due to it's easy to side channel attack
it and it isn't needed for CORS protected images.

The solution was to coarsen the timestamp by 4ms (this is what Chrome did).

To do something similar in Firefox, we don't need to coarsen the
timestamp because we already reduce more precisions. We just need to
always expose this.

Spec discussion: https://github.com/w3c/largest-contentful-paint/issues/111

Assignee: nobody → sefeng
Status: NEW → ASSIGNED
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36a5e41c7ceb Ignore the TAO check for cross origin images for LCP r=mstange
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Pushed by amarc@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e45200ba360 Revert "Bug 1963917 - Ignore the TAO check for cross origin images for LCP r=mstange" for causing wpt failures

Backed out for causing wpt failures

Status: RESOLVED → REOPENED
Flags: needinfo?(sefeng)
Resolution: FIXED → ---
Target Milestone: 140 Branch → ---

Ah right, we fixed bug 1963464, so more tests are passing.

Flags: needinfo?(sefeng)
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3ac0c48fcab Ignore the TAO check for cross origin images for LCP r=mstange
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Regressions: 1969312
QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: