Closed Bug 1458177 Opened 6 years ago Closed 6 years ago

text shadow misbehaves with webrender async scene building

Categories

(Core :: Graphics: WebRender, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox60 --- unaffected
firefox61 --- disabled
firefox62 --- disabled

People

(Reporter: yamadat501, Assigned: Gankra)

References

Details

Attachments

(1 file)

STR
1. set gfx.webrender.all true
2. Open http://nihon.syoukoukai.com/modules/stories/index.php?lid=1265
3. Scroll the page or select some text.

Expected results
text with shadow displays normally.

Actual results
text shadow is different from original text. 

When gfx.webrender.all is false and gfx.webrender.enabled is true, the problem doesn't happen (As far as I tested)
I can repro this on macOS as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I can repro this on windows and linux as well.
str: 

data:text/html,<div style="width: 400px;text-shadow: 1px 1px 1px grey;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building

literally just a multi-line text-shadow. analyzing now.
I was able to reproduce this in a capture, but the scene.ron looks fine. Converting that scene to a reftest produces something that doesn't reproduce the issue. In addition pressing keys to adjust the zoom level fixes the issue. It looks like we might be corrupting the resource or gpu caches?

kvark found it suspicious that the font entry had a different font_key from its own key: 

font_instances: {
  ..
  ((3), 57): (
    font_key: ((3), 56),
    ..
  )
}

font_templates: {
  ..
  ((3), 56): Native,
}
huh: on linux i'm seeing the color of the shadow being ignored for cache lookup when i turn on asyn-scene-building.

So if you open:

data:text/html,<div style="width: 400px;text-shadow: 1px 1px 2px black;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building

and then (identical except for shadow color):

data:text/html,<div style="width: 400px;text-shadow: 1px 1px 2px white;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building

the white shadow will appear black, as it will seemingly find the old black shadow from the other tab in the shadow(?) cache
Confirmed fixed on try-build in Bug 1466549.
Assignee: nobody → a.beingessner
No longer blocks: 1459052
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: