Created attachment 777160 [details] [diff] [review] patch 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.
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.