forked from mirrors/gecko-dev
The current properties selectedProfile and defaultProfile are somewhat confusing selectedProfile actually returns the default profile for the build and defaultProfile returns the default profile for non-dev-edition builds. This confusion leads to callers doing the wrong thing in some places. What most code actually cares about is being able to set/get the default profile for this build and getting the current profile in use. So this patch replaces the previous properties with currentProfile and defaultProfile which do what makes more sense. This patch also switches from using the preprocessor to change behaviour for dev-edition builds to using a boolean flag since some code was incorrectly ignoring the setting to make dev-edition use the same profile as normal builds. In order to make currentProfile correct when resetting a profile I had to move CreateResetProfile into nsToolkitProfileService. Differential Revision: https://phabricator.services.mozilla.com/D16118 --HG-- extra : rebase_source : cefe252618cd3a1b0e0cd5a71b056dd2b557f1a3 extra : intermediate-source : 35af79575f54f75d22e213fdac7ddd704b40807a extra : source : 732d1ce192408d4f595f2fce16f45c7354ce3097 |
||
|---|---|---|
| .. | ||
| content | ||
| tests | ||
| .eslintrc.js | ||
| 360seProfileMigrator.js | ||
| BrowserProfileMigrators.manifest | ||
| ChromeMigrationUtils.jsm | ||
| ChromeProfileMigrator.js | ||
| EdgeProfileMigrator.js | ||
| ESEDBReader.jsm | ||
| FirefoxProfileMigrator.js | ||
| IEProfileMigrator.js | ||
| jar.mn | ||
| MigrationUtils.jsm | ||
| moz.build | ||
| MSMigrationUtils.jsm | ||
| nsIBrowserProfileMigrator.idl | ||
| nsIEHistoryEnumerator.cpp | ||
| nsIEHistoryEnumerator.h | ||
| nsWindowsMigrationUtils.h | ||
| ProfileMigrator.js | ||
| SafariProfileMigrator.js | ||