mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 264102 Chrome should use document.title instead of window.title - mail fixes
p=me r=mscott
This commit is contained in:
parent
b19247e2e4
commit
a3b05ed4a5
@ -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)
|
||||
|
@ -9,12 +9,9 @@ function abNameOnLoad()
|
||||
// look in arguments[0] for parameters
|
||||
if ("arguments" in window && window.arguments[0])
|
||||
{
|
||||
if ("title" in window.arguments[0])
|
||||
{
|
||||
var title = window.arguments[0].title;
|
||||
top.window.title = title;
|
||||
}
|
||||
|
||||
if ("title" in window.arguments[0])
|
||||
document.title = window.arguments[0].title;
|
||||
|
||||
if ("okCallback" in window.arguments[0])
|
||||
top.okCallback = window.arguments[0].okCallback;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user