Only send a document complete event when the page is completely loaded, as opposed to with every frame. This brings the event in to line with what is emitted by webkit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -500,6 +500,13 @@ void wxWebViewIE::onActiveXEvent(wxActiveXEvent& evt)
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user