bug 282955 (back as bug 312426) locationbar-less mac window needs titleseparator r=neil.parkwaycc,sr=bzbarsky,a=mscott
git-svn-id: svn://10.0.0.236/trunk@182283 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user