Closed Bug 1880200 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 44573 - Use scroll margin for iframes' lazy loader.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yotam Hacohen <yotha@chromium.org> wrote:

Use scroll margin for iframes' lazy loader.

When creating an intersection observer for an iframe lazy loader we use
the margin values we get from GetLazyLoadingFrameMarginPx as the value
for the scroll margin and not for the root margin, to allow lazy
loading for iframes.

(Also including fix to the test expectations and a minor fix for one of
the tests)

Spec:
https://html.spec.whatwg.org/#lazy-load-root-margin

Bug: 40943726

Change-Id: Ifc15d79ced91e5e00d6c736907ea1feaa56a5532
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5293006
Auto-Submit: Yotam Hacohen \<yotha@chromium.org>
Commit-Queue: Yotam Hacohen \<yotha@chromium.org>
Reviewed-by: Traian Captan \<tcaptan@chromium.org>
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Commit-Queue: Traian Captan \<tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260177}

PR 44573 applied with additional changes from upstream: 855f066245bfff9274c50217eae582d77a98b209
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/104e4f765e18 [wpt PR 44573] - Use scroll margin for iframes' lazy loader., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.