зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c6d88b8422
Коммит
80ee6999bc
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче