[tor-bugs] #5073 [Torbutton]: torbutton breaks leechblock extension

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Feb 10 11:59:44 UTC 2012


#5073: torbutton breaks leechblock extension
-------------------------+--------------------------------------------------
 Reporter:  cypherpunks  |          Owner:  mikeperry
     Type:  defect       |         Status:  new      
 Priority:  minor        |      Milestone:           
Component:  Torbutton    |        Version:           
 Keywords:               |         Parent:           
   Points:               |   Actualpoints:           
-------------------------+--------------------------------------------------
 The leechblock extension < http://www.proginosko.com/leechblock.html > to
 Firefox allows the user block access to certain sites during certain times
 of the day, in order to reduce the temptation for time-wasting. It seems
 to interact badly with torbutton; it fails to enforce the blocking time
 periods correctly; blocking tends to start and end several hours
 early/late.

 I think the problem is that leechblock relies on the javascript Date
 object to report the current local time correctly; AFAICT torbutton wraps
 this and forces it to report GMT instead. Leechblock gets additionally
 confused as the local time reported by the Date object changes whenever
 torbutton is toggled.

 Is it possible for torbutton to wrap the Date object in such a way that it
 reports GMT as local time to javascript code running on web pages, and the
 correct local time to firefox extensions?

 Tested using Leechblock version 0.5.2, and the versions of Firefox and
 Torbutton packaged with Debian squeeze (i.e. a patched Firefox 3.5.16 and
 Torbutton 1.2.5)

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


More information about the tor-bugs mailing list