Switch load handlers to setting document.title (as per bug 126903 setting the title attribute no longer works) b=261267 r=jst sr=shaver

This commit is contained in:
neil%parkwaycc.co.uk 2006-07-27 14:58:28 +00:00
Родитель c6d88b8422
Коммит 80ee6999bc
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -71,7 +71,7 @@ function HistoryCommonInit()
// there and the window is not re-used for bookmarks.
var windowNode = document.getElementById("history-window");
windowNode.setAttribute("windowtype", "history:searchresults");
windowNode.setAttribute("title", gHistoryBundle.getString("search_results_title"));
document.title = gHistoryBundle.getString("search_results_title");
}
document.getElementById("groupingMenu").setAttribute("hidden", "true");

Просмотреть файл

@ -109,8 +109,7 @@ function Startup() {
element = document.getElementById("cookiesTab");
tabBox.selectedTab = element;
} else if (dialogType == imageType) {
element = document.getElementById("cookieviewer");
element.setAttribute("title", cookieBundle.getString("imageTitle"));
document.title = cookieBundle.getString("imageTitle");
element = document.getElementById("permissionsTab");
element.label = cookieBundle.getString("tabBannedImages");
@ -129,8 +128,7 @@ function Startup() {
element = document.getElementById("btnSession");
element.hidden = "true";
} else {
element = document.getElementById("cookieviewer");
element.setAttribute("title", cookieBundle.getString("popupTitle"));
document.title = cookieBundle.getString("popupTitle");
element = document.getElementById("permissionsTab");
element.label = cookieBundle.getString("tabBannedPopups");