summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_script.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow contents to indicate if they believe they may not be secure.Daniel Silverstone2019-12-011-0/+25
| | | | | | | | | | 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>
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-30/+0
| | | | | | | | 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>
* content: Rename content_broadcast_errorcode()Daniel Silverstone2019-08-051-3/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-9/+3
| | | | | | | 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>
* Add content handlers for queriesDaniel Silverstone2019-08-041-0/+30
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* html_script.c: html_script_exec() reqacquire script ptrDaniel Silverstone2019-06-011-0/+5
| | | | | | | | | Since executing a script can cause more scripts to be appended to the script array, and that can cause a reallocation which might move the script array, reacquire the script pointer after running the script so that we don't wander off into the reeds. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* change content get_source_data interfaces to return uint8_t and size_tVincent Sanders2019-05-051-6/+6
| | | | | previously these interfaces returned char * and unsigned int which was undesirable.
* change back to unsigned long to avoid warning on gnueabihf platformsVincent Sanders2019-05-041-1/+1
|
* JS: Attribute external JS to the URI it came from in backtracesDaniel Silverstone2019-05-041-5/+8
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Clean up async/defer JS contents during parent finalisationDaniel Silverstone2019-05-041-10/+15
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Support script insertion after conversion has begunDaniel Silverstone2019-05-041-8/+25
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* 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-0/+604