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; } }