Bug 9173: Change the default Firefox profile directory to be relative.
This commit makes Firefox look for the default profile directory in a directory relative to the binary path. The directory can be specified through the --with-relative-data-dir. This is relative to the same directory as the firefox main binary for Linux and Windows. On macOS, we remove Contents/MacOS from it. Or, in other words, the directory is relative to the application bundle. This behavior can be overriden at runtime, by placing a file called system-install adjacent to the firefox main binary (also on macOS).
Showing
- browser/config/mozconfigs/base-browser 2 additions, 0 deletionsbrowser/config/mozconfigs/base-browser
- moz.configure 19 additions, 0 deletionsmoz.configure
- mozconfig-macos 3 additions, 0 deletionsmozconfig-macos
- toolkit/xre/nsAppRunner.cpp 11 additions, 5 deletionstoolkit/xre/nsAppRunner.cpp
- toolkit/xre/nsXREDirProvider.cpp 115 additions, 0 deletionstoolkit/xre/nsXREDirProvider.cpp
- toolkit/xre/nsXREDirProvider.h 8 additions, 0 deletionstoolkit/xre/nsXREDirProvider.h
- xpcom/io/nsAppFileLocationProvider.cpp 113 additions, 7 deletionsxpcom/io/nsAppFileLocationProvider.cpp
Loading
Please register or sign in to comment