summaryrefslogtreecommitdiff
path: root/Userland/Libraries
AgeCommit message (Collapse)Author
2022-12-16LibJS: Convert new_private_environment() to NonnullGCPtrLinus Groh
2022-12-16LibJS: Convert new_function_environment() to NonnullGCPtrLinus Groh
2022-12-16LibJS: Convert new_object_environment() to NonnullGCPtrLinus Groh
2022-12-16LibJS: Convert new_declarative_environment() to NonnullGCPtrLinus Groh
2022-12-16LibGUI: Add GUI::TabWidget::add_tab() that takes a constructed tabBaitinq
This patch adds a new add_tab() function in GUI::TabWidget that takes an already created NonnullRefPtr<Widget> object. This allows us to handle errors while creating the Tab object and then pass it to this function to actually add the object to the TabWidget.
2022-12-16LibWeb: Add spec links to IDL APIs in HTMLTableElementAndreas Kling
2022-12-16LibWeb: Allow setting HTMLTableElement.tFoot to null valueAndreas Kling
This annihilates 2 FIXMEs :^)
2022-12-16LibWeb: Allow setting HTMLTableElement.tHead to null valueAndreas Kling
This deals with 2 FIXMEs :^)
2022-12-16LibWeb: Allow setting HTMLTableElement.caption to null valueAndreas Kling
This takes care of 2 FIXMEs :^)
2022-12-16LibWeb: Add spec link and comment to HTMLTableElement::caption()Andreas Kling
2022-12-16LibWeb: Fix bug in BFC that independent FC assigned to wrong variableAliaksandr Kalenik
Bug was introduced in 210bf8adf0c431be05659140fd6de3a2cc5b7d99 It makes new variable for independent_formatting_context instead of using earlier declared one which means that parent_context_did_dimension_child_root_box will never be called.
2022-12-16LibPDF: Follow a FontFile's Length valuesRodrigo Tobar
These can be references (at least from what I've found in some documents), so we want to resolve them before using them.
2022-12-16LibPDF: Simplify outline constructionRodrigo Tobar
While the Outline Items making up the document's Outline have all sorts of cross-references (parent, first/last chlid, next/previous sibling, etc), not all documents out there have fully-consistent references. Our implementation already discarded some of that information too (e.g., /Parent and /Prev were never read), and trusted that /First and /Next were good enough to traverse the whole hierarchy. Where the current implementation failed was in assuming that /Last was also a good source of information. There are documents out there were /Last also points to dead ends, and were therefore causing a crash when we verified that the last child found on a chain was the /Last child declared by the parent. To fix this I'm simply removing the check, and simplifying the function call to remove any references to /Last. This way we affirm our commitment to /First and /Next as the main sources of information.
2022-12-16LibPDF: Ignore seac PS1 commands for nowRodrigo Tobar
This command is meant to print an Standard Encoding Accented Character. It's not critical to implement it yet, but if we want to render more documents we need to handle the instruction, even if simply ignore it.
2022-12-16DynamicLoader: Annotate all loaded library ranges as immutableLiav A
To further protect all virtual memory regions of the loaded libraries, don't allow to mutate these regions both in changing their annotations nor the protection bits.
2022-12-16Kernel: Reintroduce the msyscall syscall as the annotate_mapping syscallLiav A
This syscall will be used later on to ensure we can declare virtual memory mappings as immutable (which means that the underlying Region is basically immutable for both future annotations or changing the protection bits of it).
2022-12-15LibGUI: Add GUI::SettingsWindow::add_tab() that takes a constructed tabBaitinq
This patch adds a new add_tab() function in GUI::SettingsWindow that takes an already created NonnullRefPtr<Tab> object. This allows us to handle errors while creating the Tab object and then pass it to this function to actually add the object to the SettingsWindow.
2022-12-15LibThreading+Everywhere: Support returning error from `BackgroundAction`Lucas CHOLLET
This patch allows returning an `Error` from the `on_complete` callback in `BackgroundAction`. It also adds a custom callback to manage errors returned during its execution.
2022-12-15LibGUI: Actually try something in `TabWidget::try_add_widget(Widget&)`Lucas CHOLLET
This function, while returning an `ErrorOr<void>`, didn't call failable API.
2022-12-15LibCore: Use ';' to split socket path in `SOCKET_TAKEOVER`Federico Guerinoni
This allow to use socket path with spaces inside. Closes #16436.
2022-12-15LibCore: Use the user's root session ID for standard runtime pathTimothy Flynn
This ensures processes created by the user use the same runtime path.
2022-12-15LibMarkdown: Prevent a crash when rendering code blocks to consoleArda Cinar
When parsing a code block not in a section (in a file without a heading), the parser would initialize the code block with an uninitialized (invalid) value for current_section. Accessing this value would later cause a segmentation fault in render_to_terminal.
2022-12-15LibMarkdown: Handle error while rendering JS to HTMLArda Cinar
The library logs the error and falls back to not colorizing the js code inside the block instead.
2022-12-15LibJS: Update spec comments for replacing digits in Intl.NumberFormatTimothy Flynn
This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/06d95ed Note the new spec steps basically match our implementation in LibLocale.
2022-12-15LibJS: Fix a typo in an Intl.DateTimeFormat spec commentTimothy Flynn
This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/078bea0
2022-12-15LibCore: Use `System::getaddrinfo()` in `Socket::resolve_host`Lucas CHOLLET
2022-12-15LibCore: Add a wrapper for `getaddrinfo()`Lucas CHOLLET
2022-12-15LibCore: Use AllocatingMemoryStream for SOCKSProxyClientTim Schumacher
2022-12-15LibCore: Add an automatically allocating MemoryStreamTim Schumacher
Similar to AK::DuplexStream, this writes to the end and reads from the beginning of a dynamically allocated buffer.
2022-12-15LibCore: Move the MemoryStream implementation into a separate fileTim Schumacher
2022-12-15LibCore: Rename `MemoryStream` to `FixedMemoryStream`Tim Schumacher
This is to differentiate between the upcoming `AllocatingMemoryStream`, which automatically allocates memory as needed instead of operating on a static memory area.
2022-12-15LibJS: Convert standalone construct() to NonnullGCPtrLinus Groh
2022-12-15LibJS: Convert Object::construct() to NonnullGCPtrLinus Groh
2022-12-15LibJS: Convert FunctionObject::internal_construct() to NonnullGCPtrLinus Groh
2022-12-15LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtrLinus Groh
2022-12-15LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtrLinus Groh
2022-12-15LibJS: Add make_handle({Nonnull,}GCPtr<T>) overloadsLinus Groh
2022-12-15LibJS: Ensure Optional<Completion>'s defaults to empty completionLinus Groh
Default-constructing the m_value Completion made it have an undefined JS value when not overridden in a constructor, such as the conditional initialization in Optional(Optional<JS::Completion> const&). See investigation by Tim here: https://github.com/SerenityOS/serenity/pull/16498#discussion_r1049090456 Co-authored-by: Timothy Flynn <trflynn89@pm.me>
2022-12-15LibWeb: Implement input range type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input local date and time type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input time type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input week type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input month type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input date type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input email type sanitation algorithmKyle Lanmon
2022-12-15LibWeb: Implement input color type sanitation algorithmKyle Lanmon
2022-12-15LibJS: Throw a RangeError when when formatting strings in DurationFormatTimothy Flynn
This is a normative change in the Intl.DurationFormat proposal. See: https://github.com/tc39/proposal-intl-duration-format/commit/2546080
2022-12-15LibJS: Access DurationRecord properties in alphabetical orderTimothy Flynn
This is a normative change in the Intl.DurationFormat proposal. See: https://github.com/tc39/proposal-intl-duration-format/commit/42e99b8
2022-12-15LibJS: Move IsValidDurationRecord check to ToDurationRecordTimothy Flynn
This is an editorial change in the Intl.DurationFormat proposal. See: https://github.com/tc39/proposal-intl-duration-format/commit/fb21723
2022-12-15LibJS: Remove infallibility markers from some Intl.DurationFormat AOsTimothy Flynn
This is an editorial change in the Intl.DurationFormat proposal. See: https://github.com/tc39/proposal-intl-duration-format/commit/fa2b3d0