From f0db6a3bb1b6908454fc8dd2e02867f65b885926 Mon Sep 17 00:00:00 2001 From: leavengood Date: Sun, 12 Dec 2010 07:59:57 +0000 Subject: [PATCH] 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 --- src/apps/webpositive/BrowserApp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/webpositive/BrowserApp.cpp b/src/apps/webpositive/BrowserApp.cpp index 2782892c3f..653516f526 100644 --- a/src/apps/webpositive/BrowserApp.cpp +++ b/src/apps/webpositive/BrowserApp.cpp @@ -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);