Commit graph

37936 commits

Author SHA1 Message Date
Sam Atkins
ce5914230f LibWeb: Actually use BorderRadiusShorthandStyleValue
Somehow we were never actually using this before, but parsing the
property as a StyleValueList instead.
2022-04-18 21:30:51 +02:00
Sam Atkins
025ee02144 LibWeb: Add missing [as/is]_border_radius_shorthand() methods 2022-04-18 21:30:51 +02:00
Sam Atkins
d9afc2d6f2 LibWeb: Rename CombinedBorderRadiusSV -> BorderRadiusShorthandSV 2022-04-18 21:30:51 +02:00
Ali Mohammad Pur
e1cd36559d LibJS: Make the BC generator.next(value) work
This used to put the value in the previous frame's accumulator register,
which is only correct for the first invocation of the generator.
2022-04-18 23:59:30 +04:30
Ali Mohammad Pur
d5791c85b4 LibJS: Avoid copying the frame into the interpreter in BC generators 2022-04-18 23:59:30 +04:30
Liav A
063ea0088e Kernel: Enable PS2 keyboard scan code translation if not already enabled
On the QEMU microvm machine type, it became apparent that the BIOS was
not setting the i8042 controller to function as expected. To ensure that
the controller is always outputting correct scan codes, set it to scan
code 2 and enable first port translation to ensure all scan codes are
translated to scan code set 1. This is the expected behavior when using
SeaBIOS, but on qboot (the BIOS for the QEMU microvm machine type), the
firmware doesn't take care of this so we need to do this ourselves.
2022-04-18 19:36:42 +03:00
Eli Youngs
04763c4a12 Spreadsheet: Sort functions by name in the help window 2022-04-18 17:36:34 +02:00
Ali Mohammad Pur
dd5fb7b32a LibLine: Reset next suggestion index when resetting suggestions
Otherwise we'd end up starting at the previous index on another
suggestion list.
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
ae27d7e442 Shell: Make program-based completion with no actual token possible
31ca48e made this default to paths, but now that we have a few sensible
ways to complete things, let's make those work too.
For instance, prior to this `kill <tab>` would've suggested paths, but
now it will suggest processes.
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
302a0c54f0 Base: Add some default completions to shellrc 2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
1699ddc186 LibLine: Make it possible to avoid autocompletion if requested
Setting 'allow_commit_without_listing' to false will now make LibLine
show the suggestion before actually committing to it; this is useful for
completions that will replace all the user input, where mistakes can go
unnoticed without some visual cue.
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
d5b3998d23 LibLine: Respect the provided completion static offset
Now that we can resolve these correctly and they're per-suggestion, we
can finally use them for their intended purpose of letting suggestions
overwrite stuff in the buffer.
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
4ea9ca06b4 Shell: Allow completions to request further action from the shell
The shell now expects a JSON object of the form {"kind":<kind>,...} per
line in the standard output of the completion process, where 'kind' is
one of:
- "plain": Just a plain suggestion.
- "program": Prompts the shell to complete a program name starting with
  the given "name".
- "proxy": Prompts the shell to act as if a completion for "argv" was
  requested.
- "path": Prompts the shell to complete a path given the "base" and
  "part" (same as completing part in cwd=base).
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
4ede121d31 Shell: Add support for regex match patterns
We previously allowed globs as match pattern, but for more complex
matching needs, it's nice to have regular expressions.
And as the existing "name a part of the match" concept maps nicely to
named capture groups, we can simply reuse the same code and make groups
with names available in the match body.
2022-04-18 19:53:10 +04:30
Ali Mohammad Pur
6aceec4535 LibLine: Don't use fdopen() for stream in edit_in_external_editor()
We would have to fclose() it to be clean and nice, but that would close
the fd; instead just duplicate it and write through that, this makes it
actually write to the file.
2022-04-18 19:53:10 +04:30
Karol Kosek
35cb5ea47c Utilities/profile: Call split_view() using StringView for command parts
This fixes the always appearing 'No such file' error when using the -c
flag, as the String was deconstructed right after running this line.
2022-04-18 14:17:01 +02:00
Sam Atkins
00782d9a59 LibWeb: Disallow trailing commas in transform function arguments 2022-04-18 14:16:28 +02:00
Sam Atkins
b3a6044fd8 LibWeb: Disallow non-whitespace tokens after "none" in transform
Before this, a declaration like `transform: none yellow 20;` would be
parsed as `transform: none;`. Now it's correctly rejected as invalid.
2022-04-18 14:16:28 +02:00
Sam Atkins
a52f6fb5b0 LibWeb: Use TransformFunctionMetadata when parsing their arguments
Now, the parser will reject a transform function if:
- There are too many arguments.
- There are too few arguments.
- An argument is the wrong type.
2022-04-18 14:16:28 +02:00
Sam Atkins
42d87239a8 LibWeb: Generate some metadata about transform functions
This will be used to parse and validate their parameters.
2022-04-18 14:16:28 +02:00
Sam Atkins
61ad39b110 LibWeb: Use generated TransformFunction enum and functions 2022-04-18 14:16:28 +02:00
Sam Atkins
872ad98eba LibWeb: Generate TransformFunction to/from string functions 2022-04-18 14:16:28 +02:00
Sam Atkins
5f3498d50f LibWeb: Add code generator for CSS transform functions
This first step just generates the TransformFunction enum, but more will
follow.
2022-04-18 14:16:28 +02:00
Karol Kosek
807101e394 ThemeEditor: Remove unused model classes
They have been replaced by generic RoleModel class.
2022-04-18 12:58:23 +02:00
Karol Kosek
171ecdd691 ThemeEditor: Use new RoleModel template class 2022-04-18 12:58:23 +02:00
Karol Kosek
8817d3ec58 ThemeEditor: Add generic RoleModel template class
This is to simplify the code, as Color, Alignment, Flag, Metric and Path
RoleModel classes looked exactly the same.

Additionally, I've added a try_create() function for error propagation.
:^)
2022-04-18 12:58:23 +02:00
Sam Atkins
73552c1856 Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
Sam Atkins
cd7037afd5 SystemMonitor: Remove MakeInspectable::Yes from constructor
I think this was left in by mistake. No application should be hard-coded
as inspectable.
2022-04-18 12:57:34 +02:00
Sam Atkins
f240def414 LibCore: Allow inspecting any process launched with MAKE_INSPECTABLE=1
For now, EventLoop and Application still have a make_inspectable
parameter, so that when working on an application you can temporarily
hard-code it to be inspectable rather than having to set the env var
each time.
2022-04-18 12:57:34 +02:00
Eli Youngs
d20ff6c891 HexEditor: Show endianness in the value inspector 2022-04-18 09:25:38 +04:30
Thitat Auareesuksakul
f4b8bae65f AK: Add Kernel namespace to KStrings in AK::IPv6Address
Currently there is no AK::IPv6Address in the kernel. But when there is,
KStrings won't resolve properly because they are in Kernel namespace.
2022-04-17 16:57:52 -07:00
Lady Gegga
3c00c1cfad Base: Add some Mathematical Alphanumeric Symbols to Katica Regular 10
1D5D4-1D607 https://www.unicode.org/charts/PDF/U1D400.pdf
2022-04-17 23:25:56 +01:00
djwisdom
5e046a1db9 Base: Update AtaraxiaLight8 add glyphs to widen coverage
Miscellaneous Symbols
2600-261F,2621,2640-2645,2647-2653,268A-2693,26A5,26A6,26A8-26Af
https://www.unicode.org/charts/PDF/U2600.pdf
2022-04-17 23:25:48 +01:00
Linus Groh
472ff7a6d4 LibJS: Don't coerce this value in %IteratorPrototype%[@@iterator]
Another day, another mistake that's been there for a long time but
would've been immediately obvious when adding spec comments. :^)
2022-04-18 00:24:02 +02:00
Linus Groh
ee1379520a LibJS: Add missing whitespace around namespace curly braces 2022-04-17 23:00:35 +02:00
Lady Gegga
f5fc921d84 Base: Add 125 new Bamum Supplement glyphs to font Katica Regular 10
16803, 1681D, 1682F, 16830, 16834, 16835, 16836, 16837, 16839, 1683E,
1683F, 16841, 16842, 16853, 16859, 16861, 16862, 16886, 16887, 16888,
16889, 168AE, 168C0, 168C3, 168C4, 168C7, 168C9, 168CE, 168D3, 168DF,
168E3, 168EF, 16926, 16927, 1692E, 16933, 16937, 16938, 1693A, 1693B,
1693D, 16940, 16941, 16960, 16963, 16964, 16967, 16969, 1696C, 1696D,
1696E, 1696F, 16973, 16974, 16975, 16979, 1697A, 1697B, 1697D, 1697F,
16987, 1698F, 16990, 16991, 16993, 16995, 16997, 16999, 1699B, 1699D,
169AA, 169AD, 169AE, 169B0, 169B2, 169B4, 169B5, 169B7, 169B8, 169C8,
169C9, 169CB, 169D0, 169D1, 169D6, 169DE, 169E1, 169E4, 169E5, 169E6,
169E7, 169EF, 169F1, 169F3, 169F5, 169F7, 169F8, 169F9, 169FE, 16A06,
16A07, 16A09, 16A0E, 16A0F, 16A10, 16A11, 16A12, 16A13, 16A14, 16A15,
16A16, 16A1A, 16A1F, 16A20, 16A21, 16A23, 16A26, 16A27, 16A2B, 16A2C,
16A2D, 16A33, 16A36, 16A37, 16A38
https://www.unicode.org/charts/PDF/U16800.pdf
2022-04-17 20:58:32 +01:00
djwisdom
f5a87bfff7 Base: Update CsillaRegular12 add glyphs for wider coverage
Lisu Supplement
11FB0

Idiographic Symbols and Punctuation
16FF1-16FE4,16FF0,16FF1

Control Pictures
2400-2426

Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:53 +01:00
djwisdom
c35a456651 Base: Update CsillaBold12 add glyphs for wider coverage
Lisu Supplement
11FB0

Idiographic Symbols and Punctuation
16FF1-16FE4,16FF0,16FF1

Control Pictures
2400-2426

Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:53 +01:00
djwisdom
b673aeca74 Base: Update SatoriMonoRegular add glyphs to widen coverage
SatoriMonoRegular
Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:39 +01:00
djwisdom
30cc4a969a Base: Update SatoriMonoBold add glyphs to widen coverage
SatoriMonoBold
Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:39 +01:00
djwisdom
0502583a05 Base: Update SatoriRegular add glyphs to widen coverage
SatoriRegular
Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:39 +01:00
djwisdom
8c5289fe94 Base: Update SatoriBold add glyphs to widen coverage
SatoriBold
Supplemental Arrows-A
27F0-27FF
2022-04-17 20:48:39 +01:00
djwisdom
3ddd8f0d68 Base: Update Coffee Theme enable window-close-modified icon
Aim for consistent user-experience across all themes
2022-04-17 10:56:01 -07:00
Tim Schumacher
8c278bba43 Meta: Keep timestamps of manually copied toolchain output 2022-04-17 10:53:31 -07:00
stelar7
196dada7e2 LibWeb: Dont abort when parsing data- properties that contain dashes 2022-04-17 20:08:27 +03:00
Thitat Auareesuksakul
c949a4db2d DHCPClient: Send ParameterRequestList option with DHCPRequest packet
We'll need SubnetMask and Router options to be returned with the ACK
packet. So, it's a good idea to request them explicitly in this packet.
2022-04-17 10:25:01 +04:30
Thitat Auareesuksakul
01a602cb51 DHCPClient: Send ServerIdentifier option with DHCPRequest packet
Some DHCP servers (including Mikrotik ones) will NAK the request if the
ServerIdentifier option is not sent with the DHCPRequest packet.
2022-04-17 10:25:01 +04:30
Michiel Visser
fa18c283dc LibTLS: Cleanup of verify_chain and verify_certificate_pair 2022-04-17 10:10:19 +04:30
Michiel Visser
be654dad8a LibCrypto: Certificate parse IP address SAN
Subject alternative name entries containing IP addresses will now be
parsed and added to the list of SANs. This should allow for certificate
verification when accessing IP addresses directly.
2022-04-17 10:10:19 +04:30
Michiel Visser
7bc3b193c0 LibTLS: Add option to allow self-signed certificates
With this option enabled self-signed certificates will be accepted,
eventhough they cannot be verified.
2022-04-17 10:10:19 +04:30