1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00
Commit Graph

1066 Commits

Author SHA1 Message Date
Witold Filipczyk
541303cbff [modules] Additional function getname
When non NULL it will be return module name and version.
2024-09-26 16:19:26 +02:00
Jon Daniel
748594a6ab silence signedness warnings 2024-09-24 23:39:30 +02:00
Witold Filipczyk
59fc662651 [refactor] src/ecmascript -> src/js 2024-09-24 21:51:24 +02:00
Witold Filipczyk
da93f8f374 [integrity] store integrity value in url . Refs #284
For ecmascript it is '^integrity\0url'.
Weak points:
Bad script is not executed, but is stored in cache, so next requests will take it from cache, not from network.
Checksum is calculated everytime script is loaded (it can be many times per second).
Scripting pre_format_hook can modify the body of script and cause a wrong checksum.
Error message is written to stderr.
2024-09-24 15:54:32 +02:00
Witold Filipczyk
0cbc3d4a5c [cache] Added integrity check for scripts. Refs #284
Now only for Spidermonkey and OpenSSL.
SHA512, SHA384 or SHA256 were added.
URIs are stored in map, which is not cleared yet.
2024-09-23 20:42:15 +02:00
Witold Filipczyk
d0679383c6 [qsort] Compilation fix 2024-09-21 19:09:40 +02:00
Witold Filipczyk
a6d5623c2a [doc] get_root element in fire_onload
It did not help, but it did not break either.
2024-09-09 16:51:52 +02:00
Witold Filipczyk
d8cb487650 [css] Free old_node_data 2024-09-07 10:30:01 +02:00
Witold Filipczyk
30741b0676 [plain] Replace - by BORDER_SHLINE if next_char is -
Spotted in bittorrent.txt.
2024-09-03 17:09:05 +02:00
Witold Filipczyk
d501d762ea [libdom] find_offset similar to find_in_map
Also with bsearch, but this time elements are explicitly sorted.
2024-08-25 12:46:33 +02:00
Witold Filipczyk
1a26f492ea [typo] No NULL. Refs #318 2024-08-25 12:07:21 +02:00
Witold Filipczyk
45486090c6 [css] Check NULL 2024-08-24 20:11:58 +02:00
Witold Filipczyk
cdada4b04d [css] Modified find_in_map. Refs #317
Instead of hash, array which can be binary searched.
Performance is not as good as original css, but is tolerable.
2024-08-24 19:22:35 +02:00
Witold Filipczyk
50401d3055 [css] More dom_node_unref
Subsequent calls to el_match_selector cause memleak.
Need to resolve it.
2024-08-11 18:51:51 +02:00
Witold Filipczyk
d805d4bdbf [css] dom_node_unref in parent_node
Test element.matches.html passes
2024-08-10 20:52:49 +02:00
Witold Filipczyk
159eda99c0 [ecmascript] Some debug statements in mujs and quickjs
mujs and quickjs have different order of executing finalizers,
so differences in (not) releasing memory.
2024-08-07 16:31:27 +02:00
Witold Filipczyk
2fd55215a7 [quickjs] Commented out dom_node_ref
dom_node_ref should be added in places where is JS_SetOpaque.
2024-07-24 17:51:23 +02:00
Witold Filipczyk
95f45b7327 [quickjs] memleaks 2024-07-19 21:01:58 +02:00
Witold Filipczyk
ecf1b56c5f [quickjs] Free uri string 2024-07-16 21:31:46 +02:00
Witold Filipczyk
2988237889 [libdom] Dups 2024-07-16 19:47:27 +02:00
Witold Filipczyk
0ce218f66e [ecmascript] warnings 2024-07-15 21:00:03 +02:00
Witold Filipczyk
298588ad18 [ecmascript] Moved list of timeouts to ecmascript_interpreter from document 2024-06-30 13:58:46 +02:00
Witold Filipczyk
e8afed7c5c [quickjs] Check whether node is "active" before returning it
Deleted nodes by libdom are removed from map and next request for such
nodes in getOpaque will return NULL.
2024-06-20 18:21:31 +02:00
Witold Filipczyk
761752239f [ecmascript] Try to not put_interpreter when page is modified 2024-06-08 14:08:28 +02:00
Witold Filipczyk
ffa6c0c2a7 [meson] / operator for paths 2024-06-03 17:22:24 +02:00
Witold Filipczyk
5efad5b30a [spidermonkey] fire_onload
This function is to dispatch the "DOMContentLoaded" event.
2024-05-28 21:07:59 +02:00
Witold Filipczyk
7885fb0797 [libdom] debug_dump_xhtml
Helper function which print current state of document, called
after modification of DOM tree.
2024-05-17 22:05:25 +02:00
Witold Filipczyk
5c92b4ee96 [libdom] Free keyboard and dom related strings 2024-05-12 18:52:27 +02:00
Witold Filipczyk
8a2e85b73f [dom] keyCodes like in Firefox
KeyboardEvent.keyCode returns 0 in Firefox for test case.
I won't change the test, because elinks relies on libdom API.
2024-05-12 16:51:04 +02:00
Witold Filipczyk
20ab63c1d1 [spidermonkey] KeyboardEvent.keyCode (Enter only)
Only Enter is handled. Strings are not "finalized".
2024-05-12 13:17:15 +02:00
Witold Filipczyk
4439f4e976 [spidermonkey] convert keyCode to dom_string 2024-05-12 12:11:26 +02:00
Witold Filipczyk
abc307e86b [libdom] Added add_lowercase_to_string
Replace uppercase with lowercase in tag names in html "rewrites"
2024-05-08 15:27:48 +02:00
Witold Filipczyk
cc718c30b5 [spidermonkey] document.querySelector
It passes test case.
2024-05-05 16:58:10 +02:00
Witold Filipczyk
af20c0e7e8 [css] execute old css code, when libcss is disabled, but compiled-in 2024-04-22 20:59:30 +02:00
Witold Filipczyk
d86ce27523 [css] Add to the end of list. Refs #301
It needs more testing.
2024-04-20 20:06:45 +02:00
Witold Filipczyk
cdf02f5e0c [libcss] Removed unused function 2024-04-18 17:12:27 +02:00
Witold Filipczyk
5db5d33911 [libdom] Check charset in document only when it was not present in headers 2024-03-12 21:41:06 +01:00
Witold Filipczyk
9c04585e84 [terminal] Add cell_height and cell_width to structs unconditionally. Refs #288 2024-03-07 08:22:57 +01:00
Witold Filipczyk
f762775b9d [ecmascript] Commented out clientHeight and similar properties
Code is not ready yet.
2024-03-02 19:13:45 +01:00
Witold Filipczyk
862dfcc672 [document] parse meta also when there are headers 2024-02-28 20:37:24 +01:00
Witold Filipczyk
84660b694d [node] get_element -> get_element_rect 2024-01-27 13:53:24 +01:00
Witold Filipczyk
9e743f0e80 [renderer] Reorder instructions 2024-01-26 19:02:26 +01:00
Witold Filipczyk
9e3d874577 [document] Added function scan document
This function must calculate dimensions of nodes in document.
Every node has a rectangle. x0,y0 is the left up corner, x1,y1 - the right bottom.
In theory every child of given node is contained in this rectangle.
2024-01-26 18:43:33 +01:00
Witold Filipczyk
5c8b62247a [screen] Test commit. Added element_offset to struct screen_char 2024-01-21 17:02:09 +01:00
Witold Filipczyk
103669e825 [html5] Also add NAV element. Refs #282 2024-01-07 20:11:00 +01:00
Witold Filipczyk
ef80897185 [html5] Stubs for html_main and html_article. Refs #282 2024-01-07 11:43:18 +01:00
Witold Filipczyk
69edab0036 [libcss] initialize unit_len_ctx with zeroes 2024-01-07 11:41:52 +01:00
Witold Filipczyk
389df54184 Revert "[head] addcrlf". Refs #281
This reverts commit 90d4f17031.
2024-01-06 09:33:40 +01:00
Witold Filipczyk
2fdb04a6ab [libcss] bump libcss to 0.9.2 and libdom to 0.4.2
Needs some tweaks. Code is compilable at least.
2024-01-01 17:47:59 +01:00
Witold Filipczyk
2ace5374c8 [cast] cast to intptr_t to silence compiler 2023-12-08 11:14:27 +01:00