Commit Graph

767 Commits

Author SHA1 Message Date
Pierre Tachoire
07be51cd1d session: self destroy 2024-01-17 18:21:57 +01:00
Pierre Tachoire
25f290283b browser: rename allocator to alloc 2024-01-17 18:21:57 +01:00
Pierre Tachoire
4408c3dc5d browser: pass vm as argument 2024-01-17 18:21:57 +01:00
Pierre Tachoire
3f23f2e7ef browser: force UTF-8 by default for page encoding 2024-01-17 18:21:56 +01:00
Pierre Tachoire
a7fe94db88 browser: use directly the document as node 2024-01-17 18:21:56 +01:00
Pierre Tachoire
fb5fd6c742 browser: add async script comment 2024-01-17 18:21:56 +01:00
Pierre Tachoire
5d262fc026 loader: parse html per chunk 2024-01-17 18:21:55 +01:00
Pierre Tachoire
3a3da494dc get: upgrade jsruntime API changes 2024-01-17 18:21:55 +01:00
Pierre Tachoire
647fbc6ced browser: update document parse signature 2024-01-17 18:21:55 +01:00
Pierre Tachoire
e625e17597 get: add --dump option 2024-01-17 18:21:54 +01:00
Pierre Tachoire
cfacfc8db7 get: dump the HTML 2024-01-17 18:21:54 +01:00
Pierre Tachoire
2cdbf68526 browser: add a func to dump HTML 2024-01-17 18:21:54 +01:00
Pierre Tachoire
2aefd3736c typo fix 2024-01-17 18:21:53 +01:00
Pierre Tachoire
b778749511 browser: remove useless switch 2024-01-17 18:21:53 +01:00
Pierre Tachoire
b96a251c37 main: global document must be the html doc 2024-01-17 18:21:53 +01:00
Pierre Tachoire
c2ade9061b move window from nav to html 2024-01-17 18:21:52 +01:00
Pierre Tachoire
20b2bfa00e browser: parse http content-type 2024-01-17 18:21:52 +01:00
Pierre Tachoire
c94528dbd9 browser: refacto mime type parser 2024-01-17 18:21:52 +01:00
Pierre Tachoire
3be4e050ee browser: add a mime type parser 2024-01-17 18:21:51 +01:00
Pierre Tachoire
0652faaf20 browser: more consitent eval js result log 2024-01-17 18:21:51 +01:00
Pierre Tachoire
51cd959e8c browser: catch evalJS error and log them 2024-01-17 18:21:51 +01:00
Pierre Tachoire
670e920633 browser: rename log scope 2024-01-17 18:21:50 +01:00
Pierre Tachoire
5e8c9ccd1f browser: use std.Uri to fetch and resolve URIs 2024-01-17 18:21:50 +01:00
Pierre Tachoire
5ee1bbd68e browser: html document load next 2024-01-17 18:21:50 +01:00
Pierre Tachoire
a470a7eaef browser: add som steps comments 2024-01-17 18:21:49 +01:00
Pierre Tachoire
7d226a43b6 browser: window must survive between 2 pages
So window is moved to session
2024-01-17 18:21:49 +01:00
Pierre Tachoire
cc5280460e browser: add TODO for fragment URL 2024-01-17 18:21:49 +01:00
Pierre Tachoire
bd9c63f22f browser: update window injection TODO 2024-01-17 18:21:48 +01:00
Pierre Tachoire
0d32fc62ba browser: inject window global object 2024-01-17 18:21:48 +01:00
Pierre Tachoire
6ff121334f browser: refactor session and page
Now session owns the js env and the loader.
page start and stop the js session.
2024-01-17 18:21:48 +01:00
Pierre Tachoire
228f44a57d browser: add initVM/deinitVM in main 2024-01-17 18:21:48 +01:00
Pierre Tachoire
df2e6dcfc0 get: start work on get command 2024-01-17 18:21:47 +01:00
Pierre Tachoire
1642741027 browser: start browser API 2024-01-17 18:21:47 +01:00
Pierre Tachoire
b53d4a149c add nav web api 2024-01-17 18:21:47 +01:00
Francis Bouvier
86cc3d25dc Move some details implementation from EventTarget to the parser
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-17 15:29:48 +01:00
Francis Bouvier
ae6a714573 First implementation of Event system
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-17 00:12:57 +01:00
Pierre Tachoire
edadc92ec8 Merge pull request #155 from lightpanda-io/upgrade-jsruntime
upgrade jsruntime-lib
2024-01-16 16:04:49 +01:00
Pierre Tachoire
1573848775 upgrade jsruntime-lib 2024-01-16 15:53:44 +01:00
Pierre Tachoire
a461ecd7df Merge pull request #129 from lightpanda-io/html-collection-arraylike
dom: html collection: implement array like
2024-01-16 15:50:40 +01:00
Pierre Tachoire
93db41ff10 html_collection: update iterator values 2024-01-15 14:25:20 +01:00
Pierre Tachoire
b5d3f220f6 Merge pull request #74 from lightpanda-io/hmtlcollection-iterator
dom: add HTMLCollectionIterator
2024-01-15 11:27:50 +01:00
Francis Bouvier
5734b903ec Adapt HTMLCollectionIterator to HTMLCollection._item changes
And update jsruntime to fix the build

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-13 15:14:43 +01:00
Pierre Tachoire
7cef1bb550 Merge pull request #152 from lightpanda-io/bug-parse-4
Parsing crash due to encoding change
2024-01-12 15:53:20 +01:00
Pierre Tachoire
2981703b7f netsurf: add TODO on encoding change error code 2024-01-12 15:40:43 +01:00
Pierre Tachoire
0f24660707 netsurf: fix parser error values 2024-01-12 15:22:30 +01:00
Pierre Tachoire
028cd2331f netsurf: pass encoding to the parser 2024-01-12 15:22:30 +01:00
Pierre Tachoire
1a03412635 netsurf: add a test case for html parsing bug
https://github.com/lightpanda-io/libdom/issues/4
2024-01-11 16:50:21 +01:00
Pierre Tachoire
b83f3b5f5b Merge pull request #151 from lightpanda-io/fix-run-test
test: run classic test func
2024-01-11 16:27:26 +01:00
Pierre Tachoire
408482470b test: run classic test func 2024-01-11 16:13:07 +01:00
Pierre Tachoire
f59f36422c html_collection: free generated array like keys 2024-01-11 10:49:17 +01:00