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

[tor-bugs] #16236 [Tor Browser]: Windows updater: avoid writing to the Windows registry for "in use" files



#16236: Windows updater: avoid writing to the Windows registry for "in use" files
---------------------------+---------------------
 Reporter:  mcs            |          Owner:  mcs
     Type:  defect         |         Status:  new
 Priority:  normal         |      Milestone:
Component:  Tor Browser    |        Version:
 Keywords:  tbb-5.0-alpha  |  Actual Points:
Parent ID:                 |         Points:
---------------------------+---------------------
 This is a spinoff from ticket #16014.

 On Windows, when the Mozilla updater encounters a file that is in use
 (which means it cannot be deleted), it moves the file to a "tobedeleted"
 directory and then uses a call like the following to arrange for it to be
 deleted the next time Windows is restarted:

   MoveFileEx(path, nullptr, MOVEFILE_DELAY_UNTIL_REBOOT);

 This works fine, but it would be better to avoid writing to the registry.
 We could fix this by adding code to nsUpdateService.js to make a "best
 effort" attempt to delete all files in the "tobedeleted" directory each
 time the browser is restarted.

 Let's consider doing this for Tor Browser 5.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16236>
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