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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user