Closed Bug 1491131 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 12996 - Implement Feature-Policy: lazyload

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ehsan Karamad <ekaramad@chromium.org> wrote:
>  Implement Feature-Policy: lazyload
>  
>  This CL implements the 'lazyload' policy which acts in place of the
>  lazyload attribute for nested frames and enforces lazyloading regardless
>  of the value of 'lazyload' attribute.
>  
>  A follow up CL will implement the feature for images (after
>  LazyImageLoading is implemented).
>  
>  Bug: 869492
>  Change-Id: I2f8ab7ad9a5937636f270c84563c73ad392dbb01
>  Reviewed-on: https://chromium-review.googlesource.com/1171374
>  Commit-Queue: Ehsan Karamad <ekaramad@chromium.org>
>  Reviewed-by: Ken Buchanan <kenrb@chromium.org>
>  Reviewed-by: Kent Tamura <tkent@chromium.org>
>  Reviewed-by: Ehsan Karamad <ekaramad@chromium.org>
>  Reviewed-by: Ian Clelland <iclelland@chromium.org>
>  Reviewed-by: Scott Little <sclittle@chromium.org>
>  Cr-Commit-Position: refs/heads/master@{#590688}
>
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 4 tests and 14 subtests
OK     : 4
PASS   : 5[linux32-opt,linux64-debug,linux64-opt], 6[linux32-debug]
FAIL   : 8[linux32-debug], 9[linux32-opt,linux64-debug,linux64-opt]

New tests that have failures or other problems:
/feature-policy/experimental-features/lazyload/lazyload-disabled-tentative.sub.html
    Sanity-check: Contents do not load immediately (no eager-loading) when the lazyload attribute is 'on' and frame is in viewport.: FAIL
    When 'lazyload' feature is disabled, a frame cannot avoid lazyloading by setting 'lazyload' attribute to 'off': FAIL
/feature-policy/experimental-features/lazyload/lazyload-enabled-tentative.sub.html
    Sanity-check: Contents do not load immediately (no eager-loading) when the lazyload attribute is 'on' and frame is in viewport.: FAIL
    When 'lazyload' feature is enabled, a frame can avoid lazyloading by setting 'lazyload' attribute to 'off': FAIL[linux32-opt,linux64-debug,linux64-opt]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/dedcf3b93e7e
[wpt PR 12996] - Implement Feature-Policy: lazyload, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/d42ac96cb618
[wpt PR 12996] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/dedcf3b93e7e
https://hg.mozilla.org/mozilla-central/rev/d42ac96cb618
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.