Vincent Sanders
dbf02c37f4
complete basic binding documentation
...
improve the alert() method parameter handling
2019-05-06 12:04:06 +01:00
Daniel Silverstone
183f9ed8bc
Example script console log test, needs genericising on path
...
Currently this has to have a full-path to the inserted-script test
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00
Daniel Silverstone
4db81370f3
Support logging in monkey_driver.py
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00
Daniel Silverstone
6bbb672c57
Monkeyfarmer: Support logging
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 11:02:36 +01:00
Vincent Sanders
dd96a69573
fix several amiga frontend warnings
2019-05-06 10:32:16 +01:00
Daniel Silverstone
10930fcbaf
Properly set log levels
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:17:00 +01:00
Daniel Silverstone
6fdc692aa5
Support DEBUG log level in console_log
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:16:48 +01:00
Daniel Silverstone
1be9127ee7
Update using-monkey docs for console logging output
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:11:47 +01:00
Daniel Silverstone
2b8531ff49
Monkey: Support console_log
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 10:04:48 +01:00
Daniel Silverstone
0312c45d6f
Use console_log from browser_window_console_log
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 09:49:46 +01:00
Daniel Silverstone
d240174741
Add console_log to gui tables
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-06 09:49:11 +01:00
Vincent Sanders
d27027d4ba
fix type used with content_get_source_data()
2019-05-06 08:13:00 +01:00
Vincent Sanders
35bc2ccbb8
change content get_source_data interfaces to return uint8_t and size_t
...
previously these interfaces returned char * and unsigned int which was
undesirable.
2019-05-05 22:50:25 +01:00
Vincent Sanders
f966580d22
remove some warnings in amiga frontend build
2019-05-05 22:48:44 +01:00
Daniel Silverstone
8dc7869937
Use console formatting to prove it out
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
67da94a537
Use consoleFormatter in Console.bnd
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
846e811760
Generics: Add consoleFormatter
...
In order to support the console logging formatting specification
as per https://console.spec.whatwg.org/#logger we need to implement
the Formatter(...) algorithm which is easier done within JavaScript
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
8b4ec11b89
Dukky: Change from specifically named generics
...
Instead of specifically having to extract each generic by name,
such as makeListProxy, instead support the entire generics table
and use `dukky_push_generics()` to gain access to it.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
8474c5d4c0
Logging: migrate and provide content interface
...
Migrate the console enums into netsurf/console.h and add
support so that contents can raise a message to log to
the console.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Daniel Silverstone
6952a23946
Provide new browser_window_console_log() API
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 22:17:10 +01:00
Michael Drake
5e1f4c406d
data url handler: drop logging to DEEPDEBUG.
2019-05-05 20:39:26 +01:00
Michael Drake
fb1d9862f9
data url handler: Keep nsurl to avoid copy.
2019-05-05 20:36:19 +01:00
Michael Drake
47e47244a9
data url handling: avoid needless allocation / copy.
2019-05-05 20:23:25 +01:00
Michael Drake
c76b5ef4d5
data URL handler: constify some string pointers.
2019-05-05 20:11:21 +01:00
Daniel Silverstone
3ba50e8574
Force a GC to ensure old compartment goes away
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 18:51:41 +01:00
Daniel Silverstone
ac512958ff
Ensure we clear the cbt entry after finishing a non-recurring callback
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 18:51:25 +01:00
Vincent Sanders
e27df0c0b8
make missing xxd command fail the build correctly
2019-05-05 16:07:27 +01:00
Daniel Silverstone
689458aa6e
Monkey: Support WINDOW EXEC WIN n cmd...
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Daniel Silverstone
3021142aad
Support content_exec for content_html
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Daniel Silverstone
1146f8bf49
Add browser_window_exec
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Daniel Silverstone
f3892c98fd
Add content_exec and associated vtable entry
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Daniel Silverstone
ec0028bdb9
Add SCRIPT to core domstrings
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 16:00:03 +01:00
Vincent Sanders
efdea7757b
fix enum name incompatability between gtk 2 and 3
2019-05-05 15:38:19 +01:00
Daniel Silverstone
9a3b644bf0
Replace zd with PRIsizet to appease Windows
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-05 14:55:08 +01:00
Daniel Silverstone
4394dbd9d4
Add missing semi-colon. Sorry
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 23:15:13 +01:00
Vincent Sanders
d566debc48
change back to unsigned long to avoid warning on gnueabihf platforms
2019-05-04 23:11:14 +01:00
Daniel Silverstone
6dfc0f1486
Support nodelist indexing
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 23:06:20 +01:00
Vincent Sanders
38a65c0242
add some comments to window location binding
2019-05-04 22:48:50 +01:00
Vincent Sanders
e8cd7c6614
add some more javascript binding documentation
2019-05-04 22:48:50 +01:00
Vincent Sanders
5dca74b911
add webidl spec reference
2019-05-04 22:48:50 +01:00
Daniel Silverstone
274b4a2d2e
Support Document::createDocumentFragment
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 21:56:07 +01:00
Daniel Silverstone
2f1526653f
Expose Number and Error on Window
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 21:55:54 +01:00
Daniel Silverstone
85a4792280
Add createElementNS
...
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-05-04 17:57:45 +01:00
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