[macOS 27] Warn `./mach run` users about new Firefox directory protections
Categories
(Firefox Build System :: General, enhancement)
Tracking
(firefox158 fixed)
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: haik, Assigned: haik)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 external file)
|
238.43 KB,
image/png
|
Details |
In macOS 27, ~/Library/Application Support/Firefox has new access protections preventing unsigned or non-Mozilla-signed applications from reading/writing to the directory.
A local build launched with ./mach run will be prevented from launching due to not being able to read ~/Library/Application Support/Firefox. This bug is filed to warn users about this when they run ./mach run and the directory can't be accessed.
To workaround this problem:
- Grant Terminal access to Firefox data in macOS Privacy & Security -> Files and Folder system settings
Other workarounds that avoid giving Terminal access to the profile directory (for improved security for developers against rogue scripts/commands):
-
Use the -a/--appdata argument:
./mach run -a -
Set MOZ_APP_DATA and MOZ_LOCAL_APP_DATA environment variables. For example
MOZ_LOCAL_APP_DATA=~/Library/Caches/FirefoxDevData MOZ_APP_DATA=~/Library/Application\ Support/FirefoxDevData ./mach run -
Use signed builds (dependent on a fix for bug 1883815)
See bug 2069536 and bug 1977540 for future work to default to unofficial app data directories for all ./mach {test,run,mozregression,...} launches.
| Assignee | ||
Comment 1•3 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 3•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 4•2 months ago
|
||
Adding a screenshot showing how to grant Terminal access to Firefox data in macOS Privacy & Security -> Files and Folder system settings.
| Assignee | ||
Updated•2 months ago
|
Description
•