Replies: 2 comments 1 reply
-
I want to say right away that I tried to implement this through OnBeforeBrowse. But there is a problem. You cannot go back, but the back button and the "CanBack" property are still active. Therefore, I think, is it possible to prevent the site from being recorded in history at all? |
Beta Was this translation helpful? Give feedback.
-
You can try using the Look something like the following (I haven't run this code so might need some minor corrections). using (var client = chromiumWebBrowser.GetDevToolsClient())
{
_ = client.Page.ResetNavigationHistoryAsync();
} |
Beta Was this translation helpful? Give feedback.
-
For example, there is a start page "browser:\startpage" (a SchemeHandlerFactory has been created for this page). From this page the user can go to other sites and return to the start page using the "Back" button.
How can I prevent this page from being written to history, so that after switching to another site it is impossible to go back?
I would be very grateful for a hint on how to implement this :)
p.s. WinForms / VS2019 / C# / CefSharp 86
Beta Was this translation helpful? Give feedback.
All reactions