summaryrefslogtreecommitdiff
path: root/desktop/browser_window.c
Commit message (Collapse)AuthorAgeFilesLines
* remove unecessary user warning calls and improve error propogation in html boxVincent Sanders2019-11-051-4/+0
|
* add internal query handler for fetch errorsVincent Sanders2019-10-301-27/+92
| | | | | | | | | | | | | Any errors from the fetch which are not already handled are reported with an internal query page instead of a modal dialog. This is much less invasive for the user and much more in keeping with how this is handled by other browsers. The handler is similar to the timeout handler but the functionality is kept separate as it is intended timeout handling be extended in future.
* add internal query page for request timeoutsVincent Sanders2019-10-291-18/+113
|
* ensure all error messages have text if not provided by callerVincent Sanders2019-10-251-3/+3
|
* clear the favicon at the beginning of navigationVincent Sanders2019-09-291-0/+3
|
* re-indent browser window and cleanup commentsVincent Sanders2019-09-291-283/+366
| | | | no functional change
* browser_window: use about:blank if current_parameters is emptyDaniel Silverstone2019-08-231-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser: Do a better job of not leaking query URIs to the frontendDaniel Silverstone2019-08-211-4/+14
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser: Turn internal nav URLs into corestring_nsurlsDaniel Silverstone2019-08-211-14/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Ensure that back works like 'back to safety'Daniel Silverstone2019-08-211-18/+33
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* add miscellaneous event to browser window callback tableVincent Sanders2019-08-201-7/+10
| | | | | | | | | | | | 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-061-59/+432
| | | | | | | | | | | | | 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-051-53/+107
| | | | | | | | 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-3/+26
| | | | | | | | | | * 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-051-14/+111
| | | | | | | | 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-051-41/+8
| | | | | | | 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>
* 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
|
* Add content handlers for queriesDaniel Silverstone2019-08-041-0/+24
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* remove unnecessary browser_window_redraw_rect interfaceVincent Sanders2019-08-031-8/+0
|
* 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.
* remove scaled parameter from get_dimensionsVincent Sanders2019-08-021-2/+2
|
* remove scaling from internal browser get_dimensions callsVincent Sanders2019-08-021-8/+12
|
* 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-011-0/+3490