Bug 264102 Chrome should use document.title instead of window.title - mail fixes

p=me r=mscott
This commit is contained in:
bugzilla%arlen.demon.co.uk 2004-10-26 22:04:49 +00:00
parent b19247e2e4
commit a3b05ed4a5
4 changed files with 6 additions and 15 deletions

View File

@ -147,7 +147,7 @@ function setTitleFromFolder(msgfolder, subject)
#ifndef XP_MACOSX
title += " - " + gBrandBundle.getString("brandShortName");
#endif
window.title = title;
document.title = title;
}
function UpdateMailToolbar(caller)

View File

@ -10,10 +10,7 @@ function abNameOnLoad()
if ("arguments" in window && window.arguments[0])
{
if ("title" in window.arguments[0])
{
var title = window.arguments[0].title;
top.window.title = title;
}
document.title = window.arguments[0].title;
if ("okCallback" in window.arguments[0])
top.okCallback = window.arguments[0].okCallback;

View File

@ -514,7 +514,6 @@ function CleanUpWebPage(webPage)
return(webPage);
}
function NewCardCancelButton()
{
top.window.close();
@ -561,12 +560,7 @@ function DisplayNameChanged()
SetCardDialogTitle(displayName);
}
function SetCardDialogTitle(displayName)
{
top.window.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty);
document.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty);
}

View File

@ -2156,7 +2156,7 @@ function SetComposeWindowTitle()
newTitle = sComposeMsgsBundle.getString("defaultSubject");
newTitle += GetCharsetUIString();
window.title = sComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
document.title = sComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
}
// Check for changes to document and allow saving before closing