From 6eb4db78732fe7332b5bd45d843aceb10d71fa5b Mon Sep 17 00:00:00 2001 From: "bbaetz%cs.mcgill.ca" Date: Thu, 6 Dec 2001 01:53:07 +0000 Subject: [PATCH] Bug 101149 - previous window title sticks when accessing xul dir listings patch by jrgm@netscape.com, r=bbaetz, sr=darin --- xpfe/browser/resources/content/fastnav.js | 1 - xpfe/browser/resources/content/navigator.js | 1 - xpfe/components/directory/directory.js | 10 ++-------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/xpfe/browser/resources/content/fastnav.js b/xpfe/browser/resources/content/fastnav.js index 04ce3490d78..b3e9547116c 100644 --- a/xpfe/browser/resources/content/fastnav.js +++ b/xpfe/browser/resources/content/fastnav.js @@ -1160,7 +1160,6 @@ function checkForDirectoryListing() if ( "HTTPIndex" in _content && _content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) { _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; - _content.parentWindow = window; } } diff --git a/xpfe/browser/resources/content/navigator.js b/xpfe/browser/resources/content/navigator.js index 5e596021e22..c7d07cdf59f 100644 --- a/xpfe/browser/resources/content/navigator.js +++ b/xpfe/browser/resources/content/navigator.js @@ -1200,7 +1200,6 @@ function checkForDirectoryListing() if ( "HTTPIndex" in _content && _content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) { _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; - _content.parentWindow = window; } } diff --git a/xpfe/components/directory/directory.js b/xpfe/components/directory/directory.js index 4ae52cacd44..14784dd2f5c 100644 --- a/xpfe/components/directory/directory.js +++ b/xpfe/components/directory/directory.js @@ -223,11 +223,7 @@ function Init() } // set window title - var theWindow = window._content.parentWindow; - if (theWindow) - { - theWindow.title = baseURI; - } + document.title = baseURI; tree.database.AddObserver(RDF_observer); debug("Directory: added observer\n"); @@ -263,9 +259,7 @@ function OnClick(event, node) window._content.location.href = url; // set window title - var theWindow = window._content.parentWindow; - if (theWindow) - theWindow.title = url; + document.title = url; } }