Michael Drake
65e5512160
html: Fire DOM KeyboardEvents on keypresses.
2019-12-01 21:25:46 +00:00
Michael Drake
f620ea9d17
dukky_push_event: Enable KeyboardEvent specialisation.
2019-12-01 21:25:46 +00:00
Michael Drake
23d413c561
JavaScript: Add KeyboardEvent bindings.
2019-12-01 21:25:46 +00:00
Michael Drake
7e6723e27a
html: Add function for issuing a keypress event.
2019-12-01 21:25:46 +00:00
Michael Drake
a2190f91c9
html: Split out helper for firing DOM events and swallowing errors.
2019-12-01 21:25:46 +00:00
Michael Drake
12fd5ddd69
HTML: Rename fire_dom_event to fire_generic_dom_event.
2019-12-01 21:25:46 +00:00
Daniel Silverstone
715586bb65
html_saw_insecure_objects: Don't infinite loop on objects
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-12-01 17:05:28 +00:00
Daniel Silverstone
33c81b6932
html_css_fetcher: Use corestring_lwc_x_ns_css
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-12-01 17:05:28 +00:00
Daniel Silverstone
6fc2666d07
Allow contents to indicate if they believe they may not be secure.
...
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>
2019-12-01 15:49:08 +00:00
Daniel Silverstone
9a02a41cd6
box_construct: Do not leak attributes in <embed> boxes
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-11-30 20:37:07 +00:00
Michael Drake
dc9de4998f
HTML redraw: Don't render scrollbars when the CSS doesn't permit it.
2019-11-30 15:20:21 +00:00
Vincent Sanders
4a1ca97c65
make unknown content drag assert have meanigful message
2019-11-29 21:32:46 +00:00
Vincent Sanders
69236590d0
change mouse action drag handling to use a more efficient dispatch
2019-11-17 10:40:34 +00:00
Vincent Sanders
e34f9d3a38
move remaining mouse action drag handling into separate functions
2019-11-17 10:13:56 +00:00
Vincent Sanders
ae39b9f955
move more select menu handling into mouse_action_select_menu()
2019-11-17 10:12:37 +00:00
Vincent Sanders
185d034323
make mouse track and mouse action content handlers return an error code
2019-11-12 22:48:00 +00:00
Vincent Sanders
074407d251
Remove redundant drag handling for content selection
...
This redundant code was added by:
4747bbbfb2
HTML drags now go via content msg.
and then added again with:
c2a718075a
A load of refactoring of how content selection and input work.
2019-11-12 21:54:35 +00:00
Vincent Sanders
b9bc34b875
split out html interaction header elements and rename source
2019-11-12 21:54:35 +00:00
Michael Drake
8ad55e23fd
gif: Change how we rate-limit frames to match other browsers.
...
This makes the old minimum_gif_delay option unused.
2019-11-11 21:54:26 +00:00
Michael Drake
8e1154eb1c
Content: Remove redundant and unused redraw message fields.
...
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.
2019-11-11 21:54:15 +00:00
Vincent Sanders
0e16c01cdc
remove unecessary user warning
2019-11-10 20:32:37 +00:00
Vincent Sanders
e95c11dac8
remove user warning and log error instead
2019-11-07 21:35:24 +00:00
Vincent Sanders
0dbc6e5ecd
fix keypress entry on text area
...
accidentaly broken in commit fca421e204
2019-11-07 21:20:04 +00:00
Vincent Sanders
570f2dc036
remove user warning and fix up error handling in form select menus
2019-11-07 18:52:49 +00:00
Vincent Sanders
7de3100624
remove unecessary user warning
2019-11-06 23:26:48 +00:00
Vincent Sanders
fca421e204
remove user warning and propogate error return
2019-11-06 23:13:20 +00:00
Vincent Sanders
cbb0c05258
remove unecessary user warning calls and improve error propogation in html box
2019-11-05 23:05:42 +00:00
Vincent Sanders
4372104e0e
fix utils configuration header ordering
2019-10-11 17:39:33 +01:00
Vincent Sanders
972e13ca3f
remove unused external declaration and unecessary header use
2019-10-06 18:02:17 +01:00
Vincent Sanders
12cca32059
fix core find in page behaviour when case sensitivity is toggled
2019-09-21 10:53:41 +01:00
Vincent Sanders
d94afaa0e1
make the gtk_search structure private to teh gtk search object
2019-09-21 10:53:41 +01:00
Daniel Silverstone
524965b867
Box Conversion: Cancel conversion during html_destroy
...
If dom_to_box is still in progress when we destroy an HTML
content, we need to cancel the conversion otherwise we will
end up with a scheduled callback into infinity.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-23 21:58:07 +01:00
Daniel Silverstone
df496cc8bc
Window: set{Timeout,Interval}() default delay 10ms
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-21 21:46:52 +01:00
Michael Drake
5e45c4498c
HTML: Don't allow objects to redraw until we have a layout.
2019-08-06 09:42:37 +01:00
Daniel Silverstone
f3ac1fad69
nssprite: content_broadcast_error fix
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-05 21:33:46 +01:00
Daniel Silverstone
9318ee5d6a
html_begin_conversion: If we pause in completing parse, try again later.
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-05 21:29:18 +01:00
Michael Drake
be23d522db
HTML: Box coordinates: Take fast route to float container.
...
And assert that floats have a float_container.
2019-08-05 21:15:28 +01:00
Daniel Silverstone
170dc5d524
Excise the llcache query pathway.
...
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>
2019-08-05 20:56:07 +01:00
Daniel Silverstone
2be3ebd918
content: Rename content_broadcast_errorcode()
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-05 15:25:15 +01:00
Daniel Silverstone
6ba199c7d7
Content messages: Remove ERRORCODE, rework ERROR
...
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>
2019-08-05 14:30:30 +01:00
Vincent Sanders
2171f13ab3
enable gnu extensions to get strcasestr from string.h
2019-08-05 10:01:13 +01:00
Daniel Silverstone
b15b204f49
form: Fix situation where a gadget initialises with NULL value
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-04 22:12:10 +01:00
Daniel Silverstone
05c6ee02d9
html: Mirror gadget values in and out of the DOM
...
Currently only supporting text input, password input, and hidden
input, along with text areas, this mirrors the text values in
and out of the DOM, allowing JS to adjust the gadget values and
for the gadget values to be interrogated from JS.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-04 22:07:42 +01:00
Vincent Sanders
3be2b98cc2
change browser_window_drop_file_at_point() to take unscaled coordinates
2019-08-04 14:24:33 +01:00
Vincent Sanders
f21c41a2e5
change browser_window_redraw to use unscaled coordinates
2019-08-04 11:25:35 +01:00
Daniel Silverstone
1905200154
Add content handlers for queries
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-04 11:22:40 +01:00
Michael Drake
90fe920e07
Duktape element binding: Check dom_string_create for error.
2019-08-04 11:11:35 +01:00
Michael Drake
a0fbf56a1d
CSS hints: Change css_hint_advance to advance pointer by parameter.
2019-08-04 11:10:26 +01:00
Vincent Sanders
357e8a8ad2
remove unnecessary browser_window_redraw_rect interface
2019-08-03 21:58:21 +01:00
Vincent Sanders
d4c01894c2
change browser_window_get_features to use unscaled coordinates
2019-08-03 14:29:06 +01:00