Set the tab label to the URL if no title is provided in the HTML.

Fixes #6330.

And so I'm back on Web+ development. Yay.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@549 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
leavengood
2012-07-03 15:45:30 +02:00
committed by Alexandre Deckner
parent 26bc163200
commit 8c15e23385
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -1246,6 +1246,10 @@ BrowserWindow::LoadFinished(const BString& url, BWebView* view)
NavigationCapabilitiesChanged(fBackButton->IsEnabled(),
fForwardButton->IsEnabled(), false, view);
int32 tabIndex = fTabManager->TabForView(view);
if (tabIndex > 0 && strcmp("New tab", fTabManager->TabLabel(tabIndex)) == 0)
fTabManager->SetTabLabel(tabIndex, url);
}