Summary: | [GTK] Blurry images on various news websites | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | PC | ||
OS: | Linux |
Description
Michael Catanzaro
2021-04-16 12:21:33 PDT
Seems to also affect images in twitter embeds. This seems to be breaking a wide variety of websites. For example, same problem occurs here: https://www.warbyparker.com/eyeglasses/men/hayden/striped-pacific In this case, the image looks like this: <img class="c-product-slide--product-image__image" alt="Angle of Hayden in Striped Pacific" sizes="100vw" srcset="//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=250 250w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=500 500w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=1000 1000w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=1250 1250w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=1500 1500w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=1750 1750w,//i.warbycdn.com/s/c/21f0689060082b07dec5bf388393ec5117c656d7?quality=80&width=2000 2000w"> OK it's really simple. The window size is indeed set incorrectly. This script reproduces the bug: <body> <p><a id="link">New tab!</a></p> </body> <script> var p = document.createElement("P"); var t = document.createTextNode(`width=${window.innerWidth}`); p.appendChild(t); document.body.appendChild(p); document.getElementById("link").href = document.URL; </script> Load it in an open window and it will print the window width. Open it in a new tab and quickly switch to the new tab, and it will print the window width. Open it in a new tab and allow the tab to load in the background, and it will print 0. It's somehow an Epiphany regression. It's caused by "Port to HdyTabView/HdyTabBar" so not WebKit's fault. |