Commit Graph

14350 Commits

Author SHA1 Message Date
Michael Drake
7745f224dc Internal stylesheet: Import the nscolour stylesheet. 2020-04-07 21:32:27 +01:00
Michael Drake
0e04059f53 about fetcher: Add about:nscolour.css generated colour stylesheet. 2020-04-07 21:32:27 +01:00
Michael Drake
9fa6ac7113 nscolour: Add function to get nscolour stylesheet. 2020-04-07 21:32:27 +01:00
Michael Drake
562f4f765c Local history: Convert to use nscolour. 2020-04-07 21:32:27 +01:00
Michael Drake
6a7729a04f Scrollbar: Convert to use nscolour. 2020-04-07 21:32:27 +01:00
Michael Drake
b55cc0c222 Page info: Convert to nscolour. 2020-04-07 21:32:27 +01:00
Michael Drake
d34f9ec04d Treeview: Convert to nscolour. 2020-04-07 21:32:27 +01:00
Michael Drake
efc8160d3c NetSurf: Setup the nscolour module on startup. 2020-04-07 21:32:27 +01:00
Michael Drake
13e0faa261 Buildsystem: Build the nscolour module. 2020-04-07 21:32:27 +01:00
Michael Drake
2e844636cb nscolour: Add nscolour module for NetSurf UI colours. 2020-04-07 21:32:27 +01:00
Michael Drake
0ab6249a64 Tests: Update test data for improved nsoption colour rendering. 2020-04-07 21:32:27 +01:00
Michael Drake
bdd1d2039c nsoption: Improve how we show colours in about:config. 2020-04-07 21:28:12 +01:00
Michael Drake
2da993756c nsoption: Use colour_rb_swap macro. 2020-04-07 21:28:12 +01:00
Michael Drake
30b9c088b0 Plot style: Add half lighten/darken helper variants. 2020-04-07 21:28:12 +01:00
Michael Drake
02400588e4 Local history: Improve look of keyboard nav cursor highlight. 2020-04-06 11:30:48 +01:00
Daniel Silverstone
cbc28d2c98
html: Also close js thread on html_stop()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-29 14:31:42 +01:00
Vincent Sanders
6b0cb5479f fix source object backing store documentation
fix formatting
add section on version 2 layout
2020-03-26 23:38:50 +00:00
Vincent Sanders
51dc59ecc9 remove unused constants 2020-03-26 23:38:50 +00:00
Daniel Silverstone
1053bcd3c1
Makefile: Add STMTEXPR detection for wapcaplet
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-26 22:05:21 +00:00
Vincent Sanders
34508fc3cd For some reason atari mkdir_all operation was using the wrong path separator 2020-03-25 21:54:12 +00:00
Vincent Sanders
959c561eb3 unit testing table of contents marker was wrong case 2020-03-24 13:03:51 +00:00
Vincent Sanders
06b709f71a Improve unit testing documentation headers and code blocks 2020-03-24 08:54:40 +00:00
Vincent Sanders
5bc21c0467 fix use of headings in integration test document 2020-03-24 08:49:29 +00:00
Vincent Sanders
fa1f1dcd11 fix start stop test to set launch options correctly 2020-03-23 17:41:05 +00:00
Vincent Sanders
9ec17b011b Document the integration test setup 2020-03-23 17:41:05 +00:00
Vincent Sanders
e070f13093 integration test remove remaining windows when browser has been quit 2020-03-23 17:41:05 +00:00
Vincent Sanders
710818f346 fix integration test repeat "max" handling 2020-03-23 17:41:05 +00:00
Vincent Sanders
9cb7d0ab48 make conditionals optional in integration test sleep-ms action 2020-03-23 17:41:05 +00:00
Vincent Sanders
19dded8cfa add ability for monkey farmer to launch browser with environment variables set 2020-03-23 17:40:53 +00:00
Daniel Silverstone
4cbdcc4aae
about: Add handling for unknown about: page
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 14:09:09 +00:00
Daniel Silverstone
9014dc7381
browser_window: Don't attempt to unref NULL lwc string
Fixes #2741

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 13:35:45 +00:00
Daniel Silverstone
d3a80a9aae
Monkey: Clean up on completion of downloads
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 13:08:36 +00:00
Daniel Silverstone
677d757a6c
browser_window: Re-add clearing of loading_content in download
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 12:59:22 +00:00
Daniel Silverstone
6a2ce2b3c7
HTML: Use new js_closethread()
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 10:18:30 +00:00
Daniel Silverstone
8f7bfb7b56
Window: Add flag to ensure we don't set timeouts after close
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 10:14:31 +00:00
Daniel Silverstone
d1e2eef18b
JS: Add concept of js_closethread
In order to better model content close vs destroy, add the concept
of closing a thread to the JS interface.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 10:14:00 +00:00
Daniel Silverstone
efbfaa0cb1
JS: Move ownership of jsthread from browser to htmlc
Since it makes more sense for the htmlc to be responsible for
when the JS thread gets destroyed, move its lifetime from the
responsibility of the browser window to the html content.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 10:00:29 +00:00
Daniel Silverstone
98e461a3b3
Dukky: Make heaps refcounted too
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-22 09:59:52 +00:00
Daniel Silverstone
80e7ac7345
Dukky: Add refcounting to threads
In order to cope with threads which manage to navigate entirely
while executing (sadly possible) we need to handle the possibility
that a thread is destroyed by the browser but still needs to live
until it returns from whatever exec it was doing at the time.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 20:49:40 +00:00
Daniel Silverstone
3c4652c1c3
Dukky: Upgrade dukky binding to support new heap/thread split
Update the duktape bindings and dukky interface to support the
new JS heap/thread split.  Heaps may have multiple active threads
though in general there will only be 2 at a time.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 20:01:38 +00:00
Daniel Silverstone
66a23c2560
Browser: Split JS threads between current and loading
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 19:35:15 +00:00
Daniel Silverstone
337082f715
JS: Add concept of thread destroy
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 18:57:57 +00:00
Daniel Silverstone
17b28e85c1
JS: Split concept of JS context into heap and thread
In preparation for proper splitting of Javascript support into
heaps and threads, this renames the types and corrects the no-js
builds to still work.  At this time no substantive change in
semantics exists, and the duktape build won't work.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 18:30:41 +00:00
Daniel Silverstone
313dc9b099
JS: Remove unused slow script callback
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-03-21 18:07:50 +00:00
Michael Drake
2503b17f02 nsurl: Fix parent path length. 2020-03-13 14:32:33 +00:00
Michael Drake
82e74efeab Browser window: Clean up cert chains when bw is destroyed. 2020-03-12 17:35:28 +00:00
Michael Drake
c5aaf45d8e Fetch: Squash use of uninitialised value in fetch_send_callback()
The `last_msg` member of `struct fetch` was not initialised on
creation of the structure.
2020-03-12 17:22:28 +00:00
Michael Drake
ca29c3b512 Framebuffer: Make some log messages deep debug. 2020-03-12 17:21:28 +00:00
Ori Bernstein
bf427e3b2a fix nsurl sizeof/offsetof 2020-03-12 15:07:08 +00:00
Michael Drake
7d06021e21 nsurl: Make nusrl component dump more usable.
This is only a development aid, and not something that should
be called in production.
2020-03-11 11:02:40 +00:00