about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* cssparser: fix escape sequence parsingbptato2025-04-013-1/+8
|
* config: fix semicolon handling in user-style importbptato2025-04-013-4/+12
| | | | | ok so apparently you can leave out the semicolon, but *only* if the at rule is at EOF
* config: remove exceptionsbptato2025-04-011-164/+187
| | | | | in this case they actually made sense, but I want to remove them altogether
* config: add user-style, deprecate [css] and stylesheetbptato2025-04-018-71/+174
| | | | | I'm not 100% content with this syntax either, but it's a significant improvement over the previous solution.
* tinfl: small cleanupbptato2025-03-312-11/+6
|
* url, twtstr: misc cleanupbptato2025-03-292-28/+16
|
* dom: remove expensive assertionbptato2025-03-291-1/+0
|
* jserror: simplify custom error creationbptato2025-03-297-75/+70
| | | | | | | The old API was needlessly complex and suggested that it could only be used for DOMException (which is not the case). (Also optimized out code lookup from the DOMException constructor.)
* config.toml: restore old UA stringbptato2025-03-281-1/+1
| | | | | | | | | | | | | | | Originally I added Mozilla/5.0 because Google refused to serve valid HTML without it, and some websites really disliked us not sending it. Since then, I've had to special case Google anyway because now it only serves usable results to a specific set of UA strings. Meanwhile, an aggressive client blocking software has been spreading lately, which shows a (broken, for various reasons) JS POW page if you *do* send Mozilla/5.0. So I guess it's better to switch back for now. The drawback of course is that now we are broken on sites that expect us to send Mozilla/5.0. Hopefully this is no longer as common as before.
* Update docsbptato2025-03-281-2/+2
|
* Monoucha version 0.10.0bptato2025-03-284-11/+36
|
* xhr: support FormData/string in POST, remove redundant trybptato2025-03-281-11/+28
|
* loader: respect credentials modebptato2025-03-284-17/+37
|
* lunit: fix toFloat32 return typebptato2025-03-281-1/+1
|
* layout: remove DisplayBlockLike checkbptato2025-03-281-4/+1
| | | | Doesn't seem to be necessary anymore.
* layout: refactorbptato2025-03-282-619/+579
| | | | | | * layoutBlockChild has two branches less * better separation of code into individual layouts; layout() is now the main entry point for inner layout
* dom: fix a style invalidation bugbptato2025-03-271-5/+8
| | | | Clearing the entire dependedBy array in applyStyleDependencies is wrong.
* layout: reimplement list items with out-of-flow markersbptato2025-03-275-36/+32
| | | | | | | | Instead of generating a separate container box for list items, just set the marker's display to an internal value that is treated specially. This fixes a bug where position: relative would not register the correct block as the positioned ancestor.
* newhttp: send connected directly after establishing connectionbptato2025-03-261-5/+5
|
* render: fix formatting generated for paddingbptato2025-03-251-29/+15
| | | | | | | | | | | | | | The old logic was badly copy pasted from the pass that did text formatting; accordingly, it was overly complex and did not work correctly. Now we just add a single formatting cell to override the last one if it exists. (Formatting cells go from x position -> next cell or line end, and padding implies that the line had ended before the starting position of our text.) I've left in a workaround to what I think is a bug. It may be related to cursorNextLink getting stuck at the line's end...
* bonus: update makefile, filei docsbptato2025-03-252-6/+5
|
* event: fix some refcounting bugsbptato2025-03-241-4/+10
| | | | | | | | * only free callback after setting it to undefined (just in case JS observes the free with WeakMap etc.) * do not directly call callback; QJS really doesn't seem to like it when it deletes itself with removeEventListener * fix a leak with handleEvent
* loader: do not crash on shareCachedItem with invalid source/target pidsbptato2025-03-241-3/+6
| | | | | This may happen if the buffer crashes while pager is trying to share its resources.
* newhttp: clean up state machine, fix a brotli bugbptato2025-03-241-152/+179
| | | | | | | | | The issue with brotli was that we were calling toOpenArray with a uint, and that doesn't really work in Nim (even though it looks like it does). So I've removed the circular buffer from brotli and made oqoff an int for tinfl (which unlike brotli actually needs a circular buffer).
* xmlhttprequest: fix open with credentialsbptato2025-03-234-17/+15
| | | | | * ignore username/password if undefined * do not throw on subsequent fetch with username/password
* env, client: fix fetch on Clientbptato2025-03-232-1/+7
|
* env: make MediaQueryList an EventTargetbptato2025-03-231-2/+3
|
* newhttp: add brotli supportbptato2025-03-222-4/+96
|
* newhttp: explicitly ignore trailersbptato2025-03-221-15/+35
| | | | | Others don't support them either. (Firefox claims to, but only really decodes Server-Timing for debugging.)
* lcgi_ssl: disable DHEbptato2025-03-221-1/+1
|
* cascade: map width/height for SVGbptato2025-03-211-4/+1
|
* Revert "csstree: improve intrinsic image sizing"bptato2025-03-214-35/+5
| | | | | | Never mind, it also broke some other things :( This reverts commit bc294d3284e0448b2f149ac6d905c8474508791d.
* csstree: improve intrinsic image sizingbptato2025-03-214-5/+35
| | | | | The algorithm itself is still fundamentally broken, but this at least prevents some cases of images becoming absurdly large.
* newhttp: drop libcurl dependencybptato2025-03-216-171/+243
| | | | Now it only does HTTP/1.1, with Connection: close.
* loader: fix some CGI header parsing bugsbptato2025-03-211-1/+6
|
* jsutils: add toJSValueConstArray, toJSValueConstOpenArraybptato2025-03-212-2/+9
|
* pager: remove unnecessary castbptato2025-03-211-1/+1
|
* Update libregexp/libunicode bindingsbptato2025-03-204-16/+20
| | | | Lack of cbool is a pain. I'm sticking with JS_BOOL for now.
* quickjs: remove JSValue comparison overloadbptato2025-03-201-2/+6
| | | | | | it doesn't really do what you would expect, better use JS_Is* functions (also, it broke 32-bit builds)
* bonus: add new http handler with tinflbptato2025-03-207-2/+1292
| | | | not much else is done yet, but it's a start
* Cast Pid to IntAlex2025-03-151-1/+1
|
* layout: eliminate pointless flex relayoutsbptato2025-03-151-5/+12
|
* layout: implement cross auto margins in flexbptato2025-03-144-21/+71
| | | | | Also removes the computation of underflow on the end margin for blocks; as far as I can tell, this was never used.
* loader, forkserver: launch CGI processes from fork serverbptato2025-03-145-113/+193
| | | | | | | | | | Well, it's not much prettier... but it will be useful for keep-alive. (Hopefully.) Also, loader could now be locked down capsicum/pledge/seccomp, but I'm not sure if there's a point. The biggest potential threat it faces is cross-contamination of handles, and no amount of syscall filtering is going to protect against that.
* forkserver: clean up, do not panic on forkBuffer failurebptato2025-03-142-59/+36
| | | | | | | | | I've removed the SIGINT trap because the fork server is now in a separate process group than the main process anyway. We'll see if this actually works... Also realized we weren't closing the fork server's control stream on fork; now we do.
* forkserver: simplify & improve process cleanupbptato2025-03-134-37/+10
| | | | | | | | | | Instead of trying to track child pids (which is wrong - a child may die at any time for whatever reason, so we could have ended up murdering some random process that took its place...), just setsid on forkserver start and send SIGTERM to the entire process group on termination. Also removed the loader pid from the FileLoader object, as it is no longer useful.
* cascade: also blockify inline-flex/(inline-)?grid itemsbptato2025-03-131-1/+1
|
* twtstr: normalize char constantsbptato2025-03-131-7/+7
|
* dom: fix cache-control whitespace handlingbptato2025-03-121-10/+9
|
* headers: hide table, always specify guardbptato2025-03-1210-87/+101
|