1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00
Commit Graph

85 Commits

Author SHA1 Message Date
Witold Filipczyk
937f6b415e [ecmascript] Changed declarations of ecmascript_timeout
Also free functions in quickjs version.
2024-01-20 15:56:23 +01:00
Witold Filipczyk
d34ae1371d [ecmascript] clearInterval and setInterval
Changed return type of ecmascript_set_timeout.
Now it is pointer to struct ecmascript_timeout.
2024-01-19 22:10:02 +01:00
Witold Filipczyk
899304d6ef [viewer] form.cpp -> form.c 2023-11-28 15:41:48 +01:00
Witold Filipczyk
c14989ab91 [viewer] link.cpp -> link.c
Moved some code to ecmascript-c.cpp
2023-11-28 15:33:54 +01:00
Witold Filipczyk
8f431a126f [viewer] vs.cpp -> vs.c 2023-11-27 18:34:15 +01:00
Witold Filipczyk
970245b28a [protocol] protocol.cpp -> protocol.c 2023-11-25 17:06:11 +01:00
Witold Filipczyk
f70c1dc51b [main] module.cpp -> module.c 2023-11-25 14:30:05 +01:00
Witold Filipczyk
7acee28e2d [dialogs] Rename info.cpp to info.c
Long term goal is to able compile by only C compiler
if ecmascript is not compiled-in.
2023-11-25 13:11:21 +01:00
Witold Filipczyk
4375984708 [js] Distinguish between document.write(ln) and other modifications
Reparse document only for document.write(ln).
2023-09-25 10:52:19 +02:00
Witold Filipczyk
a67188413c [lists] LIST_HEAD -> LIST_HEAD_EL to not clash with libevent's LIST_HEAD. Also added curl implementation of ftpes and sftp
Implementation of ftpes and sftp is based on curl's hiperfifo example. It requires libevent.
ftpes only encrypts control channel. There were problems when both control and data were encrypted. It stucked on SIZE.
Only successful connections work, errors are not handled properly.
2023-06-19 18:43:53 +02:00
Witold Filipczyk
9a6edd69db [libdom] Possibility to build libcss code without ecmascript.
meson config option libcss enabled by default.
To enable libcss in elinks:
set document.css.libcss = 1
2023-05-15 19:13:38 +02:00
Witold Filipczyk
8ad10015f2 [ecmascript] Changes related to events (ontest.html) 2023-05-05 13:23:35 +02:00
Witold Filipczyk
31a89da35c [libdom] parse.h
Contains document_parse and document_parse_text.
2023-04-17 19:31:17 +02:00
Witold Filipczyk
b17f051f59 [libdom] document.write works for test cases 2023-04-10 19:32:02 +02:00
Witold Filipczyk
f562a8ed99 [quickjs] libdom implementation.c 2023-04-03 18:32:11 +02:00
Witold Filipczyk
934cad6bf3 [libdom,quickjs] attr 2023-03-15 18:23:28 +01:00
Witold Filipczyk
c71e501edf [quickjs] FreeRuntime 2023-01-21 15:38:53 +01:00
Witold Filipczyk
c8138381a4 [spidermonkey] JSAutoRealm 2023-01-19 18:52:18 +01:00
Witold Filipczyk
2f6cac0243 [ecmascript] Moved add_to_ecmascript_string_list to util/string.h 2023-01-01 09:04:20 +01:00
Sam James
5cb6021918
Fix build failures with mujs
Closes: https://github.com/rkd77/elinks/issues/204
Signed-off-by: Sam James <sam@gentoo.org>
2022-12-31 21:06:57 +00:00
Witold Filipczyk
764b0af2ba [ecmascript] Rewritten document.write
string list instead of single string.
2022-12-28 21:05:59 +01:00
Witold Filipczyk
583aec98f0 [document] Try to pass element_offset 2022-12-20 18:03:32 +01:00
Witold Filipczyk
865f3fa0d0 [ecmascript] Rewritten document.write
spidermonkey segfaults on test/ecmascript/document_write.html
quickjs and mujs do not.
2022-11-19 19:24:15 +01:00
Witold Filipczyk
7a9ba1184d [ecmascript] Added element_offset parameter to eval 2022-11-14 21:33:24 +01:00
Witold Filipczyk
0ff62b5ee8 [ecmascript] Added ecmascript_string_item_list.
This struct will contain info about current script element.
2022-11-14 21:17:24 +01:00
Witold Filipczyk
3276cb75a1 [tests] compilation fix 2022-10-13 15:53:54 +02:00
Witold Filipczyk
bce7e87bb8 [ecmascript] Handle more than 1 timeout at the same time. 2022-09-07 20:41:46 +02:00
Witold Filipczyk
46860128db [mujs] Added mujs to configure.ac and Makefiles 2022-08-21 21:33:13 +02:00
Witold Filipczyk
6e90827d3f [mujs] scroll2 and scroll3 2022-08-20 20:52:26 +02:00
Witold Filipczyk
4790ae9981 [smjs] Compilation fixes when -Dsm-scripting=true and -Dspidermonkey=false. Refs #176 2022-06-16 17:33:06 +02:00
Witold Filipczyk
2237cb002d [quickjs] Added location_goto_const to avoid some warnings 2022-01-14 19:48:40 +01:00
Witold Filipczyk
98d970d606 [spidermonkey] clearTimeout 2021-12-01 20:47:25 +01:00
Witold Filipczyk
adddbf53fb [quickjs] clearTimeout 2021-12-01 19:27:50 +01:00
Witold Filipczyk
38060fea51 [quickjs] scroll2.html works 2021-11-12 21:53:31 +01:00
Witold Filipczyk
183dca1c10 [quickjs] window.c 2021-10-31 20:48:10 +01:00
Witold Filipczyk
e15d58dfd1 [quickjs] element.c 2021-10-29 22:06:39 +02:00
Witold Filipczyk
33eab7d910 [ecmascript] Move location_goto to ecmascript.c 2021-10-22 10:44:37 +02:00
Witold Filipczyk
dc12c13244 [quickjs] Test commit. window.alert('Blabla') works. 2021-10-17 18:17:48 +02:00
Witold Filipczyk
6ffa7ec6e3 [ecmascript] Show message in status about enabling/disabling Ecmascript 2021-09-20 18:40:01 +02:00
Witold Filipczyk
929c8c9d81 [action] Added toggle-ecmascript action 2021-09-19 19:40:01 +02:00
Witold Filipczyk
5737a4d345 [console] console.error and fixes in jsval_to_string 2021-09-07 17:31:45 +02:00
Witold Filipczyk
7f572e7e4a [ecmascript] bump mozjs version to 68
Memory allocated in jsval_to_string is not freed anywhere.
2021-08-30 20:48:11 +02:00
Witold Filipczyk
4121b163c1 [ecmascript] Added some debug statements 2021-08-19 18:56:50 +02:00
Witold Filipczyk
13c4a1ce4d [spidermonkey] return location object
so document.location.href= redirects
2021-08-03 18:47:34 +02:00
Witold Filipczyk
927b8fc1a6 [js] moved check_for_rerender to ecmascript.c 2021-07-20 10:05:58 +02:00
Witold Filipczyk
871d47bf41 [js] Test commit for "rerendering" of page after modifcation by scripts 2021-06-05 21:58:29 +02:00
Witold Filipczyk
1af9c9fc31 [js] element.ownerDocument 2021-05-19 19:05:03 +02:00
nobody@earth.com
a19b95f20c [smjs local storage] spider monkey local storage 2021-02-22 23:27:19 +01:00
Witold Filipczyk
bc7a1ae6ad [console.log] Global variable to store console_log_filename 2021-02-22 15:55:12 +01:00
Witold Filipczyk
0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00