[tor-bugs] #8987 [Tor bundles/installation]: OS X Saved Application State contains some TBB website window titles

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jun 6 05:54:01 UTC 2013


#8987: OS X Saved Application State contains some TBB website window titles
--------------------------------------+-------------------------------------
 Reporter:  runa                      |          Owner:  erinn
     Type:  defect                    |         Status:  new  
 Priority:  major                     |      Milestone:       
Component:  Tor bundles/installation  |        Version:       
 Keywords:  tbb-disk-leak             |         Parent:       
   Points:                            |   Actualpoints:       
--------------------------------------+-------------------------------------

Comment(by freshwaterstrawberry):

 One possible API to use is on every new NSWindow, call [NSWindow
 !setRestorable:NO]
 ([http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/setRestorable:
 http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/setRestorable:])

 This does leave some traces in the org.mozilla.torbrowser.savedState
 directory, which consists of state for the menu bar and the application
 itself. I do not believe it discloses browsing history:

         <dict>
                 <key>MenuBar AvailableSpace</key>
                 <real>820.000000</real>
                 <key>NSWindowID</key>
                 <integer>3</integer>
                 <key>MenuBar FilterInfo</key>
                 <true/>
                 <key>NSDataKey</key>
                 <data>
                 WIon7D4Kf0Bnb4TF3gcVNA==
                 </data>
                 <key>NSWindowNumber</key>
                 <integer>7475</integer>
                 <key>NSIsMainMenuBar</key>
                 <true/>
         </dict>
         <dict>
                 <key>NSExecutableInode</key>
                 <integer>166132974</integer>
                 <key>NSIsGlobal</key>
                 <true/>
                 <key>NSWindowZOrder</key>
                 <array>
                         <integer>7474</integer>
                 </array>
                 <key>NSDataKey</key>
                 <data>
                 B/I+k5bxzOzGoBptmv4ZaQ==
                 </data>
                 <key>CFBundleVersion</key>
                 <string>1713.5.11</string>
                 <key>NSWindowID</key>
                 <integer>4294967295</integer>
         </dict>

 I could not figure out how to get rid of that state using any Apple API,
 documented or undocumented (as of 10.8.3). It appears to be only possible
 using some hacks like method swizzling.

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


More information about the tor-bugs mailing list