Filter out subframes from the ie backend history and the sample. Also document that many wxEVT_COMMAND_WEB_VIEW_LOADED events may be sent, one for each frame.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-04 18:27:14 +00:00
parent c36818c8e3
commit 113e0a926f
3 changed files with 11 additions and 5 deletions

View File

@@ -461,7 +461,9 @@ void WebFrame::OnNavigationComplete(wxWebNavigationEvent& evt)
*/
void WebFrame::OnDocumentLoaded(wxWebNavigationEvent& evt)
{
wxLogMessage("%s", "Document loaded; url='" + evt.GetHref() + "'");
//Only notify if the document is the main frame, not a subframe
if(evt.GetHref() == m_browser->GetCurrentURL())
wxLogMessage("%s", "Document loaded; url='" + evt.GetHref() + "'");
UpdateState();
}