Open
Bug 1446245
Opened 8 years ago
Updated 4 years ago
Black lines on the background image of Humble Book Bundle page (only in Firefox)
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
NEW
People
(Reporter: lb1.3, Unassigned)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Build ID: 20180313132902
Steps to reproduce:
Went to https://www.humblebundle.com/books/diy-electronics-books and waited.
Actual results:
It looks fine at first but then lines go all across the background, unlike in Chrome which doesn't glitch. You can see in the screenshot where the rightmost lines are in Firefox, and do not show in Chrome.
Expected results:
It should work without adding a bunch of lines.
Comment 1•8 years ago
|
||
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID 20180321040527
I was able to reproduce this issue on the latest Firefox Release (59.0.1) and on the latest Nightly (61.0a1) on Windows 10 x64, Mac 10.13.3 and Ubuntu 17.04 x64. I've traced this issue as far back as Firefox 40, but on that version the background is not even rendered.
I've also saved the page in case it expires before we get to the bottom of this issue (https://goo.gl/Q91Xn3).
Status: UNCONFIRMED → NEW
status-firefox59:
--- → affected
status-firefox60:
--- → affected
status-firefox61:
--- → affected
Component: Untriaged → Graphics
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Summary: Odd lines on page only in Firefox Humble Book Bundle → Black lines on the background image of Humble Book Bundle page (only in Firefox)
Comment 2•8 years ago
|
||
Looks like a bug in invalidation (works fine in webrender)
Component: Graphics → Layout: Web Painting
Seems like it's happening on all the Humble Bundle bundle pages.
Updated•8 years ago
|
Priority: -- → P2
Comment 4•8 years ago
|
||
Somewhat reduced testcase.
The bug is in this code: https://searchfox.org/mozilla-central/source/gfx/layers/client/ClientTiledPaintedLayer.cpp#489
We determine that compositing this layer will not be 1:1, and we'll be triggering bilinear resampling of the source texture. In order to prevent reading from uninitialized pixels directly outside the visible region, we ask content to paint content 1 pixel bigger than we otherwise need (snapped to tile boundaries) so that all pixels we might sample from contain valid content.
We also mark that larger area as now containing valid content.
Unfortunately, even though we asked for the bigger area, we don't actually get it always, since nsDisplayImage clamps its drawing to the area that it was created with. So we think we've drawn a bit more of the images than we need, but we didn't.
When the images move up, we figure out the area to be repainted (which doesn't include the strip that we think had the extra images, but actually doesn't), and we leave a strip unpainted.
The best fix might be to move this logic much further back up the pipeline, into display list building, so that we get the area set on the items.
It's not super important though (this is just to minimize resampling artifacts), so I think we can just make the valid region of the texture contain only the pixels that we *know* are painted properly.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•