Closed Bug 1636565 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 23490 - Add lazy load image and iframe referrerpolicy tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 23490 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/23490
Details from upstream follow.

Dominic Farolino <dom@chromium.org> wrote:

Add lazy load image and iframe referrerpolicy tests

This CL does the following:

  • Adds a correct \<img loading=lazy referrerpolicy> test, to assert that
    the referrerpolicy a deferred image is ultimately fetched with is the
    latest one. This is because referrerpolicy mutations are considered
    relevant mutations as per https://crrev.com/c/2171816 and
    https://github.com/whatwg/html/pull/5434, so the latest
    referrerpolicy should be honored when an image is fetched after being
    deferred.
  • Adds an \<iframe loading=lazy referrerpolicy> test, to assert that the
    referrerpolicy a deferred iframe is fetched with is the
    referrerpolicy at parse-time. This is because iframes do not respond
    to referrerpolicy mutations, and during spec discussions, it was
    mentioned that the request for iframes be set up and finalized at
    parse-time. The test is marked tentative because the spec does not
    officially exist yet.
  • Cleans up an \<img loading=lazy crossorigin> test.

Bug: 1080739
Change-Id: I8ec6c344557180721c317f6accaad1b336b39b8c

Reviewed-on: https://chromium-review.googlesource.com/2185395
WPT-Export-Revision: d66319644585ede249e840839ad1518b8925fa02

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 74 tests

Status Summary

Firefox

OK : 3
PASS: 3[GitHub] 74[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux1804-64-debug, Gecko-linux1804-64-opt, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt]

Chrome

OK : 3
PASS: 2
FAIL: 1

Safari

OK : 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8ff49ccdfaae
[wpt PR 23490] - Add lazy load image and iframe referrerpolicy tests, a=testonly
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f0e5fdd3cecd
[wpt PR 23490] - Add lazy load image and iframe referrerpolicy tests, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.