diff options
Diffstat (limited to 'WebKit/wx')
-rw-r--r-- | WebKit/wx/ChangeLog | 10 | ||||
-rw-r--r-- | WebKit/wx/WebView.cpp | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/WebKit/wx/ChangeLog b/WebKit/wx/ChangeLog index 4f09956..51da133 100644 --- a/WebKit/wx/ChangeLog +++ b/WebKit/wx/ChangeLog @@ -1,3 +1,13 @@ +2010-05-11 Kevin Watters <kevinwatters@gmail.com> + + Reviewed by Kevin Ollivier. + + Load a blank page on creation to initialize WebCore objects properly. + https://bugs.webkit.org/show_bug.cgi?id=38932 + + * WebView.cpp: + (wxWebView::Create): + 2010-05-03 Kevin Watters <kevinwatters@gmail.com> Reviewed by Kevin Ollivier. 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)); |