summaryrefslogtreecommitdiff
path: root/desktop
Commit message (Collapse)AuthorAgeFilesLines
* add miscellaneous event to browser window callback tableVincent Sanders2019-08-204-57/+17
| | | | | | | | | | | | extend the browser window callback table with a miscallaneous event entry. This is used to replace all browser window callbacks which take no parameters. This reduces the API surface from seven separate calls to a single call with an enumeration which may be readily extended. The initial implementation in the frontends simply calls the original implementations to reduce scope for errors.
* browser_window: handle 'back to safety' cleanlyDaniel Silverstone2019-08-141-1/+5
| | | | | | | | | | In order to ensure we actually go back to safety, clear the curent loading parameters, and transfer the load parameters for where we're going into them to be closer to a real navigate, otherwise we end up copying the wrong loading parameters over the top when we complete the back-to-safety navigation. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* make internal url navigation check safeVincent Sanders2019-08-121-14/+38
|
* Support SSL verification through new about: handlerDaniel Silverstone2019-08-061-17/+128
| | | | | | | | In doing this, also propagate why the certificates were bad so that the page can display a reason. We will need FatMessages for all these. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Improve history behaviour on internal navDaniel Silverstone2019-08-061-3/+9
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Reimplement handling of BAD_AUTH inside browser_windowDaniel Silverstone2019-08-064-265/+442
| | | | | | | | | | | | | We now handle authentication requests via an `about:` page which presents a nice form built into the browser window. In order to do this, we add internal navigation as a concept to the browser window and we strip the 401login support from all frontends except monkey. The 401login callback is now intended for password safe type support rather than an immediately interactive prompt. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser window navigate: Ensure child.quirks is initialised.Michael Drake2019-08-051-0/+2
|
* browser_window: Stop the throbber right at the end of handling errorsDaniel Silverstone2019-08-051-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Excise the llcache query pathway.Daniel Silverstone2019-08-058-147/+128
| | | | | | | | 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-054-7/+49
| | | | | | | | | | * 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>
* browser_window: Add fetch parameters and split navigateDaniel Silverstone2019-08-052-14/+135
| | | | | | | | In order to support future reload/strange navigations, split the navigate function into two and add a stored parameters structure which can be used to regenerate any fetch. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-052-47/+10
| | | | | | | 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>
* enable gnu extensions to get strcasestr from string.hVincent Sanders2019-08-051-0/+2
|
* remove core snapping for values set in absolute modeVincent Sanders2019-08-041-7/+2
|
* change browser_window_drop_file_at_point() to take unscaled coordinatesVincent Sanders2019-08-041-38/+65
|
* change browser_window_redraw to use unscaled coordinatesVincent Sanders2019-08-041-0/+3
|
* trivial documentation cleanupsVincent Sanders2019-08-041-1/+1
|
* Add content handlers for queriesDaniel Silverstone2019-08-043-0/+54
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* desktop: Expose llcache query handler temporarilyDaniel Silverstone2019-08-042-1/+17
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* remove unnecessary browser_window_redraw_rect interfaceVincent Sanders2019-08-032-8/+9
|
* download: Include log.hDaniel Silverstone2019-08-031-0/+1
| | | | 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>
* local_history: Improve up/down navigationDaniel Silverstone2019-08-031-10/+67
| | | | | | | | | | When pressing up/down on a node when you can't go up/down the window will now search for a parent node which is a child of a branching point, and move to that and try again for the up/down movement. This makes it slightly more intuitive to move through the tree. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Corewindow helper: Add documentation for cw_helper_scroll_visible()Michael Drake2019-08-031-1/+8
|
* Corewindow: Sanitise scrolling API.Michael Drake2019-08-033-11/+9
| | | | | | | Now the core has a helper so that all the front ends don't need to implement the scroll to show area API. Now they simply have get and set scroll APIs.
* Corewindow helper: Add helper to scroll to visible rectangle.Michael Drake2019-08-032-0/+130
| | | | | This takes the algorithm from the GTK front end and puts it in the core, so it doesn't need to be implemented for every front end.
* improve browser_window_set_scaleVincent Sanders2019-08-031-22/+59
| | | | | | Allow scale setting to use an absolute value or a relative value. This also imposes sanity limits on the scale range (currently 0.2 to 10.0) and removes the old junk "all" parameter.
* change browser_window_get_features to use unscaled coordinatesVincent Sanders2019-08-031-48/+64
|
* change browser_window_mouse_track to use unscaled coordinatesVincent Sanders2019-08-031-153/+175
|
* change browser_window_mouse_click to use unscaled coordinatesVincent Sanders2019-08-031-118/+140
| | | | | this means frontends no longer need to scale mouse click events thus simplifying their implementation.
* treeview: Support scrolling to the highlighted nodeDaniel Silverstone2019-08-021-0/+36
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Local history: Consolidate thumbnail dimensions.Michael Drake2019-08-023-50/+58
|
* Local history: Treat thumbnail dimensions as CSS pixels.Michael Drake2019-08-021-4/+6
|
* local_history: Handle keys for navigating local historyDaniel Silverstone2019-08-021-0/+54
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* local_history: Add concept of a cursor to the local historyDaniel Silverstone2019-08-022-7/+66
| | | | | | | | So that we can eventually navigate around local history by keyboard, add the concept of a history cursor to the local history core window. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* remove scaled parameter from get_dimensionsVincent Sanders2019-08-021-2/+2
|
* remove scaling from internal browser get_dimensions callsVincent Sanders2019-08-023-12/+18
|
* Browser window: Make invalidate gui callback use unsacled coordinates.Michael Drake2019-08-011-7/+9
|
* reformat and tidy up browser window code ready for corewindow changesVincent Sanders2019-08-011-1067/+1146
|
* split browser and browser_window operationsVincent Sanders2019-08-019-3479/+3509
|
* Fix clamping in commit fa64763b0d8c6566eda5f6547e7f2f3e62b77613Vincent Sanders2019-08-011-1/+2
|
* browser_history.c: Clamp contents to be 1x1 at min.Daniel Silverstone2019-08-011-2/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* treeview: Correct mis-freeing in treeview_create error pathDaniel Silverstone2019-08-011-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Update version for next development cycleVincent Sanders2019-07-171-3/+3
|
* cleanup browser window message handlingVincent Sanders2019-07-101-143/+148
| | | | | | | | separate out ready and done message processing to make the code more readable. remove checking of content status as content_close() handles that itself.
* browser.c: Don't require > 0 chars in loggingDaniel Silverstone2019-06-091-1/+4
| | | | | | | Sometimes JavaScript chooses to log an empty string. We should honour that by requiring msg be a valid empty string. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Ensure we set the defaults for the log options to those compiled inDaniel Silverstone2019-05-281-2/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser window: Handle the content msg for getdims.Michael Drake2019-05-061-0/+12
|
* Logging: Bump lwc leak exit report to WARNING level.Michael Drake2019-05-061-1/+1
|
* Support DEBUG log level in console_logDaniel Silverstone2019-05-061-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>