Don't try to load a blank URL for a new page.

Fixes #6430.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@550 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
leavengood 2010-12-12 07:59:57 +00:00 committed by Alexandre Deckner
parent 8c15e23385
commit f0db6a3bb1

View File

@ -358,9 +358,10 @@ BrowserApp::_CreateNewPage(const BString& url, bool fullscreen)
continue;
if (webWindow->Lock()) {
if (webWindow->Workspaces() & workspace) {
if (webWindow->IsBlankTab())
webWindow->CurrentWebView()->LoadURL(url);
else
if (webWindow->IsBlankTab()) {
if (url.Length() != 0)
webWindow->CurrentWebView()->LoadURL(url);
} else
webWindow->CreateNewTab(url, true);
webWindow->Activate();
webWindow->CurrentWebView()->MakeFocus(true);