Commits


fix regression: open the url given on the command line was broken after the fs/ui merge


minor tweaks


rate-limit the update of the download pane


unbreak downloads the recent commit to rework handle_save_page_path changed the tab id *before* setting it to the download, so the ui and net process went out of sync and downloads hanged.


garbage collect `dequeue_first_download'


reset all the state functions regardless of MB_READ vs. MB_COMPLREAD must_select otherwise is set when MB_COMPREAD but not cleared on MB_READ, yielding funny errors. While here, move also the other parts of the state out of the if (MB_COMPLREAD) to avoid this kind of issues in the future.


drop the `buffer' flag for enqueue_download it's unused as write_buffer now writes a buffer to the disk.


fix handle_save_page_path there's no need to handle the buffer case, which is now handled directly by write_page. While here fix an issue if the open fails: we still need to stop the tab!


unbreak history file I can't use the ""generate temp file + rename" trick used for the session file, because I only add items that are not "dirty". the history-on-disk things needs some improvements, mostly to limitate the size of the file, but for the time being unbreak it!


add forgotten include for string.h


replace has_prefix with strncmp


move load session stuff to session.c


merge update_cert and tofu_update into tofu_update_persist


merge tofu_add and save_cert into tofu_save


constify