RESOLVED FIXED 243199
Enable lazy iframe loading by default
https://bugs.webkit.org/show_bug.cgi?id=243199
Summary Enable lazy iframe loading by default
Sam Sneddon [:gsnedders]
Reported 2022-07-25 22:45:08 PDT
We should, y'know, have a bug for this. rdar://97565220
Attachments
Sam Sneddon [:gsnedders]
Comment 1 2022-07-25 22:52:01 PDT
Current WPT results: /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-queued-navigations.html FAIL Multiple queued lazy load navigations do not crash the page - assert_true: The iframe should be navigated to the resource provided by the latest `src` mutation expected true got false @http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-queued-navigations.html:40:16 @http://web-platform.test:8000/resources/testharness.js:2590:30 @http://web-platform.test:8000/resources/testharness.js:2665:37 onload@http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-queued-navigations.html:51:29 /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html FAIL Below-viewport srcdoc iframes load lazily - assert_true: The window load event should have fired before the below-viewport srcdoc iframe's subresource loads expected true got false @http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html:52:16 @http://web-platform.test:8000/resources/testharness.js:2590:30 @http://web-platform.test:8000/resources/testharness.js:2637:40 onload@about:srcdoc:2:55 FAIL Below-viewport data: url iframes load lazily - assert_true: The window load event should have fired before the below-viewport data url iframe loads expected true got false @http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html:65:16 @http://web-platform.test:8000/resources/testharness.js:2590:30 @http://web-platform.test:8000/resources/testharness.js:2665:37 onload@http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html:96:38 FAIL Below-viewport blob url iframes load lazily - assert_true: The window load event should have fired before the below-viewport blob url iframe loads expected true got false @http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html:72:16 @http://web-platform.test:8000/resources/testharness.js:2590:30 @http://web-platform.test:8000/resources/testharness.js:2665:37 onload@http://web-platform.test:8000/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html:100:38 The former of these is bug 243198, the latter of these I haven't actually filed (but I don't think needs to block shipping, especially while Chrome fails them: https://wpt.fyi/results/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy.html?label=master&label=experimental&aligned
Jen Simmons
Comment 2 2022-07-26 08:15:12 PDT
Igalia, any insights into how ready this is to ship? I hear you were perhaps waiting for lazy loading on iFrames to become part of the official HTML spec — which has now happened. Does the implementation need to be updated to match the spec? Is this ready to ship?
Chris Dumez
Comment 3 2022-07-26 12:49:15 PDT
EWS
Comment 4 2022-07-26 16:12:18 PDT
Committed 252848@main (461deb6c6dd7): <https://commits.webkit.org/252848@main> Reviewed commits have been landed. Closing PR #2748 and removing active labels.
Rob Buis
Comment 5 2022-07-27 07:43:33 PDT
(In reply to Jen Simmons from comment #2) > Igalia, any insights into how ready this is to ship? I hear you were perhaps > waiting for lazy loading on iFrames to become part of the official HTML spec > — which has now happened. Does the implementation need to be updated to > match the spec? Is this ready to ship? Yes, should be fine to ship.
Note You need to log in before you can comment on or make changes to this bug.