summaryrefslogtreecommitdiff
path: root/desktop/cookie_manager.c
Commit message (Collapse)AuthorAgeFilesLines
* Cookie/History/Hotlist: use localtime()John-Mark Bell2024-03-051-3/+3
| | | | Some platforms do not support the reentrant form, so don't use it.
* Cookie/History/Hotlist: locale-aware time formattingJohn-Mark Bell2024-03-051-18/+12
| | | | | | | | | | | | (as)ctime are defined as always formatting times using English day/month names. As these views are for the user's benefit, use the selected locale to format the information, instead. Use of (as)ctime on RISC OS with UnixLib is fragile, anyway, as that implementation always produces a locale-aware serialization (which is not what the spec defines). This caused assertions to fire in the previous implementation (which expected ctime to be locale-unaware). Fixes #2869.
* Cookie manager: Add API to set the search string.Michael Drake2020-02-241-0/+13
|
* Cookie manager: Flag the domain field as searchable; more use than name.Michael Drake2017-09-181-1/+3
|
* Cookie manager: Enable search feature.Michael Drake2017-09-181-1/+3
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* clear tree pointer on freeChris Young2017-01-051-0/+1
|
* remove cookie manage display of the no_delete booleanVincent Sanders2016-09-131-26/+0
| | | | | | The no_delete flag is mislabelled as persistent. In fact it is simply never altered from its default value. It is serialised and its state kept on disc but otherwise is completely vestigial.
* if the cookie is a session cookie indicate itVincent Sanders2016-09-131-1/+7
| | | | | previously session cookies were simply displayed as having an expiry in 1970 which was unhelpful.
* improve cookie time display and document locale interactionVincent Sanders2016-09-101-39/+86
|
* Treeview: Rationalise initialisation and finalisation.Michael Drake2016-08-101-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the expected behaviour for front ends using the correct API for hotlist, global history, cookie manager, and ssl cert viewer was that the front end would initialise the treeview module on startup and finalise it on application exit. However, this meant that the front ends had to include the core treeview header, which they didn't otherwise need. Since the tree module provided access to the new treeview utilities through the old tree API, and was used by front ends with no changes for the new treeview API, the tree layer refcounted initialisations of treeview-based widgets, and only called the underlying treeview init/fini functions when needed. This change moves that refcounting into the treeview module. Now the hotlist, global history, cookie manager, and ssl cert viewer widgets call call treeview init/fini as part of their own initialisation and finalisation. This means that front ends using the correct APIs for treeview-based widgets don't need to know anything about the underlying treeview, and the tree module compatibility layer has had its treeview refcounting removed. Finally, the treeview_init function took a font size parameter. Now it does not and lit gets font size from config. We probably want to add a new `treeview_font_size` option to nsoptions, and have differnent defaults on different platforms. 12pt on RISC OS, and 11pt elsewhere, most likely.
* Fix cookie manager keypress consumption returnVincent Sanders2016-07-311-2/+2
|
* Change LOG() macro to be varadicVincent Sanders2015-05-281-6/+5
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* remove content include from urldb headerVincent Sanders2014-07-171-3/+5
|
* remove unecessary includeVincent Sanders2014-05-181-1/+1
|
* Remove height getters from treeview client modules API.Michael Drake2013-09-031-7/+0
|
* Ensure tree height is provided when treeview building is complete.Michael Drake2013-09-031-0/+3
|
* Add recursive expand/contract functions to hotlist, global history, and ↵Michael Drake2013-09-031-0/+14
| | | | cookie manager modules.
* Remove old hotlist, cookies, and history_global_core modules.Michael Drake2013-09-021-1/+0
| | | | New versions of expand/collapse node functions for these modules aren't yet implemented.
* Improve callback suppression options. Reduce unnecessary callback usage.Michael Drake2013-08-301-7/+7
|
* Add flag to suppress redraw on node creation.Michael Drake2013-08-291-2/+4
|
* Add a few functions for front ends to use.Michael Drake2013-08-281-0/+14
|
* Expose leaving node callback in public treeview walker interface.Michael Drake2013-08-221-4/+4
|
* Improve namespacing of enum values.Michael Drake2013-07-261-100/+100
|
* Move remaining string literals over to FatMessages.Michael Drake2013-07-261-5/+4
|
* Yield ownership of value to field builder, since date strings were already ↵Michael Drake2013-07-261-15/+15
| | | | allocated.
* Avoid snprintf and having buffer on stack.Michael Drake2013-07-261-7/+6
|
* Use prefabricated field text for common values.Michael Drake2013-07-261-27/+118
|
* Optimise cookie tolder and entry node search by comparing lengths before ↵Michael Drake2013-07-251-8/+22
| | | | strings.
* Abstract field building.Michael Drake2013-07-251-53/+37
|
* Flag a todo. (Move some string literals to messages.)Michael Drake2013-07-251-0/+1
|
* Add initial version of new cookie manager.Michael Drake2013-07-251-0/+758