summaryrefslogtreecommitdiff
path: root/desktop/browser_window.c
Commit message (Collapse)AuthorAgeFilesLines
* Browser window: Add stubs for new interfaces for page-info dialogue.Michael Drake2020-02-231-0/+24
|
* Browser window: Constify bw through page_info_state getter.Michael Drake2020-02-231-1/+1
|
* Keep the complete certificate chain from a fetchVincent Sanders2020-02-231-23/+23
| | | | | | | | | Instead of extracting information from the X509 certificate chain in the fetcher the entire chain is propagated in Distinguished Encoding Rules (DER) format. This allows all the information contained in a certificate chain to be retained which can subsequently be presented to the user
* browser_window: Propagate error code when handling errorsDaniel Silverstone2020-02-231-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser window: Constify the bw in the URL access function.Michael Drake2020-02-221-1/+1
|
* browser_window: Inform GUI about redirects and final URLDaniel Silverstone2020-02-221-30/+25
| | | | | | | | | To correctly have the GUI know about all url bar updates, we should inform it during the processing of redirects and we should ensure that when we're in the ready-but-not-done phase we do not use the fetch parameters but instead the content's known URL Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser: Support requesting location focusDaniel Silverstone2020-02-221-0/+2
| | | | | | | | | In the creation of a browser window it may be valuable to request that the GUI focus the location input box. This can be used when the user requests a new tab/window to allow the entry box to be focussed properly immediately. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Browser: Add FOREGROUND flag to window creationDaniel Silverstone2020-02-221-0/+2
| | | | | | | | | To better support new-tab / new-window operations as well as GUIs which want to allow tabs to open in the background by default, add a flag to request a new browser window be foregrounded. This will allow us to simplify at least the GTK frontend a little. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Don't use the fetch parameters for page infoDaniel Silverstone2019-12-011-4/+4
| | | | | | | In order to cope with redirects properly, use the content's URL not the fetch parameters. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Remove spurious stopping of throbberDaniel Silverstone2019-12-011-2/+0
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Dispatch page info notification on root browserDaniel Silverstone2019-12-011-1/+2
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add missing unrefsDaniel Silverstone2019-12-011-0/+5
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Add an event for page info state changeDaniel Silverstone2019-12-011-0/+5
| | | | 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-3/+6
| | | | | | | | | | 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>
* browser_window: Add basic page info state and SSL accessorsDaniel Silverstone2019-12-011-0/+72
| | | | | | | In order to begin work on the page info dialog, we need access to the current page's state and SSL chain if available. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* browser_window: Set referer and flags in ssl error pathwayDaniel Silverstone2019-11-301-0/+2
| | | | | | | | To make the SSL error pathway consistent with the other error pathways, set the referer and the fetch parameter flags the same as the others. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* 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
|