Skip spurious blank JavaScript events in wxWebView.

Closes #13481

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton 2011-11-08 13:34:40 +00:00
parent f9a786f870
commit e11b9a6be4

View File

@ -765,8 +765,17 @@ void wxWebViewIE::onActiveXEvent(wxActiveXEvent& evt)
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
GetId(), url, target);
event.SetEventObject(this);
HandleWindowEvent(event);
//skip empty javascript events.
if(url == "javascript:\"\"" && target.IsEmpty())
{
event.Veto();
}
else
{
event.SetEventObject(this);
HandleWindowEvent(event);
}
if (!event.IsAllowed())
{