Open Bug 1932976 Opened 1 year ago Updated 20 hours ago

Investigate using App Group Containers for profile data

Categories

(Core :: Widget: Cocoa, task, P3)

task

Tracking

()

ASSIGNED

People

(Reporter: haik, Assigned: nishu, NeedInfo)

References

Details

Attachments

(1 file, 1 obsolete file)

Investigate use of App Group Containers to store Firefox profile data. This would improve the local security of Firefox profile data by requiring the user to approve any read or write of profile data by other applications.

See the macOS 15 release notes:
https://developer.apple.com/documentation/macos-release-notes/macos-15-release-notes#System-Integrity-Protection

WWDC 24 description:
https://developer.apple.com/videos/play/wwdc2024/10123/?time=743

containerURLForSecurityApplicationGroupIdentifier API:
https://developer.apple.com/documentation/foundation/nsfilemanager/1412643-containerurlforsecurityapplicati?language=objc

This needs some more investigation, but since the location of profiles.ini would not have to change and we already support profiles at arbitrary locations in the filesystem, it could be that tools or other applications that read the profiles would not need to be updated for the new location.

The change could be done in multiple phases. At first, only new profiles are placed in the new location. Migrating existing profiles would be an optional second step.

There would be some risk to using the literal container path in profiles.ini if the path returned from containerURLForSecurityApplicationGroupIdentifier ever were to change. In that case, an OS upgrade would likely end up moving the data resulting in the path in profiles.ini no longer referring to the profile. That could be accounted for in code.

Per the docs,

Note
Always use the URL returned by this method to locate the group
directory rather than manually constructing a URL with an explicit path.
The exact location of the directory in the file system might change in
future releases of macOS, but this method will always return the correct URL.
See Also: → 1943665
Duplicate of this bug: 1943665
See Also: 1943665
Depends on: 1960091
Severity: -- → S3
Priority: -- → P3
Attachment #9493012 - Attachment is obsolete: true
Assignee: nobody → nsheth
Attachment #9493030 - Attachment description: WIP: Bug 1932976 - Add support for storing profiles in macOS App Group container → Bug 1932976 - Add support for storing profiles in macOS App Group container
Status: NEW → ASSIGNED
Attachment #9493030 - Attachment description: Bug 1932976 - Add support for storing profiles in macOS App Group container → WIP: Bug 1932976 - Add support for storing profiles in macOS App Group container
Attachment #9493030 - Attachment description: WIP: Bug 1932976 - Add support for storing profiles in macOS App Group container → Bug 1932976 - Add support for storing profiles in macOS App Group container
See Also: → 2000826
Attachment #9493030 - Attachment description: Bug 1932976 - Add support for storing profiles in macOS App Group container → WIP: Bug 1932976 - Add support for storing profiles in macOS App Group container
Attachment #9493030 - Attachment description: WIP: Bug 1932976 - Add support for storing profiles in macOS App Group container → Bug 1932976 - Add support for storing profiles in macOS App Group container
Pushed by nsheth@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9aab08a4fa6e https://hg.mozilla.org/integration/autoland/rev/524a7cb7683b Add support for storing profiles in macOS App Group container r=profiles-reviewers,mossop
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0b0d16fe5f45 https://hg.mozilla.org/integration/autoland/rev/4e6fbaf1d1fd Revert "Bug 1932976 - Add support for storing profiles in macOS App Group container r=profiles-reviewers,mossop" for causing lint failures
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: