mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
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:
parent
b7019b4dc5
commit
306aa89a91
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user