Gunnar Beutner
27befa6595
Ports: Fix building the ninja port
...
The build failed because the main symbol has hidden visibility.
2021-04-14 21:46:20 +02:00
Gunnar Beutner
509c5c6577
Ports: Add nethack
2021-04-14 21:46:20 +02:00
Gunnar Beutner
5a4206ef2e
LibC: Turn regex_t and regmatch_t into typedefs
...
According to POSIX.1-2001 these should be anonymous structs with
a typedef.
2021-04-14 21:46:20 +02:00
Gunnar Beutner
546fa8cfb5
LibC: Change return type for sleep() to unsigned int
...
According to POSIX.1-2001 the return type should be unsigned int.
2021-04-14 21:46:20 +02:00
Gunnar Beutner
6a808d96b5
Ports: Add port for libicu
...
I was trying to port openttd which I ultimately gave up on because
too much of the C++ standard library's functionality is missing at this
point. The libicu library was a dependency for that.
In its current state the libicu port is not thread-safe because of
missing functionality in the C++ standard library (mainly std::mutex,
std::condition_variable, etc.).
2021-04-14 21:46:20 +02:00
Gunnar Beutner
28b3c8bc1d
Port: Support running some configure/build commands with the host toolchain
...
This is useful for ports which depend on running tools on the host system.
In this case we can build the port twice - once for the host and once for
the target system.
2021-04-14 21:46:20 +02:00
Gunnar Beutner
9e9b508390
Ports: Fix building SDL2_ttf when X11 headers are installed on the host system
2021-04-14 21:46:20 +02:00
Gunnar Beutner
8874b4b4fe
Ports: Make sure pkg-config only picks up packages from the target
2021-04-14 21:46:20 +02:00
Andreas Kling
d8787e0e12
Chess: Alt shortcuts and book title capitalization in menus
2021-04-14 21:32:37 +02:00
Andreas Kling
cfe7f6fe50
Pong: Alt shortcuts in top-level menus
2021-04-14 21:25:02 +02:00
Andreas Kling
8529053ffe
2048: Alt shortcuts and book title capitalization in menus
2021-04-14 21:25:02 +02:00
Timothy Flynn
858ba11aef
Browser: Respect the HttpOnly flag when storing cookies
2021-04-14 16:07:46 +02:00
Timothy Flynn
c00760c5f9
Browser+LibWeb+WebContent: Track the source of document.cookie requests
...
To implement the HttpOnly attribute, the CookieJar needs to know where a
request originated from. Namely, it needs to distinguish between HTTP /
non-HTTP (i.e. JavaScript) requests. When the HttpOnly attribute is set,
requests from JavaScript are to be blocked.
2021-04-14 16:07:46 +02:00
Timothy Flynn
7193e518d1
Browser+LibWeb: Move the cookie structure into LibWeb
2021-04-14 16:07:46 +02:00
Timothy Flynn
c2d38abe6f
Browser+LibWeb: Move cookie parser into LibWeb
...
This moves the cookie parsing steps out of CookieJar into their own file
inside LibWeb. It makes sense for the cookie structures to be in LibWeb
for a couple reasons:
1. There are some steps in the spec that will need to partially happen
from LibWeb, such as the HttpOnly attribute.
2. Parsing the cookie string will be safer if it happens in the OOP tab
rather than the main Browser process. Then if the parser blows up due
to a malformed cookie, only that tab will be affected.
3. Cookies in general are a Web concept not specific to a browser.
2021-04-14 16:07:46 +02:00
Idan Horowitz
7702a3fe29
Meta: Increase discord notification's check interval to 100 seconds
...
Since our tests usually take at least 10 minutes theres no point in
checking every 10 seconds, and github was starting to complain about
the very high API usage.
2021-04-14 14:57:37 +02:00
Idan Horowitz
ba77b40808
LibJS: Implement the encode/decodeURI(Component) family of functions
...
These are generally useful and in particular needed for twitter.com
2021-04-14 13:30:10 +02:00
Idan Horowitz
2ab292f381
AK: Expose the decode_hex_digit helper
...
This helper is useful on its own for things like uri encoding/decoding,
so this commit exposes it via the AK/Hex header
2021-04-14 13:30:10 +02:00
FalseHonesty
2d58549296
LibDebug: Add support for parsing array types
...
This includes multi-dimensional arrays :O
2021-04-14 13:28:48 +02:00
FalseHonesty
acbb119b27
LibDebug: Support unnamed variables and types
...
We were supposed to already support unnamed types, but due to a
little typo, we were actually causing more problems :^)
2021-04-14 13:28:48 +02:00
Gunnar Beutner
1942c1061c
Ports: Fix building the nasm port
2021-04-14 13:13:21 +02:00
Gunnar Beutner
0a600a3c36
Ports: Add gnupg port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
ba5710871b
Ports: Add libgcrypt port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
3cfc05fb8a
Ports: Add ntbtls port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
45f1170691
Ports: Add libgpg-error port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
c3aac8cbe7
Ports: Add libassuan port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
700cad4508
Ports: Add libksba port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
0b7079a76a
Ports: Add npth port
2021-04-14 13:13:06 +02:00
Gunnar Beutner
a937182254
Ports: Build the shared library for the libiconv port
...
I'd rather use libtool to build the library but that would
require more extensive changes to the configure script
and maybe even libtool itself. So instead I just build
it manually.
2021-04-14 13:13:06 +02:00
Gunnar Beutner
7d12c08bec
LibC: Add definition for the NI_NAMEREQD macro
2021-04-14 13:13:06 +02:00
Gunnar Beutner
ea6d0aa1d4
LibPthread: Implement semaphore functions
2021-04-14 13:13:06 +02:00
Gunnar Beutner
f2ff8f2658
LibELF: Improve error messages for missing shared libraries
2021-04-14 13:13:06 +02:00
Gunnar Beutner
dce57cd085
LibC: Add definitions for INTMAX_C and UINTMAX_C
2021-04-14 13:13:06 +02:00
Gunnar Beutner
1946a4bee6
LibC: Add missing include in <syslog.h>
...
The include is necessary for __BEGIN_DECLS and __END_DECLS.
2021-04-14 13:13:06 +02:00
Gunnar Beutner
cd7512a2ad
LibELF: Add support for loading objects with multiple data and text segments
...
This enables loading executables with multiple data and text segments. Also
it fixes loading executables where the text segment has a non-zero offset.
Example:
$ echo "main () {}" > test.c
$ gcc -Wl,-z,separate-code -o test test.c
$ objdump -p test
test: file format elf32-i386
Program Header:
PHDR off 0x00000034 vaddr 0x00000034 paddr 0x00000034 align 2**2
filesz 0x000000e0 memsz 0x000000e0 flags r--
INTERP off 0x00000114 vaddr 0x00000114 paddr 0x00000114 align 2**0
filesz 0x00000013 memsz 0x00000013 flags r--
LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12
filesz 0x000003c4 memsz 0x000003c4 flags r--
LOAD off 0x00001000 vaddr 0x00001000 paddr 0x00001000 align 2**12
filesz 0x00000279 memsz 0x00000279 flags r-x
LOAD off 0x00002000 vaddr 0x00002000 paddr 0x00002000 align 2**12
filesz 0x00000004 memsz 0x00000004 flags r--
LOAD off 0x00002004 vaddr 0x00003004 paddr 0x00003004 align 2**12
filesz 0x00000100 memsz 0x00000124 flags rw-
DYNAMIC off 0x00002014 vaddr 0x00003014 paddr 0x00003014 align 2**2
filesz 0x000000c8 memsz 0x000000c8 flags rw-
2021-04-14 13:12:52 +02:00
Gunnar Beutner
c3ee70591a
Kernel: Read the ELF header from the inode rather than the mapped pages
...
Reading from the mapping doesn't work when the text segment has a non-zero
offset because in that case the first mapped page doesn't contain the ELF
header.
2021-04-14 13:12:52 +02:00
Gunnar Beutner
2d91761cf6
Kernel: Make sure the offset stays the same when using mremap()
...
When using mmap() on a file with a non-zero offset subsequent
calls to mremap() would incorrectly reset the offset to zero.
2021-04-14 13:12:52 +02:00
Gunnar Beutner
341b44b6f7
Ports: Fix building the stress-ng port
2021-04-14 13:12:52 +02:00
Maciej Zygmanowski
e83caffccc
LibCore: Use dbgln_if in EventLoop.cpp
2021-04-14 10:54:56 +02:00
Tom Needham
209de3bcb3
Ports: Update nasm port to version 2.15.05 ( #6292 )
...
Fixes #6157 .
2021-04-14 10:20:07 +02:00
Linus Groh
ea60b344eb
LibJS: Add name and message properties to NativeError prototypes
...
Otherwise these will get their name/default message from the Error
prototype, and as a result would always just say "Error" in error
messages, not the specific type.
Something I missed in da177c6
, now with tests. :^)
2021-04-14 10:11:04 +02:00
Idan Horowitz
1aec9a508e
Meta: Increase discord notification's build timeout to 1 hour
...
It looks like some particularly long builds (After a toolchain cache
reset and on a slow worker) can take much longer than the current set
timeout of 20 minutes.
2021-04-14 09:46:45 +02:00
AnotherTest
339ae7873e
LibHTTP: Trim the whitespace around the Transfer-Encoding header value
...
Fixes #6302 .
2021-04-14 09:31:31 +02:00
Linus Groh
5da4c9bf1e
LibWeb: Implement Node.cloneNode()
...
With this we can now successfully run a Vue.js 2 hello world! :^)
2021-04-14 09:30:29 +02:00
Linus Groh
d721c93beb
LibWeb: Add Element::prefix()
...
Just a getter for m_qualified_name.prefix(), just like local_name() and
namespace_().
2021-04-14 09:30:29 +02:00
AnotherTest
d2b5c4d8dc
LibWeb: Actually return an empty value when an exception is thrown via
...
throw_dom_exception_if_needed()
Fixes #6298 .
2021-04-13 23:56:19 +02:00
AnotherTest
9c201767a0
LibWeb: Fix some FIXMEs related to ExceptionOr<T>
...
This fixes a few FIXMEs mentioned in 5beacf08a2
,
which depended on #6075 being fixed.
2021-04-13 22:31:06 +02:00
AnotherTest
8ba2b5f36f
LibWeb: Make ExceptionOr work with non-JS::Value types
...
Fixes #6075 .
2021-04-13 22:31:06 +02:00
Egor Ananyin
d5def1cad0
LibWeb: Use min-height in calculating height
2021-04-13 22:04:25 +02:00
Egor Ananyin
fe544feb17
LibWeb: Start parsing font property
2021-04-13 22:04:25 +02:00