about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* pager: reduce passFd callsbptato2025-04-131-26/+24
| | | | addPipe is unprivileged and preferable in general.
* config: unify table arrays and tablesbptato2025-04-114-92/+111
| | | | | | | | | | | | | | | | | | [[siteconf]] now just means [siteconf.0], etc. So you can now override parts of default siteconfs/omnirules, e.g. to change the Google search substitute-url, etc. To celebrate this, I've added some more default search engines: * wk: -> Wikipedia * wd: -> Wiktionary * ms: -> Marginalia Search These can be replaced by setting e.g. omnirule.wk = {}, etc. Also, siteconf = {} can be used to clear pre-defined siteconfs. This is an unfortunate deviation in semantics from TOML, but in practice the way it worked before didn't match the spec either, so at least it is now consistent.
* layout, render: fix positioning of absolute flex item descendantsbptato2025-04-102-51/+23
| | | | | | | | Always placing boxes relative to their parent *seems* prettier, but the implementation was broken and I can't come up with a sane working one. So we're back to just special casing position: absolute in render. Sad, but at least it works. (I think it's also a bit more efficient.)
* formdata: avoid sending CRLF for epiloguebptato2025-04-101-2/+0
| | | | | it *is* allowed by the RFC, but others don't do it and some servers choke on it.
* cookie: accept secure through http on localhostbptato2025-04-101-1/+1
| | | | others do this too
* cssvalues: add canvas, canvastext colorsbptato2025-04-091-0/+5
| | | | | I've set them to -cha-ansi(default) to avoid having to add even more color type flags.
* config: remove deprecated ColorMode valuesbptato2025-04-091-19/+0
|
* layout: always treat flex items as positioned boxesbptato2025-04-071-37/+41
| | | | | it still isn't really correct, they aren't supposed to behave as absolute positioning containers...
* layout: factor out canClear flagbptato2025-04-071-19/+14
| | | | ugly hack that is no longer needed
* layout: fix cleared floats not flushing previous exclusionsbptato2025-04-061-3/+14
| | | | | | | Well, I was trying to reproduce *another* float bug when I accidentally stumbled upon this... The fix is somewhat ugly, but not as bad as I expected.
* loader: support Set-Cookie for non-initial requestsbptato2025-04-058-109/+242
| | | | | | | | | For compatibility with mainstream browsers. e.g. this should allow log-ins through ajax. To synchronize the loader's cookie jar with that of the pager, we open a stream (about:cookie-stream) to pass over serialized cookies when required.
* mailcap: remove double negativebptato2025-04-041-1/+1
|
* mailcap: various fixesbptato2025-04-044-28/+31
| | | | | | | * print path on error (like in toml) * fix line tracking * accept non-ASCII commands * (also adjusted some error messages in config & toml)
* layout: correct table-caption width calculationbptato2025-04-031-35/+59
| | | | It's surprisingly tricky.
* csstree: add ::marker pseudo elementbptato2025-04-023-13/+28
|
* cssparser: ignore case in AnB parsing of odd/evenbptato2025-04-021-58/+65
|
* cssparser: optimize out some copiesbptato2025-04-025-457/+403
| | | | | | | | | The input buffer is no longer copied, and parseFloat32 gets an openArray instead of a copy of the string to parse. I've also simplified the parser somewhat so it now operates on openArrays of CSSComponentValues. It's still far more complex and wasteful than it should be, but it's progress.
* cssparser: fix escape sequence parsingbptato2025-04-011-1/+3
|
* config: fix semicolon handling in user-style importbptato2025-04-011-0/+8
| | | | | 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-014-43/+108
| | | | | I'm not 100% content with this syntax either, but it's a significant improvement over the previous solution.
* url, twtstr: misc cleanupbptato2025-03-292-28/+16
|
* dom: remove expensive assertionbptato2025-03-291-1/+0
|
* jserror: simplify custom error creationbptato2025-03-292-12/+14
| | | | | | | 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.)
* 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-273-36/+20
| | | | | | | | 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.
* 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...
* 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.
* xmlhttprequest: fix open with credentialsbptato2025-03-233-16/+14
| | | | | * 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
|
* cascade: map width/height for SVGbptato2025-03-211-4/+1
|
* Revert "csstree: improve intrinsic image sizing"bptato2025-03-212-6/+5
| | | | | | Never mind, it also broke some other things :( This reverts commit bc294d3284e0448b2f149ac6d905c8474508791d.
* csstree: improve intrinsic image sizingbptato2025-03-212-5/+6
| | | | | The algorithm itself is still fundamentally broken, but this at least prevents some cases of images becoming absurdly large.
* newhttp: drop libcurl dependencybptato2025-03-212-2/+1
| | | | 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-211-1/+1
|
* pager: remove unnecessary castbptato2025-03-211-1/+1
|
* Update libregexp/libunicode bindingsbptato2025-03-201-2/+2
| | | | Lack of cbool is a pain. I'm sticking with JS_BOOL for now.
* 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-142-21/+46
| | | | | 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-144-93/+173
| | | | | | | | | | 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.