зеркало из https://github.com/mozilla/gecko-dev.git
6403c58cd7
Originally we stored the new information about installation defaults in installs.ini since older versions of Firefox would throw away any new data in profiles.ini any time they made changes to the profiles. That does however mean we have to load two files on startup. This changes things so that we save all the data in profiles.ini as well as a version tag and still save the install data into installs.ini. An older version will throw away the install data and version tag from profiles.ini but leave installs.ini alone. On startup if the version tag is gone from profiles.ini then we reload the install data from installs.ini and put it back into profiles.ini. At some point in the future where we don't care about supporting older versions of Firefox we can just drop installs.ini entirely. A lot of the changes here involve moving to loading profiles.ini into an in-memory ini, keeping it up to date and flushing it to disk. This means that we no longer throw away any information in the ini file that this version does not understand allowing the possibility of adding new data to this file in the future. Differential Revision: https://phabricator.services.mozilla.com/D22576 --HG-- extra : rebase_source : d00edf1ceb200a73a60bb1a90afabcdf95b01acf extra : intermediate-source : e1c9790cd3bee060da99ffe37026721e36bc46c3 extra : source : d4feb17faf013134f5eac8b5e19b714c56410973 |
||
---|---|---|
.. | ||
content | ||
gtest | ||
test | ||
xpcshell | ||
ProfileUnlockerWin.cpp | ||
ProfileUnlockerWin.h | ||
jar.mn | ||
moz.build | ||
notifications.txt | ||
nsIProfileMigrator.idl | ||
nsIProfileUnlocker.idl | ||
nsIToolkitProfile.idl | ||
nsIToolkitProfileService.idl | ||
nsProfileLock.cpp | ||
nsProfileLock.h | ||
nsToolkitProfileService.cpp | ||
nsToolkitProfileService.h |