diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-21 22:29:03 -0400 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-21 22:29:03 -0400 |
commit | 9d7b1ff44cefc1d59db5560786bb3dc72a4cf7a8 (patch) | |
tree | d949956d800c52bb8c99f39981f2a4e73bdcc919 /src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch | |
parent | 051f42bcdc9a6d91d3052456189d6491d0867ff1 (diff) |
mkdir src && git mv branding license.txt patches src
Diffstat (limited to 'src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch')
-rw-r--r-- | src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch b/src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch new file mode 100644 index 0000000..ef31c80 --- /dev/null +++ b/src/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch @@ -0,0 +1,35 @@ +From: Mike Hommey <mh@glandium.org> +Date: Sun, 11 May 2014 15:08:37 +0900 +Subject: Use "firefox" instead of MOZ_APP_NAME for profile reset + +--- + toolkit/modules/ResetProfile.jsm | 2 +- + toolkit/xre/nsAppRunner.cpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/toolkit/modules/ResetProfile.jsm b/toolkit/modules/ResetProfile.jsm +index 52c35c7..af2c0cf 100644 +--- a/toolkit/modules/ResetProfile.jsm ++++ b/toolkit/modules/ResetProfile.jsm +@@ -11,7 +11,7 @@ const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; + Cu.import("resource://gre/modules/Services.jsm"); + Cu.import("resource://gre/modules/AppConstants.jsm"); + +-const MOZ_APP_NAME = AppConstants.MOZ_APP_NAME; ++const MOZ_APP_NAME = "firefox"; + const MOZ_BUILD_APP = AppConstants.MOZ_BUILD_APP; + + this.ResetProfile = { +diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp +index fe63faa..66ca008 100644 +--- a/toolkit/xre/nsAppRunner.cpp ++++ b/toolkit/xre/nsAppRunner.cpp +@@ -4132,7 +4132,7 @@ XREMain::XRE_mainRun() + if (gDoProfileReset) { + // Automatically migrate from the current application if we just + // reset the profile. +- aKey = MOZ_APP_NAME; ++ aKey = "firefox"; + } + pm->Migrate(&mDirProvider, aKey); + } |