215929 - window title incorrectly shows [Object HTMLImageElement] when switching tabs, bringing across some of caillon's code from xpfe/, r=mscott a=me

This commit is contained in:
ben%bengoodger.com 2004-09-29 00:36:32 +00:00
parent 687f021c54
commit 98088e0f0a

View File

@ -384,7 +384,7 @@
var newTitle = "";
var docTitle;
if (this.docShell.contentViewer)
docTitle = this.contentDocument.title;
docTitle = this.contentTitle;
if (!docTitle)
docTitle = this.ownerDocument.documentElement.getAttribute("titledefault");
@ -1342,6 +1342,10 @@
onget="return this.mCurrentBrowser.contentDocument;"
readonly="true"/>
<property name="contentTitle"
onget="return this.mCurrentBrowser.contentTitle;"
readonly="true"/>
<property name="securityUI"
onget="return this.mCurrentBrowser.securityUI;"
readonly="true"/>