about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* config: allow modification through JSbptato2023-08-275-59/+133
| | | | | | | This used to be possible until I moved everything under separate headers to their respective objects. Now it works again, mostly; modification of some attributes is still missing.
* javascript: allow by-ref getters to non-ref objectsbptato2023-08-271-36/+161
| | | | | | | | This makes not creating separate reference types for SameObject attributes possible. Also add a fromJS2 "hook" to allow defining fromJS behavior in modules other than javascript.
* Allow overriding libcurl namebptato2023-08-262-4/+10
| | | | for better compatibility with curl-impersonate
* mailcap: fix newline parsingbptato2023-08-261-1/+1
| | | | skipBlanks should not consume newlines.
* config: fix overriding default headersbptato2023-08-263-28/+27
| | | | | * simplify ActionMap reading * introduce separate case for Table
* Allow overriding default headersbptato2023-08-266-16/+19
|
* toml: various fixesbptato2023-08-261-8/+11
| | | | | * Increase line counter on newline in array & inline table parsing * Fix broken inline table parsing
* javascript: misc. refactoringsbptato2023-08-244-49/+37
| | | | | | | | | | | | * Remove some unused properties from objects * Un-extern JSFunctionList * Remove js/javascript dependency from regex (the wrapper functions were rather pointless) * Remove setProperty (only toJS(Table) used it, but there we have to use defineProperty instead.) * Accordingly, use definePropertyCWE in toJS(Table) * Simplify fromJSTable (replace pointer arithmetic with UncheckedArray) * Reduce implicit `result' usage
* doc: quote semi in mailcap examplebptato2023-08-241-1/+1
| | | | for clarity
* dom: add some null checks for windowbptato2023-08-232-5/+9
| | | | | | | Now that we have established that window *can* be nil. (Though the document.location window null check is probably unnecessary, because it is only called from scripts... but better safe than sorry.)
* DOMParser: use correct URLbptato2023-08-232-10/+13
| | | | | | | | Use current document's URL if window && window.document, otherwise default to about:blank. Also, it seems that passing nil to window is really necessary in some cases, so remove notes indicating otherwise.
* javascript: optimize unforgeable definitionbptato2023-08-231-16/+26
| | | | | | | | | Walking the prototype chain for every single type just so we can define the few LegacyUnforgeable properties we need is not the greatest idea. Instead, we now merge LegacyUnforgeable lists with those of ancestor prototypes, which reduces the entire ceremony to a single `get' from the global table.
* javascript: simplifybptato2023-08-211-3/+2
|
* doc: add needsterminal to mailcapbptato2023-08-201-2/+5
|
* doc: fix incorrect pathbptato2023-08-201-1/+1
| | | | s/mailcap/mime.types/g
* javascript: remove stray eprintbptato2023-08-201-2/+0
| | | | oops
* client: make `client.client' a getterbptato2023-08-201-1/+3
| | | | This way we do not need the ugly getProperty call.
* javascript: finish LegacyUnforgeable + misc fixesbptato2023-08-205-77/+118
| | | | | | | | Add jsuffget, jsuffunc for setting LegacyUnforgeable on functions. Misc fixes: * define LegacyUnforgeable properties for native object shims * replace some macros with templates
* javascript: update Events, misc fixes & additionsbptato2023-08-205-205/+617
| | | | | | | | | | | | | | Events: just implement the interfaces, no events are triggered yet. JS changes: * add LegacyUnforgeable * make consts enumerable * fix crash in isInstanceOf * fix destructor warnings * refactor registerType As a result, peakmem is now 1G+ on 1.6.14. It stays ~750M on 2.0.0. Hmm. Well, better upgrade to 2.0.0 I guess.
* toml: fix quotation chars in multiline stringsbptato2023-08-191-7/+9
|
* Update todobptato2023-08-171-0/+1
|
* dom: remove dead codebptato2023-08-161-7/+0
|
* Update todobptato2023-08-151-1/+0
|
* chadombuilder: implement restartbptato2023-08-151-0/+12
| | | | | Now pages (once again) do not break when a meta charset tag is defined. Hooray!
* Move HTML parsing into Chamebptato2023-08-1519-4597/+27
| | | | Operation "modularize Chawan somewhat" part 2
* Update chakasubptato2023-08-151-0/+0
|
* readme: wordingbptato2023-08-141-1/+1
|
* Move charsets into chakasubptato2023-08-1425-1878/+85
| | | | Operation "modularize Chawan somewhat" part 1
* mediaquery: fix logic errorbptato2023-08-141-1/+1
| | | | Not isAscii means we cannot convert to char. Oops.
* mimetypes: small optimizationbptato2023-08-131-2/+1
|
* Simplify mailcap entry matchingbptato2023-08-131-25/+14
|
* Do not replace existing mime typesbptato2023-08-131-1/+2
| | | | | Make mime.types behavior consistent with mailcap: that is, the *first* match counts.
* mailcap: fix typobptato2023-08-131-1/+1
| | | | It's not quite the same thing :P
* Link to todo filebptato2023-08-131-1/+1
|
* Update todo filebptato2023-08-131-5/+3
|
* Update docsbptato2023-08-134-6/+41
|
* makefile: fix qjsobj not being createdbptato2023-08-131-1/+2
|
* Revert "Makefile: add ./ to rm -rf"bptato2023-08-131-1/+1
| | | | | | On a second thought, this makes no sense. This reverts commit 3c8d95fefb678155d0c923aac8240b575ce79d5f.
* Add mailcap, mime.types & misc refactoringsbptato2023-08-1330-378/+1431
| | | | | | | | * 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
* ua.css: add parens to rt before and afterbptato2023-08-101-0/+8
| | | | | Forgot to add any replacement for rp after setting it to display: none, so parentheses around ruby text were not being displayed.
* Makefile: add ./ to rm -rfbptato2023-08-101-1/+1
| | | | just to be sure
* css: implement case insensitivitybptato2023-08-103-135/+142
| | | | For some reason I forgot about this.
* Makefile: fix conflicts with directoriesbptato2023-08-101-8/+8
|
* serialize: add missing prepareMutationbptato2023-08-011-0/+1
|
* Update version information in READMEbptato2023-08-011-2/+2
|
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-0113-36/+257
| | | | | | | | | | | | | | * 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.)
* Fix double line bug in dump modebptato2023-07-292-3/+4
|
* Add default background/foreground color overridebptato2023-07-296-39/+82
|
* css: very minor optimizationsbptato2023-07-282-19/+15
| | | | probably insignificant overall
* Update makefilebptato2023-07-281-4/+8
| | | | small re-organization