summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-04LibWeb: Use lowercase type selectors to match against html elementsnetworkException
Previously we would fail to match a selector like "NAV" against a <nav> html element. Note that the strings must be identical in XML Documents.
2022-07-04LibWeb: Add the type field to DOM::DocumentnetworkException
This patch adds the document type concept to documents and sets it in various places.
2022-07-04LibWeb: Remove unnecessary return in ResolvedCSSStyleDeclarationnetworkException
2022-07-04Shell: Immediately resolve value when setting a variableAli Mohammad Pur
The lazy resolution mechanism made it so that the variables were linked together, causing unexpected behaviour: true x=$? # expected: x=0 false echo $x # expected: 0, actual: 1
2022-07-04Base: Update Network manpage to the new NetworkServer behaviorMaciej
2022-07-04NetworkServer: Enable DHCP on interfaces that are not listed in configMaciej
2022-07-04LibGUI: Notify the layout system of more relevant events in TabWidgetFrHun
2022-07-04LibGUI: Implement calculated min/preferred sizes for TabWidgetFrHun
2022-07-04LibGUI: Add horizontal and vertical totals to MarginsFrHun
2022-07-04AK: Add header for generic shorthandsFrHun
These are functions that can be expressed with just normal operators, but would be very repetetive.
2022-07-04LibGUI: Notify layout system of more relevant events in WidgetFrHun
2022-07-04LibGUI: Avoid some unneeded relayouts from layout relevant changesFrHun
2022-07-04LibGUI: Calculate Window min_size on showFrHun
2022-07-04WidgetGallery: Repair GML layout on BasicsTabFrHun
2022-07-04Base: Add some background-clip + border-radius HTML examplesMacDue
2022-07-04LibWeb: Shrink border radii for background-clip and support with imagesMacDue
Since background layers can have different clipping this has also required doing the corner clipping for each layer, rather than just once.
2022-07-04LibWeb: Add .shrink() to BorderRadiusData and BorderRadiiDataMacDue
2022-07-04LibWeb: Make hit testing respect hidden overflowIgor Pissolati
2022-07-04LibJS: Let Array.prototype.toSpliced throw RangeError for len <= 2^53-1Linus Groh
This aligns it with the spec again, it was clarified that the additional range check before ArrayCreate is intentional: https://github.com/tc39/proposal-change-array-by-copy/issues/94 Also cast the final variable to an u64 instead of size_t after we have determined that it is safe to do so, as that's what Array::create() takes now.
2022-07-04LibJS: Use u64 for the length parameter in Array::create()Linus Groh
This doesn't matter per se as the value is immediately validated to be in the 0 to 2^32 - 1 range, but it avoids having to cast a number that potentially doesn't fit into a size_t into one at the call site. More often than not, array-like lengths are only validated to be <= 2^52 - 1, i.e. MAX_SAFE_INTEGER. This is fully backwards compatible with existing code as a size_t always fits into an u64, but an u64 might not always fit into a size_t.
2022-07-04LibJS: Add spec comments to ArrayCreateLinus Groh
2022-07-04LibJS: Use a template for 'Value from integral number' constructorsLinus Groh
This also allows constructing from other integral types like u64, which would have been ambiguous before (at least on i686): ``` error: call of overloaded 'Value(u64&)' is ambiguous note: candidate: 'JS::Value::Value(i32)' 175 | explicit Value(i32 value) | ^~~~~ note: candidate: 'JS::Value::Value(unsigned int)' 164 | explicit Value(unsigned value) | ^~~~~ note: candidate: 'JS::Value::Value(long unsigned int)' 153 | explicit Value(unsigned long value) | ^~~~~ note: candidate: 'JS::Value::Value(double)' 141 | explicit Value(double value) | ^~~~~ ```
2022-07-04AK: Add `nodiscard` attribute to Find functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to BitStream functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to BitCast functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to BinarySearch functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to BinaryHeap functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to Base64 functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to AnyOf functionsLenny Maiorani
2022-07-04AK: Add `nodiscard` attribute to AllOf functionsLenny Maiorani
2022-07-04Documentation: Add information on MacOS build prerequisitesDaniel K Bueno
This PR includes information that highlights the importance of updating Xcode on MacOS. I ran into problems building serenity on MacOS because I had Xcode installed but not updated in a while. This triggered seemingly unrelated errors that were easily solved by updating Xcode.
2022-07-04Ports: Update serenity-theming to latest commitdjwisdom
2022-07-04Kernel: Negate condition in ARPTableBlockerSet::should_add_blockerIdan Horowitz
To prevent a race condition in case we received the ARP response in the window between creating and initializing the Thread Blocker and the actual blocking, we were checking if the IP address was updated in the ARP table just before starting to block. Unfortunately, the condition was partially flipped, which meant that if the table was updated with the IP address we would still end up blocking, at which point we would never end unblocking again, which would result in LookupServer locking up as well.
2022-07-03Ports: Update dos2unix to 7.4.3Nathan Ell
Update to the latest version of the upstream dos2unix, 7.4.3. Simplify the URL used to download the upstream PGP key for the dos2unix package, by leveraging the already well-used version variable.
2022-07-03LibDebug: Make sure current_breakpoint has value before usageMarcus Nilsson
Previously this caused a crash when no breakpoint was active since we tried to get value().address before the has_value() check.
2022-07-03Everywhere: Fix two inconsistent serenity_lib() output namesLinus Groh
- No underscores between word boundaries, i.e. `languageserver` and not `language_server` for LibLanguageServer - All lowercase, i.e. `coredump` and not `Coredump` for LibCoredump
2022-07-03Browser: Fix crash if clicking on non-visible nodes in the inspectorMacDue
If you attempt to inspect a non-visible dom node it will hit various assertions as things like style have not been computed. With this change attempting to inspect these nodes will simply clear the style and box model tabs.
2022-07-03LibWeb: Wire up XHR::ontimeout eventKenneth Myhra
2022-07-03LibWeb: Add timeout_callback to ResourceLoader::load()Kenneth Myhra
2022-07-03LibWeb: Use a single shot timer instead of an ordinary repetitive timerKenneth Myhra
2022-07-03BrowserSettings: Make content filtering on by defaultMaciej
It was default in Browser but not default in settings, so the checkbox was initially not checked.
2022-07-03BrowserSettings: Make default content filtering flag constexprMaciej
And add s_ prefix per coding style guidelines.
2022-07-03LibJS: Avoid potential overflow in Array.prototype.toSpliced()Linus Groh
The implementation no longer matches the spec text, but I believe that's a bug anyway. No point in allowing array lengths up to 2^53 - 1 when the ArrayCreate AO rejects anything above 2^32 - 1.
2022-07-03Kernel/USB: Move buffer allocation from USB transfer to USB pipeb14ckcat
Currently when allocating buffers for USB transfers, it is done once for every transfer rather than once upon creation of the USB device. This commit changes that by moving allocation of buffers to the USB Pipe class where they can be reused.
2022-07-03LibJS: Add tests for %TypedArray%.prototype.toReversedObinna Ikeh
2022-07-03LibJS: Add %TypedArray%.prototype.toReversedObinna Ikeh
2022-07-02LookupServer: Try other available DNS nameservers on network errorsIdan Horowitz
We were accidentally short-circuting DNS lookup on network errors when contacting the first DNS server, instead of trying the other available options.
2022-07-02CI: Use a custom ccache directory in GitHub CIIdan Horowitz
This ensures that updates to ccache that change the default cache directory do not break out github ccache cache.
2022-07-02LibJS: Set both {minimum, maximum}FractionDigits in Intl.DurationFormatIdan Horowitz
This is a normative change in the Intl.DurationFormat spec. See: https://github.com/tc39/proposal-intl-duration-format/commit/b293603e
2022-07-02LibJS: Disallow mixed-sign durations in Intl.DurationFormatIdan Horowitz
This is a normative change in the Intl.DurationFormat spec. See: https://github.com/tc39/proposal-intl-duration-format/commit/89ab1855