[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs