mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
3a3892d987
commit
d97bc68618
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -157,7 +157,7 @@ function setTitleFromFolder(msgfolder, subject)
|
||||
}
|
||||
}
|
||||
title += " - " + gBrandBundle.getString("brandShortName");
|
||||
window.title = title;
|
||||
document.title = title;
|
||||
}
|
||||
|
||||
function UpdateMailToolbar(caller)
|
||||
|
@ -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;
|
||||
|
@ -152,7 +152,7 @@ function setPPTitle(aTitle)
|
||||
}
|
||||
}
|
||||
} catch (e) {}
|
||||
window.title = title;
|
||||
document.title = title;
|
||||
}
|
||||
|
||||
function PrintPreview()
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user