summaryrefslogtreecommitdiff
path: root/desktop/save_complete.c
Commit message (Collapse)AuthorAgeFilesLines
* Save complete: silence warningJohn-Mark Bell2022-05-271-2/+2
| | | | | | Not all runtime library headers declare the first argument to regexec as being const so don't make our snregexec wrapper do so. Additionally, make save_complete_import_re static.
* fix "may be used uninitialised" warningVincent Sanders2019-11-061-1/+1
|
* improve error returns throughout complete save and remove user warningsVincent Sanders2019-11-041-97/+119
|
* save complete: Change de-duplication to compare URLs, rather than contents.Michael Drake2019-10-261-2/+6
| | | | | | | | | | | | | | | We seem to have more than one content for the same resource. For example: * save `<img src="about:logo"><img src="about:logo">` as img-test.html * run `rm -rf test-save && make && ./nsgtk img-test.html` * ctrl+s * save as "test-save" in the current netsurf dir. * run `md5sum test-save/*` before and after this commit. The de-duplication works with URLs, where it wasn't working with hlcache_handles or contents.
* save complete: ctx_find_content: compare contents, not hlcache_handlesMichael Drake2019-10-261-1/+2
| | | | There can be multiple hlcache_handles per sharable content.
* fix some formatting in save completeVincent Sanders2019-10-241-27/+47
|
* ensure save_complete resources are correctly finalised before quitVincent Sanders2019-10-241-0/+7
|
* resolve leak of attribute value lwc string in complete saveVincent Sanders2019-10-241-0/+1
|
* fix save_complete usage of posix regex so it does not run off the end of stringsVincent Sanders2019-10-211-22/+55
|
* add regex compatability to utils and enable it for serenity OSVincent Sanders2019-10-121-1/+1
|
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-27/+38
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* clean up html content handler header useVincent Sanders2018-05-111-0/+1
| | | | Improve header use in preperation for making browser window a corewindow
* move html and text content handlers where they belongVincent Sanders2018-05-101-2/+2
|
* move history bitmap thumbnail into the page information structureVincent Sanders2017-09-101-6/+9
|
* 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);
* fix some doxygen errorsVincent Sanders2017-02-241-3/+3
|
* change save complete to use ascii character manipulationVincent Sanders2016-09-111-7/+8
|
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-1/+1
|
* Update content to split public and internal APIVincent Sanders2016-06-061-13/+22
|
* move misc header into public APIVincent Sanders2016-05-301-1/+1
|
* move the CSS content handlerVincent Sanders2016-05-261-1/+1
|
* remove all core usage of warn_user APIVincent Sanders2016-04-261-9/+11
|
* move regex helper to be with teh single remaining call siteVincent Sanders2016-04-201-0/+19
|
* Change LOG() macro to be varadicVincent Sanders2015-05-281-4/+4
| | | | | | | | | | | | 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.
* add missing includesVincent Sanders2014-12-271-0/+1
|
* Desktop doxygen fixesVincent Sanders2014-11-091-5/+6
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+0
| | | | Second in the series to decouple the core API usage from the frontends.
* when walking the css imports ensure the content is present before ↵Vincent Sanders2014-07-081-2/+5
| | | | | | | | | dereferencing it css import entries may not have a valid content if the resource failed to load or was unsuitable in some otehr way. The save_complete iterator did not cope with this. fixes #2166
* fix riscos mkpath and error reporting in save completeVincent Sanders2014-05-171-3/+5
|
* add file operations table and make all frontends use it.Vincent Sanders2014-05-071-37/+41
| | | | | | | | | | | | | This rationalises the path construction and basename file operations. The default implementation is POSIX which works for all frontends except windows, riscos and amiga which have differeing path separators and rules. These implementations are significantly more robust than the previous nine implementations and also do not use unsafe strncpy or buffers with arbitrary length limits. These implementations also carry full documentation comments.
* move utf8 conversion routines to use nserror instead of their own error enumVincent Sanders2014-01-281-9/+8
|
* create table for fetcher operations and move all operations into itVincent Sanders2014-01-231-3/+3
|
* move filename_from_path and path_add_part into gui operation tablesVincent Sanders2014-01-161-3/+4
|
* fixup logic error in save complete as directed by jmbVincent Sanders2014-01-061-1/+1
|
* Speculatively start image fetches as we parse the document.John-Mark Bell2014-01-051-1/+1
|
* Use custom fetcher for inline CSSJohn-Mark Bell2013-02-271-11/+2
|
* Fix handling of inline stylesheets with @importJohn-Mark Bell2013-02-261-2/+2
|
* Correctly emit entities when serialising to HTML.John-Mark Bell2012-12-301-11/+104
|
* Fix to escape comments in save complete output.Michael Drake2012-11-061-0/+8
|
* Port save complete to libdom.John-Mark Bell2012-11-031-598/+872
|
* Use case insensitive string comparisions for nodesJohn-Mark Bell2012-07-151-11/+11
|
* For now, build a shonky libxml tree. Later, rewrite save_complete for libdomDaniel Silverstone2012-03-251-5/+19
| | | | svn path=/trunk/netsurf/; revision=13664
* Include dom/dom.h where it might be neededDaniel Silverstone2012-03-241-2/+1
| | | | svn path=/trunk/netsurf/; revision=13625
* Migrate frame types so that desktop/browser.h does not include render/html.hDaniel Silverstone2012-03-241-0/+1
| | | | svn path=/trunk/netsurf/; revision=13605
* content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_urlJohn Mark Bell2011-12-041-4/+4
| | | | svn path=/trunk/netsurf/; revision=13236
* Port more internals to nsurl. Front ends may need updating.Michael Drake2011-10-031-5/+7
| | | | svn path=/trunk/netsurf/; revision=12926
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-4/+35
| | | | svn path=/trunk/netsurf/; revision=12283
* Fix stupidJohn Mark Bell2011-03-121-4/+4
| | | | svn path=/trunk/netsurf/; revision=11976
* Fix inventory file leafname.Michael Drake2010-07-091-1/+1
| | | | svn path=/trunk/netsurf/; revision=10624
* Replace unnecessarily complicated path concatenation with something simpler andChris Young2010-07-091-9/+7
| | | | | | easily adaptable to different platform path structures. svn path=/trunk/netsurf/; revision=10621