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:
committed by
Alexandre Deckner
parent
26bc163200
commit
8c15e23385
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user