diff --git a/xpfe/components/filepicker/res/content/filepicker.js b/xpfe/components/filepicker/res/content/filepicker.js index 062a3b99b5a8..c59406725b1c 100644 --- a/xpfe/components/filepicker/res/content/filepicker.js +++ b/xpfe/components/filepicker/res/content/filepicker.js @@ -89,7 +89,7 @@ function filepickerLoad() { const filterTypes = o.filters.types; const numFilters = filterTitles.length; - window.title = title; + document.title = title; if (initialText) { textInput.value = initialText; diff --git a/xpfe/global/resources/content/bindings/tabbrowser.xml b/xpfe/global/resources/content/bindings/tabbrowser.xml index e898787248c8..62df24b49a9f 100644 --- a/xpfe/global/resources/content/bindings/tabbrowser.xml +++ b/xpfe/global/resources/content/bindings/tabbrowser.xml @@ -474,7 +474,7 @@ newTitle += this.ownerDocument.documentElement.getAttribute("titlemenuseparator"); } newTitle += this.ownerDocument.documentElement.getAttribute("titlemodifier"); - window.title = newTitle; + this.ownerDocument.title = newTitle; ]]> diff --git a/xpfe/global/resources/content/commonDialog.js b/xpfe/global/resources/content/commonDialog.js index bec9dc8f7479..0f70ecd25d02 100644 --- a/xpfe/global/resources/content/commonDialog.js +++ b/xpfe/global/resources/content/commonDialog.js @@ -98,8 +98,8 @@ function setLabelForNode(aNode, aLabel, aIsLabelFlag) function commonDialogOnLoad() { - // set the window title - window.title = gCommonDialogParam.GetString(12); + // set the document title + document.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); diff --git a/xpfe/global/resources/content/selectDialog.js b/xpfe/global/resources/content/selectDialog.js index e55dd7d24038..836710985af7 100644 --- a/xpfe/global/resources/content/selectDialog.js +++ b/xpfe/global/resources/content/selectDialog.js @@ -75,11 +75,10 @@ function selectDialogOnLoad() { } } - var windowTitle = param.GetString( 0 ); - window.title = windowTitle; + document.title = param.GetString( 0 ); list = document.getElementById("list"); - numItems = param.GetInt( 2 ) + numItems = param.GetInt( 2 ); var i; for ( i = 2; i <= numItems+1; i++ ) {