gecko-dev/testing/web-platform/tests/element-timing
Nicolás Peña Moreno 8263a4ed48 Bug 1567650 [wpt PR 17950] - [ElementTiming] Replace responseEnd with loadTime, a=testonly
Automatic update from web-platform-tests
[ElementTiming] Replace responseEnd with loadTime

This CL replaces responseEnd with loadTime in ElementTiming. Before,
responseEnd would be used and would be problematic for memory cached
images and for inline images (data scheme). We change it to loadTime,
the time at which LayoutObject::ImageNotifyFinished is called. This is
the same time as when LargestContentfulPaint computes loadTime. As they
are both under runtime flags and the hooks are not unified, for
simplicity we compute the timestamp again. This will not be too
expensive for ElementTiming, as the timestamp is gated on the existence
of the elementtiming attribute.

To store the loadTime, we change images_notified_ to be a HashMap which
now stores the timestamp corresponding to loadTime and whether the image
has painted (after being loaded).

Bug: 982046, 879270
Change-Id: I69da42c9250cc36c567df5da285ef1a9a357b554
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1710840
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680117}

--

wpt-commits: 5275930d8392750a8d16934abc6c3f8f9802bcd6
wpt-pr: 17950
2019-07-31 02:54:07 +00:00
..
resources Bug 1567650 [wpt PR 17950] - [ElementTiming] Replace responseEnd with loadTime, a=testonly 2019-07-31 02:54:07 +00:00
background-image-data-uri.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
background-image-multiple-elements.html Bug 1559262 [wpt PR 17328] - [ElementTiming] Add intersectionRect for text entries, a=testonly 2019-07-24 13:29:56 +01:00
background-image-stretched.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
buffer-before-onload.html Bug 1564740 [wpt PR 17608] - Reland: Cleaning up ElementTiming and EventTiming observer buffer behavior.., a=testonly 2019-07-24 13:32:50 +01:00
buffered-flag.html Bug 1564790 [wpt PR 17633] - Add buffered flag tests for UserTiming and ElementTiming, a=testonly 2019-07-24 13:33:17 +01:00
cross-origin-element.sub.html Bug 1566462 [wpt PR 17852] - Rename render timestamp in ElementTiming and LargestContentfulPaint, a=testonly 2019-07-24 13:34:42 +01:00
cross-origin-iframe-element.sub.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
css-generated-text.html Bug 1560901 [wpt PR 17388] - [ElementTiming] Add tests for generated and shadow text, a=testonly 2019-07-24 13:30:34 +01:00
disconnect-image.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-carousel.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-clipped-svg.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-data-uri.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-not-added.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-not-fully-visible.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-rect-iframe.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-src-change.html Bug 1566561 [wpt PR 17862] - [ElementTiming] Track images by LayoutObject and ImageResourceContent, a=testonly 2019-07-24 13:34:59 +01:00
image-TAO.sub.html Bug 1566462 [wpt PR 17852] - Rename render timestamp in ElementTiming and LargestContentfulPaint, a=testonly 2019-07-24 13:34:42 +01:00
image-with-css-scale.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
image-with-rotation.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
images-repeated-resource.html Bug 1567650 [wpt PR 17950] - [ElementTiming] Replace responseEnd with loadTime, a=testonly 2019-07-31 02:54:07 +00:00
invisible-images.html Bug 1564713 [wpt PR 17562] - [ElementTiming] Check opacity of image before exposing, a=testonly 2019-07-24 13:32:37 +01:00
META.yml Bug 1557408 [wpt PR 16904] - Add META.yml for element-timing, a=testonly 2019-06-19 11:05:36 -07:00
multiple-background-images.html Bug 1555504 [wpt PR 17087] - [ElementTiming] Change |name| and add |url| to PerformanceElementTiming, a=testonly 2019-06-19 11:06:39 -07:00
observe-background-image.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
observe-child-element.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
observe-elementtiming.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
observe-multiple-images.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
observe-shadow-image.html Bug 1560901 [wpt PR 17388] - [ElementTiming] Add tests for generated and shadow text, a=testonly 2019-07-24 13:30:34 +01:00
observe-shadow-text.html Bug 1560901 [wpt PR 17388] - [ElementTiming] Add tests for generated and shadow text, a=testonly 2019-07-24 13:30:34 +01:00
observe-svg-image.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
observe-text.html Bug 1560901 [wpt PR 17388] - [ElementTiming] Add tests for generated and shadow text, a=testonly 2019-07-24 13:30:34 +01:00
observe-video-poster.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
progressively-loaded-image.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
rectangular-image.html Bug 1557420 [wpt PR 16898] - Add a precondition to all the element timing tests, a=testonly 2019-06-19 11:05:37 -07:00
retrievability.html Bug 1564795 [wpt PR 17676] - Do not expose element, event, and layout-shift entries via getEntries, a=testonly 2019-07-24 13:33:20 +01:00
supported-element-type.html