bug(browser): Firefox import uses directory suffixes instead of profile names
The Firefox import picker uses the profile folder's suffix instead of its actual name. After a profile is renamed in Firefox, AO can show the old name and mark the wrong default state.
Repro
Use a profile registered in profiles.ini as:
[Profile0]
Name=Client Research
IsRelative=1
Path=abc123.Work
Default=1
Run import-source discovery. It returns name: "Work", default: false instead of Client Research and true.
The picker should use the registered name so users can identify the intended profile. discoverFirefoxProfiles currently guesses the name and default flag from the directory name rather than reading profiles.ini.
Test notes: Fedora 44, dd67f2d818. Reproduced with the production discovery code and a disposable profile containing a real SQLite database. The incorrect label was also confirmed in the app's import picker. No personal browser data was accessed.
Screenshots
The picker shows Work instead of the profile name Client Research.