зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
dcc400c229
Коммит
ecc53874c1
|
@ -384,7 +384,7 @@
|
||||||
var newTitle = "";
|
var newTitle = "";
|
||||||
var docTitle;
|
var docTitle;
|
||||||
if (this.docShell.contentViewer)
|
if (this.docShell.contentViewer)
|
||||||
docTitle = this.contentDocument.title;
|
docTitle = this.contentTitle;
|
||||||
|
|
||||||
if (!docTitle)
|
if (!docTitle)
|
||||||
docTitle = this.ownerDocument.documentElement.getAttribute("titledefault");
|
docTitle = this.ownerDocument.documentElement.getAttribute("titledefault");
|
||||||
|
@ -1342,6 +1342,10 @@
|
||||||
onget="return this.mCurrentBrowser.contentDocument;"
|
onget="return this.mCurrentBrowser.contentDocument;"
|
||||||
readonly="true"/>
|
readonly="true"/>
|
||||||
|
|
||||||
|
<property name="contentTitle"
|
||||||
|
onget="return this.mCurrentBrowser.contentTitle;"
|
||||||
|
readonly="true"/>
|
||||||
|
|
||||||
<property name="securityUI"
|
<property name="securityUI"
|
||||||
onget="return this.mCurrentBrowser.securityUI;"
|
onget="return this.mCurrentBrowser.securityUI;"
|
||||||
readonly="true"/>
|
readonly="true"/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче