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:
parent
8c15e23385
commit
f0db6a3bb1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user