Closed Bug 894957 Opened 11 years ago Closed 11 years ago

Don't attempt to draw transparent text

Categories

(Core :: Graphics: Text, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: mstange, Assigned: mstange)

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch patchSplinter Review
PDF.js creates a layer of transparent text on top of its canvas for selection and copying. During scrolling, sometimes the whole page is invalidated and all the text on it is "repainted". For pages with a lot of text, the gfxTextRun::Draw part of this repaint takes long enough to cause noticeable jank on its own.
Attachment #777160 - Flags: review?(roc)
Hmm wait. Does this create a timing channel attack against link-visited, by using CSS rules that make text invisible if a link is visited? I think it might :-(.

Maybe we can block this at a higher level where we can check for that?
Oh, no, it's not a problem, because we require that color changes due to visited rules don't change alpha values. Never mind.
https://hg.mozilla.org/mozilla-central/rev/ba041d0f69b3
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: