summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-03Documentation: Change references to uid based sockets to sidsPeter Elliott
2022-10-03SystemServer+LoginServer+Userland: Switch to sid-based socketsPeter Elliott
This commit does three things atomically: - switch over Core::Account+SystemServer+LoginServer to sid based socket names. - change socket names with %uid to %sid. - add/update necessary pledges and unveils. Userland: Switch over servers to sid based sockets Userland: Properly pledge and unveil for sid based sockets
2022-10-03Utilities/logout: Refactor to use Core::SessionManagement::logoutPeter Elliott
2022-10-03LibCore: Create Core::SessionManagement for session managementPeter Elliott
2022-10-03LibCore: Make usernames optional in ProcessStatisticsReaderPeter Elliott
2022-10-03LibCore: Add Core::System wrapper for getsid()Peter Elliott
2022-10-03Toolchain: Update BuildMold to mold 1.5.1 and use CMakeAndrew Kaster
Per the release notes for 1.5.0, the CMake build is preferred going forward.
2022-10-03Ports/mold: Update to 1.5.1 and use CMake instead of MakefileAndrew Kaster
Per the release notes for 1.5.0, the CMake build is preferred going forward. This lets us drop some Makefile patches and pass them as CMake options instead, with the exception of disabling mold-wrapper.so.
2022-10-03Meta: Force -machine pc-i440fx-7.0 when using QEMU >= 7.1Andrew Kaster
Until the root cause behind #14952 is found, this workaround should stem the tide of users in discord asking why their system crashes on startup.
2022-10-03LibWeb: It's AK_OS_MACOS, not AK_OS_MACAndreas Kling
2022-10-02LibJS: Capture promise capability in new_promise_capability() executorLinus Groh
This is how the spec suggests implementing this; we need to be slightly more verbose as our PromiseCapability implementation cannot hold arbitrary JS values. Unfortunately it makes the error message slightly more ambiguous as we no longer expose the non-function value to the outer scope (we could!), but at least we don't UAF the stack allocated values anymore :^)
2022-10-02LibJS: Make PromiseCapability GC-allocatedLinus Groh
A struct with three raw pointers to other GC'd types is a pretty big liability, let's just turn this into a Cell itself. This comes with the additional benefit of being able to capture it in a lambda effortlessly, without having to create handles for individual members.
2022-10-02LibJS: Add Visitor::visit(GCPtr<T>) and Visitor::visit(NonnullGCPtr<T>)Linus Groh
Let's avoid reaching for ptr() as much as possible.
2022-10-02LibJS: Add Value(GCPtr<T>) and Value(NonnullGCPtr<T>) constructorsLinus Groh
Let's avoid reaching for ptr() as much as possible.
2022-10-02LibJS: Move PromiseCapability into its own cpp/h fileLinus Groh
This is not strictly connected to PromiseReaction in any way. Preparation before doing some actual work on it :^)
2022-10-02LibJS: Update outdated PROMISE_DEBUG loggingLinus Groh
2022-10-02LibJS: Remove two outdated forward declarationsLinus Groh
2022-10-02LibWeb: Fix string whitespace splitting mistakeMacDue
`.split_view(Infra::ASCII_WHITESPACE)` tries to split the string view on the string "\t\n\f\r " (not any of the individual characters of that string). The correct way to split this string views here is `.split_view_if(Infra::is_ascii_whitespace)`, this is a little inconsistent with String, so probably should be addressed.
2022-10-02Meta: Add Lucas Chollet to the contributors list :^)Andreas Kling
2022-10-02mount: Report error instead of crashing on failureLucas CHOLLET
Being unable to `open` on the source caused mount to crash. The error is now properly reported to the user.
2022-10-02test: Support more optionsimplicitfield
Adds -g, -G, -k, -O and -u options.
2022-10-02test: Print the correct operator on errorimplicitfield
2022-10-02LibWeb: Move strip_and_collapse_whitespace() to Infra/Linus Groh
...and make it spec compliant by considering all ASCII whitespace, greatly simplifying it in the process :^)
2022-10-02LibWeb: Replace incorrect uses of split_view() for whitespace splittingLinus Groh
2022-10-02LibWeb: Replace incorrect uses of String::trim_whitespace()Linus Groh
2022-10-02LibWeb: Replace incorrect uses of AK::is_ascii_space()Linus Groh
2022-10-02LibWeb: Add is_ascii_whitespace() functionLinus Groh
This matches the Infra spec's definition of 'ASCII whitespace', and we can at last stop using AK::is_ascii_space(), which has a different idea about what 'whitespace' means.
2022-10-02Keymaps: Improve pt-br keymapmatcool
Adds /?Β° key (scancode 115). Shift + 6 now maps to Β¨ instead of space. AltGr + (1-6) now map to ¹²³£’¬. AltGr + = now maps to Β§. AltGr + [ now maps to Βͺ. AltGr + ] now maps to ΒΊ. AltGr + q now maps to /. AltGr + w now maps to ?. AltGr + e now maps to Β°. AltGr + c now maps to β‚’.
2022-10-02Snake: Show message box on game overmatcool
Previously the game would immediately reset on game over, but now it'll pause the game and show a message box with your score.
2022-10-02Games: Wrong parent window passed to GUI::MessageBoxMonroe Clinton
We were passing the wrong parent window to GUI::MessageBox making it impossible to exit the message window.
2022-10-02Base: Add example backdrop-filter using hue-rotate()MacDue
2022-10-02LibWeb: Support painting the hue-rotate() filter effectMacDue
2022-10-02LibGfx: Implement HueRotateFilterMacDue
This implements a simple and fairly efficient hue rotation filter. It is based off the SVG feColorMatrix "hueRotate" matrix operation. https://drafts.fxtf.org/filter-effects-1/#elementdef-fecolormatrix
2022-10-02LibGfx: Add `[[nodiscard]]` to Matrix operatorsMacDue
2022-10-02LibGfx: Add Matrix::operator*(T scalar)MacDue
2022-10-02LibGfx: Add Matrix::operator+(Matrix const & other)MacDue
2022-10-02LibWeb: Report the current OS instead of always saying SerenityOSAndreas Kling
2022-10-02LibWeb: Improve placement of abspos boxes with dual-auto insetsAndreas Kling
When an absolutely positioned box has auto insets on both sides of an axis, it's placed according to the "static position rectangle". This is, roughly, the rectangle a box would occupy if it were position:static instead of position:absolute or position:fixed. This patch implements a rough, but still significantly better, estimation of such static positions. It gets pretty hairy in the case where an abspos box has a parent whose children are inline.
2022-10-02AK: Add more AK_OS_FOO macros, including AK_OS_SERENITYAndreas Kling
2022-10-02LibWeb: Reset painter translation when painting fixed-position elementsAndreas Kling
This makes nested position:fixed elements work, previously we'd apply the viewport scroll offset once at every nesting level.
2022-10-02LibGfx: Add a way to get the Painter's current 2D translationAndreas Kling
2022-10-02LibWeb: Add helpful locals in layout_absolutely_positioned_element()Andreas Kling
This code had some obnoxiously repetetive call chains.
2022-10-02LibWeb: Vertical % margins are relative to containing block widthAndreas Kling
We were messing this up on absolutely positioned elements by using the containing block height instead.
2022-10-02LibWeb: Reorganize layout algorithms around available spaceAndreas Kling
This is a big and messy change, and here's the gist: - AvaliableSpace is now 2x AvailableSize (width and height) - Layout algorithms are redesigned around the idea of available space - When doing layout across nested formatting contexts, the parent context tells the child context how much space is available for the child's root box in both axes. - "Available space" replaces "containing block width" in most places. - The width and height in a box's UsedValues are considered to be definite after they're assigned to. Marking something as having definite size is no longer a separate step, This probably introduces various regressions, but the big win here is that our layout system now works with available space, just like the specs are written. Fixing issues will be much easier going forward, since you don't need to do nearly as much conversion from "spec logic" to "LibWeb logic" as you previously did.
2022-10-02LibWeb: Don't try to format inline-block boxes in BFCAndreas Kling
Inline-level block boxes are handled by IFC. BFC doesn't have to worry about these.
2022-10-02LibWeb: Fix crash when loading a HTML string that contains an iframeMacDue
The HTMLIFrameElement does not create the nested browsing context on insertion if the document does not have browsing context, which is not set unless it's the active document. Previously, in FrameLoader the document was not set as active until after parsing, which led to iframes without nested browsing contexts, and crashes. Fixes #14207
2022-10-02Base: Add a moderate amount of emojisMykola
Added: πŸ– - U+1F356 MEAT ON BONE πŸ—» - U+1F5FB MOUNT FUJI 🏞 - U+1F3DE NATIONAL PARK 🌁 - U+1F301 FOGGY πŸŒƒ - U+1F303 NIGHT WITH STARS πŸŒ† - U+1F306 CITYSCAPE AT DUSK πŸŒ‡ - U+1F307 SUNSET 🏐 - U+1F3D0 VOLLEYBALL πŸ‡½πŸ‡° - U+1F1FD U+1F1F0 FLAG: KOSOVO
2022-10-02LibJS: Show class name in the dump from the NewClass instructionHendiadyoin1
2022-10-02LibJS: Set class' source text in NewClass instructionHendiadyoin1
This fixes the classes toString method.
2022-10-02Base: Update ports serenity-theming use latest commit f0100c2djwisdom