[tor-bugs] #2872 [Tor Browser]: Limit the fonts available in TorBrowser

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Aug 24 01:00:00 UTC 2011


#2872: Limit the fonts available in TorBrowser
-------------------------+--------------------------------------------------
 Reporter:  mikeperry    |          Owner:  mikeperry
     Type:  enhancement  |         Status:  new      
 Priority:  normal       |      Milestone:           
Component:  Tor Browser  |        Version:           
 Keywords:               |         Parent:  #2871    
   Points:  16           |   Actualpoints:           
-------------------------+--------------------------------------------------

Comment(by mikeperry):

 Looks like use_document_fonts only has an effect in
 nsRuleNode::ComputeFontData(), which also has access to the nsPresContext.

 It looks like we might be able to add a call to nsPresContext to ask it if
 it has seen 'font' before, and what the current font count is. If the font
 count is too high, it could ComputeFontDate() could just take the codepath
 that the use_document_fonts=false takes.

 I wonder what effect this would have on remote fonts.. We currently block
 those with NoScript, though, so that is probably irrelevant.

 The other question is, what do we want to count? Just font-families? Or
 (font-family,font-style,font-size) tuples?

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2872#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list