| Summary: | Images and iframes with attribute loading=lazy do not print if not viewed (scrolled to) first | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | groek_de_bc | ||||
| Component: | Images | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, hartman.wiki, kangil.han, koivisto, rbuis, sabouhallawa, simon.fraser, thorton, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=208094 | ||||||
| Attachments: |
|
||||||
|
Description
groek_de_bc
2021-04-14 08:08:03 PDT
Created attachment 439736 [details]
Patch
This bug still exists. The same issue in Chrome was fixed in January of 2022 https://bugs.chromium.org/p/chromium/issues/detail?id=875403 This is currently blocking Wikipedia (esp Desktop) from using the native attribute, as people still want to print Wikipedia and expect that to work. I even tried something like: <script> window.onbeforeprint = () => { console.log( 'print' ) document.querySelectorAll( 'img' ).forEach( (elem, index) => { elem.removeAttribute( 'loading' ); }) } </script> But it seems that this is only processed async, and the print still misses images. Related wikipedia ticket: https://phabricator.wikimedia.org/T148047 |