summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/WebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/WebView.cpp')
-rw-r--r--WebKit/wx/WebView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/wx/WebView.cpp b/WebKit/wx/WebView.cpp
index cfa402f..2c5087c 100644
--- a/WebKit/wx/WebView.cpp
+++ b/WebKit/wx/WebView.cpp
@@ -352,6 +352,10 @@ bool wxWebView::Create(wxWindow* parent, int id, const wxPoint& position,
SetDatabasesEnabled(true);
#endif
+ // we need to do this so that objects like the focusController are properly
+ // initialized so that the activate handler is run properly.
+ LoadURL(wxT("about:blank"));
+
wxWindow* tlw = wxGetTopLevelParent(this);
tlw->Connect(-1, wxEVT_ACTIVATE, wxActivateEventHandler(wxWebView::OnTLWActivated));