| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
unused
|
| |
|
| |
|
|
|
|
|
|
| |
* remove contentType member of Buffer object
* add ishtml to reduce string comparisons
* consistent spelling: contenttype -> contentType
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of the broken attempt at making regexes zero-copy (it copied
anyway), copy once and forget about it.
(There have been way too many problems with the destructor approach,
including the latest one where the GC would happily zero out our
regexes if they were in a sequence.
Maybe we can make this work once we switched to ORC. For now, it's
not worth the trouble.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Makes e.g. on-page anchor navigation near-instantaneous. Well, as
instantaneous as a fork can be. In any case, it's a lot faster
than loading the entire page anew.
This involves duplicating open resources (file descriptors, etc.),
which is not exactly trivial. For now we have a huge clone() procedure
that does an ok-ish job at it, but there remains a lot of room for
improvement.
e.g. cloning is still broken in some cases:
* As noted in the comments, TeeStream'ing the input stream for any
buffer is a horrible idea, as readout in the cloned buffer now
depends on the original buffer also reading from the stream. (So
e.g. if you clone, then kill the old buffer without waiting for
the new one to load, the new buffer gets stuck.)
* Timeouts/intervals are broken in cloned buffers. The timeout
module probably needs a redesign to fix this.
* If you clone before connect2, the cloned buffer gets stuck.
The previous solution was even worse (i.e. broken in more cases),
so this is still an improvement. For example, this fixes some issues
with mailcap handling (removes the "set the Content-Type of htmloutput
buffers to text/html" hack), does not reload all resources, does not
completely break if the buffer is cloned during loading, etc.
|
| |
|
|
|
|
|
| |
Remove side effects from assert statements.
The flag is not used currently, but let's not depend on that.
|
|
|
|
|
|
|
|
|
|
| |
* ips -> io/
* loader related stuff -> loader/
* tempfile -> extern/
* buffer, forkserver -> server/
* lineedit, window -> display/
* cell -> types/
* opt -> types/
|
| |
|
| |
|
|
|
|
|
| |
sig is injected into the template body, but then never used, so we
discard it.
|
|
|
|
| |
Before Nim 2.0, addr could only be used with mutable variables.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Split out parts of the JS module, because it was starting to confuse
the compiler a little.
(Peakmem is back at 750M. Interesting.)
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 1
|
|
|
|
|
|
|
|
| |
* add mailcap: works with copiousoutput, needsterminal, etc.
* add mime.types (only works with mailcap)
* refactor pipeBuffer
* remove "dispatcher"
* fix bug in directory display where baseurl would not be used
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Import punycode, as it has been removed from stdlib.
* Fix some syntax errors
* Apparently you can no longer compare distinct pointers with nil.
Add explicit comparisons with typeof(nil) instead.
* htmlparser: rename _ to other, as semantics of _ have changed.
(Quite a shame, it looked better with _. Oh well.)
* Explicitly specify mm:refc, as the browser OOMs with orc for
some reason.
Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8.
(<1.6.8 it's broken & wontfix.)
|
|
|
|
|
|
|
|
| |
* Use the output charset in lineedit (as w3m does)
* encoder: fix broken UTF-8 encoding, use openArray instead of var
seq for input queue
* Add RuneStream as an in-memory interface to EncoderStream
* Document display-charset config option
|
|
|
|
|
| |
* Fix race condition in updateReadLineISearch
* Disable reshape during isearch
|
| |
|
|
|
|
| |
And with that, implement Request constructor with a Request init.
|
| |
|
| |
|
|
|
|
|
| |
This should help with moving to ORC in the future. (Also, finalizers
do not work very well in the first place.)
|
| |
|
| |
|
|
|
|
| |
Proper fix needed later
|
| |
|
| |
|
|
|
|
| |
Instead of setting the non-standard res variable.
|
| |
|
|
|
|
|
| |
Now we use Result for passing exceptions to JS. As a result, we can
finally get rid of the .jserr pragma.
|
|
|
|
|
| |
Now a promise returning nil doesn't just leave the rest of the then
chain hanging. Hooray.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
+ run JS jobs after every poll in headless mode
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quite incomplete canvas implementation. Crucially, the layout engine
can't do much with whatever is drawn because it doesn't support images
yet.
I've re-introduced multipart as well, with the FormData API. For the
append function I've also introduced a hack to the JS binding generator
that allows requesting the JSContext pointer in nim procs. Really I
should just fix the union generator thing and add support for overloading.
In conclusion, for now the only thing canvas can be used for is exporting
it as PNG and uploading it somewhere. Also, we now have PNG encoding and
decoding too. (Now if only we had sixels as well...)
|
|
|
|
|
| |
Still far from perfect, but now at least it has a bit more to do
with what the standard mandates.
|
| |
|
| |
|