This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit d0dd287
Bug 1929364 [wpt PR 48982] - Don't update LCP for video elements switching from poster., a=testonly
Automatic update from web-platform-tests
Don't update LCP for video elements switching from poster.
A video element whose rendered contents are a poster image will have a
different MediaTiming than when it's contents are the video itself.
However, that different object will cause the MediaRecordId to be
different, and so the same element can create two distinct LCP candidate
records.
This change forces the MediaRecordId to not consider the MediaTiming
object when calculating the hash for a video element.
Bug: 330202431
Change-Id: I56b8c8d54c1a3d64138f8de529fe15695b1df952
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5970217
Reviewed-by: Hao Liu <[email protected]>
Commit-Queue: Ian Clelland <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1378586}
--
wpt-commits: 5fe6c1e7f9ee16db7756262fd2a71232bc9b4d1d
wpt-pr: 489821 parent e248bae commit d0dd287
File tree
1 file changed
+53
-0
lines changed- testing/web-platform/tests/largest-contentful-paint
1 file changed
+53
-0
lines changedLines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments