Bug 101149 - previous window title sticks when accessing xul dir listings

patch by jrgm@netscape.com, r=bbaetz, sr=darin
This commit is contained in:
bbaetz%cs.mcgill.ca 2006-07-27 14:54:28 +00:00
parent b7019b4dc5
commit 306aa89a91

View File

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