backing out bug 169826 (Port patch from bug 164006 to Firefox (wyciwyg: in tab titles)) as it caused bug 297037 / 297047

This commit is contained in:
mozilla.mano%sent.com 2007-08-22 05:03:28 +00:00
Родитель 2b1d9729a7
Коммит 8136e98b25
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -621,6 +621,8 @@
// Update the URL bar. // Update the URL bar.
var loc = this.mCurrentBrowser.currentURI; var loc = this.mCurrentBrowser.currentURI;
if (!loc)
loc = ({ spec: "" });
var webProgress = this.mCurrentBrowser.webProgress; var webProgress = this.mCurrentBrowser.webProgress;
var securityUI = this.mCurrentBrowser.securityUI; var securityUI = this.mCurrentBrowser.securityUI;
@ -850,7 +852,7 @@
<![CDATA[ <![CDATA[
var browser = this.getBrowserForTab(aTab); var browser = this.getBrowserForTab(aTab);
var crop = "end"; var crop = "end";
var title = browser.contentTitle; var title = browser.contentDocument.title;
if (!title) { if (!title) {
if (browser.currentURI.spec) { if (browser.currentURI.spec) {