Daniel Silverstone
ed829a4772
JS: Attribute external JS to the URI it came from in backtraces
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 17:32:17 +01:00
Daniel Silverstone
8009444918
Expose encodeURI{,Component}
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 17:31:46 +01:00
Daniel Silverstone
83f24af275
Restore newlines for unimplemented javascript in doxygen
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 17:03:46 +01:00
Daniel Silverstone
9769e8f2c0
Clean up async/defer JS contents during parent finalisation
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 16:42:47 +01:00
Daniel Silverstone
36d83668c2
Support Window as an event target for dukky
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 15:49:21 +01:00
Daniel Silverstone
e4f57437f6
Unref body when finished getting event handler
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 15:01:15 +01:00
Daniel Silverstone
99809ee646
Better dukky debug for node creation
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 15:01:15 +01:00
Michael Drake
a03b4a3c14
CSS: Update for change to libcss append sheet API.
...
When appending stylesheets to the selection context, it now
takes the media query string associated with the sheet, rather
than the type bitfield.
TODO:
We need to pass all the sheets in, with their full media
query string, rather than filtering it ourselves and setting
the ones we pass in to "screen".
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
2019-05-04 14:51:42 +01:00
Michael Drake
920d6fa23d
CSS: Update for change to libcss select style API.
...
LibCSS now takes the client media spec, rather than just the
media type we're selecting for.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
2019-05-04 14:51:42 +01:00
Michael Drake
637b4e5fc0
CSS: Update for change to libcss imported sheet API.
...
The media is not exposed and sent back into libcss now.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
2019-05-04 14:51:42 +01:00
Daniel Silverstone
19b45fb494
Support script insertion after conversion has begun
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 12:18:21 +01:00
Daniel Silverstone
90cabaf8c8
Add auto-generated getters and setters for HTMLFrameSetElement events
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 14:30:10 +01:00
Daniel Silverstone
ed9894d750
Add auto-generated getters/setters on body element
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 14:26:12 +01:00
Daniel Silverstone
9e1b4218a1
UnimplementedJavascript: Remove now implemented stuff thanks to nsgenbind update
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 14:15:18 +01:00
Daniel Silverstone
598ceebb46
Update UnimplementJavascript
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 14:02:07 +01:00
Daniel Silverstone
dd02849df0
Add global handlers to Window
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 13:45:24 +01:00
Daniel Silverstone
8eab64132a
Add languagechange DOM string
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 13:45:16 +01:00
Daniel Silverstone
b2e4c2ec58
UnimplementedJavascript.txt: Remove spurious newlines
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 13:39:07 +01:00
Daniel Silverstone
1b04b2fb21
claim createEvent
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 13:37:10 +01:00
Daniel Silverstone
4f9a373960
Support Document::createEvent()
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 13:32:23 +01:00
Daniel Silverstone
2739a47d83
Event: Implement initEvent() and getter isTrusted
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 12:20:10 +01:00
Daniel Silverstone
177a047752
Update UnimplementedJavascript with the window functions now implemented
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 11:54:38 +01:00
Daniel Silverstone
61143e0bd2
Add some more bits to the jsbinding document
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 11:53:02 +01:00
Daniel Silverstone
c17e588b66
Javascript: Support setTimeout and friends
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-03 11:33:07 +01:00
Michael Drake
35e9b5de6d
Tests: Add simple JS test for dynamic layout.
2019-05-03 08:25:24 +01:00
Daniel Silverstone
519f029420
dukky: Clean up the logging levels a little
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-02 21:18:30 +01:00
Vincent Sanders
148639b70c
add initial javascript binding documentation
2019-05-02 11:13:09 +01:00
Chris Young
ccb499b800
Release guigfx drawhandle
2019-04-10 18:27:24 +01:00
Chris Young
1a170f9f32
Re-instate accidental removal of pkg-config for curl/openssl
2019-04-08 18:44:44 +01:00
Chris Young
ac46ecbc1c
Small Capital Q codepoint
2019-04-08 18:35:51 +01:00
Chris Young
35dbf07440
Add AmiSSL requirement
2019-04-08 12:49:13 +01:00
Chris Young
178d4bc25c
Fix some bsdsocket.library usage
...
NetSurf now builds against libcurl-AmiSSL
2019-04-08 12:49:13 +01:00
Chris Young
0a72449f4b
Allow for building against AmiSSL instead of OpenSSL
2019-04-08 12:49:06 +01:00
Chris Young
7c9066b49f
No reason why RISC OS ,type extensions should end up in the Amiga resources any more
2019-03-17 23:59:55 +00:00
Chris Young
d0a9fc3e35
Fix IORequest duplication and ensure library bases are cleared when closed.
2019-03-17 23:43:47 +00:00
Chris Young
7d402ebc46
Reduce compression level for compatibility with Amiga LhA 2.15
2019-03-15 23:18:43 +00:00
Chris Young
446fd392e8
Ensure the message port has been initialised
2019-03-15 18:19:10 +00:00
Michael Forney
6455a2ea83
SVG content handler: Fix plot style stroke_width
...
In 8332bf6b2a
, when the stroke width was moved from a parameter to
the plot style field, it accidentally used the `stroke` field of
the svgtiny shape (the color) instead of `stroke_width`.
Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
2019-03-05 11:17:07 +00:00
Vincent Sanders
826474a1a3
use memcpy instead of strcpy to make the dom string copy intention explicit
2019-03-04 17:32:41 +00:00
Chris Young
13a7004e6b
Fix URL + FORCE issue #2635
2019-03-02 23:30:38 +00:00
Vincent Sanders
61891ada50
validate the form button element type attribute as per spec
...
https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type
says if the type attribute is anything but "reset" or "button" it
is of "submit" type. The previous logic was incorrect and only used
the button if its type was explicitly submit and noting else.
2019-02-22 21:11:34 +00:00
Vincent Sanders
f367b23d72
free language vector in framebuffer resource setup
2019-02-21 12:11:55 +00:00
Vincent Sanders
00ce87551c
Fixup copyright year
2019-02-19 22:10:43 +00:00
Vincent Sanders
070c74b648
add webp image handler
2019-02-17 12:09:17 +00:00
Vincent Sanders
6185b254ca
improve some comments
2019-02-17 12:08:23 +00:00
Vincent Sanders
09bbb4571b
tidy up bmp and ico makefile entries to be one per line
2019-02-17 12:07:06 +00:00
Daniel Silverstone
e2d5ef5ebe
MAKEFILE: Update pkg_config_find_and_add_enabled for default CFLAGS
...
Since 90% of the time we can pre-calculate the CFLAGS for a
pkg-config enabled feature, let's do just that to ensure fewer
confusion moments as we add new pkg-config libraries.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-17 11:50:52 +00:00
Daniel Silverstone
d4d57bc0ed
DUKKY: Remove LOG/JS_LOG macros, update to dukky category
...
Update the logging levels, change to NSLOG across the board,
and ensure that we use the `dukky` category now added for us.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-17 11:33:37 +00:00
Daniel Silverstone
41eed8eeaf
Use NSLOG rather than LOG/JS_LOG
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-17 11:33:28 +00:00
Daniel Silverstone
f64da1abda
LOG: Add a dukky logging category
...
For better logging separation, add a dukky logging category
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-02-17 11:32:48 +00:00