Bug 264102 Chrome should use document.title instead of window.title - mailnews fixes (apart from sendProgress.js which will be in fix to bug 260217)

p=me r=neil.parkwaycc.co.uk sr=bienvenu
This commit is contained in:
bugzilla%arlen.demon.co.uk 2004-10-24 22:51:01 +00:00
parent 3a3892d987
commit d97bc68618
9 changed files with 12 additions and 15 deletions

View File

@ -55,7 +55,7 @@ function onLoad()
gProgressMeter = document.getElementById("replication.progress");
gReplicationBundle = document.getElementById("bundle_replication");
window.title = gReplicationBundle.getFormattedString("replicatingTitle", [dirName])
document.title = gReplicationBundle.getFormattedString("replicatingTitle", [dirName])
Replicate();
}

View File

@ -8,12 +8,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;

View File

@ -555,5 +555,5 @@ function DisplayNameChanged()
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

@ -52,8 +52,8 @@ function onLoad()
gAccount = window.arguments[0].account;
var accountName = window.arguments[0].accountName;
window.title = document.getElementById("bundle_prefs")
.getFormattedString("identity-list-title", [accountName]);
document.title = document.getElementById("bundle_prefs")
.getFormattedString("identity-list-title", [accountName]);
// extract the account from
refreshIdentityList();

View File

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

View File

@ -155,7 +155,7 @@ function folderPropsOnLoad()
// look in arguments[0] for parameters
if (window.arguments && window.arguments[0]) {
if ( window.arguments[0].title ) {
top.window.title = window.arguments[0].title;
document.title = window.arguments[0].title;
}
if ( window.arguments[0].okCallback ) {
top.okCallback = window.arguments[0].okCallback;

View File

@ -152,7 +152,7 @@ function setPPTitle(aTitle)
}
}
} catch (e) {}
window.title = title;
document.title = title;
}
function PrintPreview()

View File

@ -2116,7 +2116,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

View File

@ -67,7 +67,7 @@ function OnLoad()
var downloadHeadersTitlePrefix = gNewsBundle.getString("downloadHeadersTitlePrefix");
var okButtonText = gNewsBundle.getString("okButtonText");
window.title = downloadHeadersTitlePrefix;
document.title = downloadHeadersTitlePrefix;
var infotext = gNewsBundle.getFormattedString("downloadHeadersInfoText", [args.articleCount]);
setText('info', infotext);