Closed
Bug 894957
Opened 11 years ago
Closed 11 years ago
Don't attempt to draw transparent text
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: mstange, Assigned: mstange)
Details
(Keywords: perf)
Attachments
(1 file)
1.59 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter 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)
Attachment #777160 -
Flags: review?(roc) → review+
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.
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba041d0f69b3
Comment 4•11 years ago
|
||
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.
Description
•