From 7dfb7b150539113b224a76885680d696bf60253a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sun, 13 Mar 2016 16:46:52 -0300 Subject: Initial import --- ...-instead-of-MOZ_APP_NAME-for-profile-rese.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch (limited to 'patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch') diff --git a/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch b/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch new file mode 100644 index 0000000..ef31c80 --- /dev/null +++ b/patches/iceweasel-branding/Use-firefox-instead-of-MOZ_APP_NAME-for-profile-rese.patch @@ -0,0 +1,35 @@ +From: Mike Hommey +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); + } -- cgit v1.2.2