Implement ClearHistory using the built in WebBackForwardList rather than a shared WebHistory on OSX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -441,10 +441,6 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
|
|||||||
|
|
||||||
[m_webView setPolicyDelegate:myPolicyDelegate];
|
[m_webView setPolicyDelegate:myPolicyDelegate];
|
||||||
|
|
||||||
// add history
|
|
||||||
WebHistory* history = [[WebHistory alloc] init];
|
|
||||||
[WebHistory setOptionalSharedHistory:history];
|
|
||||||
|
|
||||||
InternalLoadURL(strURL);
|
InternalLoadURL(strURL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -958,7 +954,8 @@ void wxWebViewWebKit::EnableHistory(bool enable)
|
|||||||
|
|
||||||
void wxWebViewWebKit::ClearHistory()
|
void wxWebViewWebKit::ClearHistory()
|
||||||
{
|
{
|
||||||
[[WebHistory optionalSharedHistory] removeAllItems];
|
[m_webView setMaintainsBackForwardList:NO];
|
||||||
|
[m_webView setMaintainsBackForwardList:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWebViewWebKit::CanUndo()
|
bool wxWebViewWebKit::CanUndo()
|
||||||
|
Reference in New Issue
Block a user