| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Use prepend-scheme = '' instead.
|
| |
|
|
|
|
| |
It has caught some minor bugs.
|
| |
|
| |
|
|
|
|
|
|
| |
We weren't compensating for it at all, so it's kind of pointless.
(AFAIK it only ever differs from the window size on XTerm, where you can
just set maxGraphicSize anyway.)
|
|
|
|
| |
Allows branching on the scheme without string comparisons.
|
| |
|
| |
|
| |
|
|
|
|
| |
Hopefully this didn't break anything...
|
| |
|
| |
|
|
|
|
| |
and make it autorefresh so the UX is halfway sane
|
|
|
|
| |
I wonder if it would be better to just resume in the buffer.
|
| |
|
|
|
|
|
|
| |
It's a bit tricky, because "username only" means "try with the username
only" only if no password has been recorded for the username on the
origin.
|
|
|
|
| |
It's OK to store it in headers.
|
|
|
|
| |
addPipe is unprivileged and preferable in general.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[[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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
* print path on error (like in toml)
* fix line tracking
* accept non-ASCII commands
* (also adjusted some error messages in config & toml)
|
|
|
|
|
| |
I'm not 100% content with this syntax either, but it's a significant
improvement over the previous solution.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
This time, I've also ported over the consistency check to prevent some
ownership bugs.
Unfortunately, the check is very limited, and it is still possible to
double-free or leak JSValues. I think it would be possible to make
coverage 100%, but only with ARC...
|
|
|
|
|
| |
In theory, it is possible for rename to succeed before the buffers are
flushed, and then we lose data.
|
| |
|
|
|
|
|
|
|
| |
We sent the two packets at the same time anyway.
(Status could have been sent earlier in some cases, but there is no
point - it's unused until after all headers have been received.)
|
|
|
|
|
| |
This adds a runtime check to packet readers to ensure that all fds have
been read, and switches to seqs for packet writers.
|
|
|
|
|
| |
Conflating buffered streams with non-buffered streams is generally a
bad idea.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we just pass down the value of n and check errno, plus
readDataLoop/writeDataLoop returns a bool indicating whether it failed.
For now this seems to work OK, but maybe I'll add a better abstraction
in the future.
EOFError is still used for handling failed packets; this is brittle,
and should be replaced once we have a proper buffering mechanism for
them. (That will also let us kill BufStream.)
Unrelated: this also fixes a bug in buffer with cacheId.
|
|
|
|
|
|
|
|
| |
and throw out the conflict resolution logic; it doesn't matter much if
we override an old cache file, as it should have been cleaned up anyway.
I've also replaced dirExists + createDir with a single mkdir at call
sites. If it fails, so be it.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We were painting the background box in render for dump mode, but this
conflicted with the standard requirement that the canvas be painted
before other elements. So now we handle this directly in the pager.
Conveniently enough, this also fixes the issue of canvas color adding
pointless spacing to pages (which often made the selection feature less
useful.)
|
|
|
|
| |
ref. https://todo.sr.ht/~bptato/chawan/43
|
|
|
|
| |
Event handler functions can be set twice now.
|
|
|
|
|
| |
Dump mode remains the same, except now it can be controlled in
config.toml as well.
|
| |
|
|
|
|
| |
just a waste of space
|
| |
|
|
|
|
|
|
|
|
| |
Significantly more efficient in long running commands (as the context
switch is gone).
For many commands in quick succession... it replaces the fcntl with
a tcsetattr, so I guess it's the same?
|
|
|
|
| |
ok now I understand why I made shareCachedItem crash...
|
|
|
|
| |
probably breaks with TLA
|
|
|
|
|
| |
This means we can now use about:downloads for downloads.
Plus it shaves off some ks from the distribution.
|