From 38a086c313976f3fb92890f142e3bd8d00df4b62 Mon Sep 17 00:00:00 2001 From: "mconnor%steelgryphon.com" Date: Tue, 22 Nov 2005 17:13:58 +0000 Subject: [PATCH] bug 315863 - BeOS Firefox crashes on 1st run with no existing profile, patch by doug@sheltonfamily.org, r=fyysik moa=me --- .../components/migration/src/nsPhoenixProfileMigrator.cpp | 5 +++++ .../components/migration/src/nsSeamonkeyProfileMigrator.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/browser/components/migration/src/nsPhoenixProfileMigrator.cpp b/browser/components/migration/src/nsPhoenixProfileMigrator.cpp index 34ca2e0a7a5b..ed854f06aaab 100644 --- a/browser/components/migration/src/nsPhoenixProfileMigrator.cpp +++ b/browser/components/migration/src/nsPhoenixProfileMigrator.cpp @@ -291,6 +291,11 @@ nsPhoenixProfileMigrator::FillProfileDataFromPhoenixRegistry() phoenixRegistry->Append(NS_LITERAL_STRING(".phoenix")); phoenixRegistry->Append(NS_LITERAL_STRING("appreg")); +#elif defined(XP_BEOS) + fileLocator->Get(NS_BEOS_SETTINGS_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(phoenixRegistry)); + + phoenixRegistry->Append(NS_LITERAL_STRING("Phoenix")); + phoenixRegistry->Append(NS_LITERAL_STRING("appreg")); #elif defined(XP_OS2) fileLocator->Get(NS_OS2_HOME_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(phoenixRegistry)); diff --git a/browser/components/migration/src/nsSeamonkeyProfileMigrator.cpp b/browser/components/migration/src/nsSeamonkeyProfileMigrator.cpp index 696c5c923531..b382f1c7c495 100644 --- a/browser/components/migration/src/nsSeamonkeyProfileMigrator.cpp +++ b/browser/components/migration/src/nsSeamonkeyProfileMigrator.cpp @@ -313,6 +313,11 @@ nsSeamonkeyProfileMigrator::FillProfileDataFromSeamonkeyRegistry() seamonkeyRegistry->Append(NS_LITERAL_STRING(".mozilla")); seamonkeyRegistry->Append(NS_LITERAL_STRING("appreg")); +#elif defined(XP_BEOS) + fileLocator->Get(NS_BEOS_SETTINGS_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(seamonkeyRegistry)); + + seamonkeyRegistry->Append(NS_LITERAL_STRING("Mozilla")); + seamonkeyRegistry->Append(NS_LITERAL_STRING("appreg")); #elif defined(XP_OS2) fileLocator->Get(NS_OS2_HOME_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(seamonkeyRegistry));