Tell me how to automatically clear all data without user intervention (and without restarting the program)
If I try this way:
chrome://settings/clearBrowserData
, I still need to press the button
------
Chromium1.ClearDataForOrigin('*', TCefClearDataStorageTypes.cdstCacheStorage);
Chromium1.ClearCache;
Chromium1.DeleteCookies();
so it doesn't clean everything.
------
is there an example MDIBrowser for linux ?
Thanks
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
clearBrowserData automatic
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: clearBrowserData automatic
Hi,
Try using Chromium1.ClearDataForOrigin('*', TCefClearDataStorageTypes.cdstAll); to clear all data asynchronously without restarting the browser.
Lazarus in Linux only supports MDI in Qt and not in Gtk:
https://forum.lazarus.freepascal.org/index.php/topic,41067.0.html
Use the TabbedBrowser2 demo for Linux instead.
Try using Chromium1.ClearDataForOrigin('*', TCefClearDataStorageTypes.cdstAll); to clear all data asynchronously without restarting the browser.
Lazarus in Linux only supports MDI in Qt and not in Gtk:
https://forum.lazarus.freepascal.org/index.php/topic,41067.0.html
Use the TabbedBrowser2 demo for Linux instead.
Re: clearBrowserData automatic
did not help with clearing the form data. When filling out a form on the site, previously entered data starts popping up. Is it possible to somehow prohibit autofilling of forms?salvadordf wrote: Mon Dec 09, 2024 3:53 pm Hi,
Try using Chromium1.ClearDataForOrigin('*', TCefClearDataStorageTypes.cdstAll); to clear all data asynchronously without restarting the browser.
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: clearBrowserData automatic
Try using this :
Read the code comments for TChromiumCore.SetContentSetting for more details.
Code: Select all
MyChromium.SetContentSetting(requesting_url, top_level_url, CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA, CEF_CONTENT_SETTING_VALUE_BLOCK);
Re: clearBrowserData automatic
Chromium1.SetContentSetting('*', '*', CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA , CEF_CONTENT_SETTING_VALUE_BLOCK);
I tried this, it didn't work. What am I doing wrong?
I tried this, it didn't work. What am I doing wrong?
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: clearBrowserData automatic
Use URLs instead of asterisks.
Re: clearBrowserData automatic
and if needed for any sites?
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: clearBrowserData automatic
Try calling that function in the TChromiumCore.OnBeforeBrowse event with the frame.url value