summaryrefslogtreecommitdiff
path: root/content/content.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing unrefsDaniel Silverstone2019-12-011-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content_saw_insecure_objects: Fix various corner casesDaniel Silverstone2019-12-011-3/+12
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add missing includeDaniel Silverstone2019-12-011-0/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Allow contents to indicate if they believe they may not be secure.Daniel Silverstone2019-12-011-0/+45
| | | | | | | | | | HTML contents reference many other objects. The browser window needs to know if any of them may not be secure, in which case it needs to report that in its page state. If other content types might refer to sub-contents, they will need to define the callback too. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content: Remove redundant and unused redraw message fields.Michael Drake2019-11-111-8/+0
| | | | | | | | | | This was archaic support for rendering images as "overlays", and avoiding a redraw via the browser window redraw and HTML contents. Basically it was "plot this image here", but it was too error prone, so it was removed a long time ago. These are some last vestiges that made the redraw message look more complex than it is.
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-10/+3
| | | | | | | | In further preparation for the auth and cert queries being handled as special contents from `about:` this excises the query pathway from the llcache pretty much entirely. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Migrate SSL certificate storage to the browser windowDaniel Silverstone2019-08-051-0/+3
| | | | | | | | | | * Fetchers now provide the certificates before headers * This is propagated all the way to the browser window * When a query occurs, we retrieve it from there and fire the query with those stored certificates. * The serial number is a bignum, store it as hex. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content: Rename content_broadcast_errorcode()Daniel Silverstone2019-08-051-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-3/+5
| | | | | | | This reworks CONTENT_MSG_ERROR to be structured data and removes the CONTENT_MSG_ERRORCODE message kind. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Migrate query dispatch up from llcache to hlcacheDaniel Silverstone2019-08-031-0/+7
| | | | | | | | | | | | As a first step in refactoring query handling to be managed by `browser_window`, this migrates the calling of the query handler from the llcache object code up to the hlcache. In theory this may result in multiple queries happening for one object, but we mitigate multiple-responses in the llcache so all should be well. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* make content close check the content status itselfVincent Sanders2019-07-101-39/+64
| | | | make content handler open and close return error status
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-10/+4
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* Add content_exec and associated vtable entryDaniel Silverstone2019-05-051-0/+21
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content: Make the content structure aware of viewport height.Michael Drake2019-02-171-0/+2
| | | | | | | It was always aware of viewport width, but since adding support for vh CSS units, the HTML content handler also needs viewport height. Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
* Content: Log URLs with nsurl_access_log().Michael Drake2018-08-091-9/+9
| | | | | | This reduces the log file size for startup and a single visit to https://www.bbc.co.uk/news from 266133 to 178777 bytes, by not dumping big data URLs over and over into the log.
* Fixup everything the semantic patch missedVincent Sanders2017-09-071-1/+1
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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);
* Content API: Avoid content message copy in content user callback.Michael Drake2017-08-261-13/+19
|
* Content API: Make content_broadcast take pointer to content_msg_data.Michael Drake2017-08-261-15/+17
|
* Improve content logging with content IDs (pointer values).Michael Drake2017-03-231-1/+1
| | | | This makes it easier to track a content by its ID through a log.
* Update knockout plotter to use new APIVincent Sanders2017-02-111-1/+1
|
* Update all core use of plotters to new APIVincent Sanders2017-02-111-4/+4
|
* create netsurf inttypes header to have portable integer formatting macrosVincent Sanders2017-01-211-1/+2
|
* rationalise use of utils/utils.h headerVincent Sanders2017-01-191-1/+0
|
* Update content to split public and internal APIVincent Sanders2016-06-061-13/+5
|
* move plotters header into public APIVincent Sanders2016-05-301-1/+0
|
* move desktop window header into public APIVincent Sanders2016-05-301-1/+1
|
* move bitmap API header to core include directoryVincent Sanders2016-05-261-1/+1
|
* move image content handlers to accomodate core build changesVincent Sanders2016-05-231-1/+1
|
* update content wallclock timing to use monotonic time interfaceVincent Sanders2016-04-201-4/+7
|
* stop content header dragging in so many other headersVincent Sanders2016-04-191-0/+2
|
* reduce content header interdependancyVincent Sanders2016-04-181-1/+2
|
* clean up header usage in content hnadling coreVincent Sanders2016-04-181-20/+10
|
* Stop GIF animations when they are no longer in use, instead of waiting until ↵Chris Young2016-02-111-0/+7
| | | | they are destroyed.
* Remove torrent of logging during browser window resize.Michael Drake2016-02-061-1/+1
|
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-281-1/+1
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-281-20/+11
| | | | | | | | | | | | 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 scaled content redraw interface.Vincent Sanders2015-04-231-2/+71
| | | | | | Add a new interface to the content to allow automaticaly scaled content redraws. This is intended to replace the thumbnail_redraw interface with something more generic.
* Move bitmap operations into an operation table.Vincent Sanders2015-04-131-1/+2
| | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library.
* Doxygen cleanupsVincent Sanders2014-11-091-6/+7
|
* Continue doxygen error cleanup.Vincent Sanders2014-11-081-79/+52
|
* fix up more doxygen errorsVincent Sanders2014-11-081-53/+19
|
* Improve content encoding information APIVincent Sanders2014-11-071-4/+4
| | | | | Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding.
* Allow content handlers to have debug values set through APIVincent Sanders2014-11-061-0/+16
| | | | | | | | Previously content handler debugging features were accessed by global variables. This allows the setting of debugging parameters via a content API giving per content control over debugging features. Currently only used by the html content handler to toggle global redraw debugging.
* Make the fetching of a contents encoding generic.Vincent Sanders2014-11-051-0/+24
| | | | | | | The frontends previously had to use an html renderer API to get the encoding of a content. This also required the explicit checking of the contents type rather than using the existing content API to abstract this knowledge.
* Change contextual content retrieval to browser features.Vincent Sanders2014-11-021-8/+7
| | | | | | | | | | | | | Update the API which allows frontends to acquire the page features (images, link urls or form elements) present at the given coordinates within a browser window. By making this an explicit browser_window API and using the browser.h header for the associated data structure with a more appropriate API naming the usage is much more obvious and contained. Additionally the link url is now passed around as a nsurl stopping it being converted from nsurl to text and back again several times.
* fix DOM tree dump debugVincent Sanders2014-08-041-4/+7
|
* move page search gui callbacks to their own operations tableVincent Sanders2014-03-181-5/+6
|
* remove unecessary includeVincent Sanders2014-02-041-3/+1
|
* Fix Coverity #1109872.Michael Drake2013-10-231-1/+2
|