git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68115
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
case DISPID_DOCUMENTCOMPLETE:
{
case DISPID_DOCUMENTCOMPLETE:
{
+ //Only send a complete even if we are actually finished, this brings
+ //the event in to line with webkit
+ READYSTATE rs;
+ m_webBrowser->get_ReadyState( &rs );
+ if(rs != READYSTATE_COMPLETE)
+ break;
+
wxString url = evt[1].GetString();
// TODO: set target parameter if possible
wxString target = wxEmptyString;
wxString url = evt[1].GetString();
// TODO: set target parameter if possible
wxString target = wxEmptyString;