diff --git a/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp b/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp index fd9b6f9a2ae..8b5e8661b7d 100644 --- a/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp +++ b/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp @@ -599,7 +599,8 @@ NS_IMETHODIMP nsContentTreeOwner::SetTitle(const PRUnichar* aTitle) title = docTitle; } - title += mTitleSeparator + mWindowTitleModifier; + if (!mWindowTitleModifier.IsEmpty()) + title += mTitleSeparator + mWindowTitleModifier; } else title.Assign(mWindowTitleModifier); // Title will just be plain "Mozilla" @@ -697,9 +698,8 @@ void nsContentTreeOwner::XULWindow(nsXULWindow* aXULWindow) mTitleDefault = mWindowTitleModifier; mWindowTitleModifier.Truncate(); } -#else - docShellElement->GetAttribute(NS_LITERAL_STRING("titlemenuseparator"), mTitleSeparator); #endif + docShellElement->GetAttribute(NS_LITERAL_STRING("titlemenuseparator"), mTitleSeparator); } } else