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 : 24feb46363b5e43f35b51614d9dc6ae20ae49b65 extra : amend_source : 3c2051b98f19dc3288c59b0028db7d33c6953be3 extra : intermediate-source : 8404cc6140177a40c7086ddd4bf5d84735681048 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 | ||