Commit graph

38438 commits

Author SHA1 Message Date
kleines Filmröllchen
a7a5721149 LibWeb: Dispatch mouse events to topmost element instead of hit target
This improves our spec compliance by allowing the user to click
non-element nodes (like text) and having the click be registered with
the parent element (like a div or button). This makes Fandom's cookie
accept button work if you click the text. Additionally, the events test
page contains a test to check the target element, which would previously
not exist when we fired the event at a non-element.
2022-06-05 22:31:06 +01:00
pancake
a33b9a8bca Ports: Update radare2 from 5.4.0 to the latest 5.7.0 2022-06-05 22:14:25 +01:00
networkException
b0461c1522 LibIPC: Process remaining read bytes before shutting down due to EOF
Previously we would shut down an ipc connection regardless of if there
were still bytes that have been read and not been handed over to
processing, causing WindowServer not to receive
WindowServer::SetFlashFlush messages sent by `wsctl -f` except the first
one.

This patch fixes that behavior by still shutting the connection down due
to having reached EOF while also processing remaining bytes.

Resolves #12954

See also #8912 which fixes the same issue that this patch fixes but also
seems to have initially broken SettingsWindow cancel not actually
closing the window unless the cursor got moved as described in #12003.
Pull request #12547 fixing the SettingsWindow behavior broke `wsctl`
again by always shutting down.
2022-06-05 22:10:02 +01:00
MacDue
a705741be3 LibWeb: Paint list markers antialiased 2022-06-05 16:16:17 +01:00
MacDue
177d9b2a5a Pong: Paint ball antialiased 2022-06-05 16:16:17 +01:00
MacDue
5cb7e4f2f0 Chess: Paint move marker antialiased 2022-06-05 16:16:17 +01:00
MacDue
e2de02d2bb Breakout: Paint ball antialiased 2022-06-05 16:16:17 +01:00
Brian Gianforcaro
6b85b358f8 Kernel: Unify Kernel task names for consistency
This change unifies the naming convention for kernel tasks.

The goal of this change is to:

- Make the task names more descriptive, so users can more
  easily understand their purpose in System Monitor.

- Unify the naming convention so they are consistent.
2022-06-05 14:09:44 +01:00
MacDue
5fd3716e2f LibGfx: Fix antialiased circles becoming too pointy at small sizes
The issue mentioned in the previous FIXME also applied to circles,
I just had not noticed. This is still not a prefect fix rather it
just papers over it, but it now seems to render circles correctly.
2022-06-05 13:58:40 +01:00
networkException
52ee5026ea LibGUI+Browser: Fix crash when activating a "Tab n" action
Previously we would try setting the tab index regardless if that tab
actually existed, resulting in Browser crashing by either pressing
Control + N or using the CommandPalette.
2022-06-05 13:46:52 +01:00
Luke Wilde
971d6ce16f LibGL: Reject GL_LEFT and GL_RIGHT in glCullFace
glCullFace only accepts GL_FRONT, GL_BACK and GL_FRONT_AND_BACK.
We checked if the mode was valid by performing
```
cull_mode < GL_FRONT || cull_mode > GL_FRONT_AND_BACK
```

However, this range also contains GL_LEFT and GL_RIGHT, which we would
accept when we should return a GL_INVALID_ENUM error.
2022-06-04 22:25:16 +01:00
Xexxa
2a171dfc38 Ports: Update serenity-theming to 2287073 2022-06-04 21:48:03 +01:00
May
47f4bfea35 LibC: Make asctime_r() in time.h POSIX compliant
Previously, when the asctime_r() buffer overflowed, we would fail an
assertion.
This patch modifies asctime_r() to instead set errno and return null.
2022-06-04 12:23:25 +01:00
Tim Schumacher
0ecf17cf91 Ports: Replace manually linking xz with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
1c66ec7aea Ports: Replace manually linking ntbtls with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
1f726791fb Ports: Replace manually linking npth with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
834e0ee614 Ports: Replace manually linking libxml2 with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
9213ed85f0 Ports: Replace manually linking libvorbis with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
e3b29ef61c Ports: Replace manually linking libtiff with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
bd7bcd2407 Ports: Replace manually linking libtheora with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
6d20f2aaa1 Ports: Replace manually linking libsodium with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
e9e6dd925c Ports: Replace manually linking libpng with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
5b034a75bb Ports: Replace manually linking libogg with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
07e046cf97 Ports: Replace manually linking libmodplug with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
095eb8194e Ports: Replace manually linking libksba with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
c7faa3a229 Ports: Replace manually linking libjpeg with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
a97899c088 Ports: Replace manually linking libiconv with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
9e1de61613 Ports: Replace manually linking libgpg-error with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
9d3e8b3e57 Ports: Replace manually linking libgcrypt with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
c4f645f4a2 Ports: Replace manually linking libassuan with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
dadb6e1c15 Ports: Replace manually linking SDL2_ttf with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
16a34c521e Ports: Replace manually linking SDL2_net with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
546f398ff5 Ports: Replace manually linking SDL2_mixer with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
e7f8389d37 Ports: Replace manually linking SDL2_image with a libtool patch 2022-06-03 20:50:01 +01:00
Tim Schumacher
9b4b068166 Ports: Replace manually linking SDL2_gfx with a libtool patch 2022-06-03 20:50:01 +01:00
Idan Horowitz
34e193afa6 LibWeb: Reject invalid background-repeat values instead of crashing 2022-06-03 19:14:22 +01:00
Idan Horowitz
56ec781aea LibWeb: Support DocumentFragments in Node.prototype.cloneNode
In this case, "Do nothing" means do nothing *extra* aside from creating
a new instance.
2022-06-03 17:24:24 +01:00
Idan Horowitz
610afb21ac js: Create throw completions instead of raw error values on SyntaxError
This ensures that js's error printing logic is used instead of the
generic value printing logic, which then lets eshost correctly parse
thrown SyntaxErrors using the normal LibJS exception format.
2022-06-03 17:17:54 +01:00
Lorenzo Concas
a67a7229f8 WindowServer: Check that a menu is not null
If an application menu is null, WindowServer crashes
2022-06-03 12:30:32 +01:00
MacDue
5aad6a4378 Applets: Use spawn_or_show_error() for common spawn pattern 2022-06-03 12:29:56 +01:00
MacDue
5fd5a03d1f Applications: Use spawn_or_show_error() for common spawn pattern 2022-06-03 12:29:56 +01:00
MacDue
5e5a055455 Services: Use Core::Process::spawn() for common process spawn pattern 2022-06-03 12:29:56 +01:00
stelar7
e547f5887e LibWeb: Fix Array OOBs in the HTMLTokenizer
Accessing last() if there are no elements makes WebContent crash :^)
2022-06-03 12:29:11 +01:00
EWouters
997890c94e Ports/cmake: Update cmake to version 3.23.2 2022-06-02 23:26:14 +01:00
circl
06eca0a666 Meta: Add check if AvailablePorts.md is sorted 2022-06-02 23:18:06 +01:00
circl
83b21d4299 Ports: Re-sort AvailablePorts.md 2022-06-02 23:18:06 +01:00
circl
6b16430d01 Ports/powdertoy: Use the release build type
This should speed up the game
2022-06-02 23:18:06 +01:00
circl
ddfcefe311 Ports/luajit: Use HOST_CC instead of hardcoding gcc 2022-06-02 23:18:06 +01:00
circl
e51547986e Ports/luajit: Move warning to configure
Putting it in preconfigure did not work, as useconfigure wasn't enabled.
2022-06-02 23:18:06 +01:00
circl
f1111e99bf Ports/tinycc: Fix syntax error in backtrace patch
This typo prevented it from compiling.
2022-06-02 23:18:06 +01:00