Linus Groh
bd110be367
Kernel: Fix typo in a comment
2022-03-22 11:26:29 +00:00
Nícolas F. R. A. Prado
2c44c7fc89
KeyboardSettings: Allow changing and applying active keymap
...
Previously only the list of allowed keymaps could be modified and
applied to the system.
Add a new button to activate the selected keymap from the list. When
applying the changes to the system, also apply the active keymap.
2022-03-22 12:21:21 +01:00
Nícolas F. R. A. Prado
a48d7d6adc
KeyboardSettings: Rename m_current_applied_keymap
...
Rename it to m_initial_active_keymap to denote that it's the keymap that
was active when the application started up.
2022-03-22 12:21:21 +01:00
int16
256744ebdf
Kernel: Make mmap validation functions return ErrorOr<void>
2022-03-22 12:20:19 +01:00
int16
4b96d9c813
Kernel: Move mmap validation functions to Process
2022-03-22 12:20:19 +01:00
int16
479929b06c
Kernel: Check wxallowed mount flag when validating mmap call
2022-03-22 12:20:19 +01:00
int16
3f391d80c4
SystemMonitor: Recognise wxallowed mount flag
2022-03-22 12:20:19 +01:00
int16
8a523568cb
Mount: Add wxallowed mount option to mount documentation
2022-03-22 12:20:19 +01:00
int16
a4d96c159c
Mount: Implement wxallowed mount option
2022-03-22 12:20:19 +01:00
int16
4307c4480e
Kernel: Define MS_WXALLOWED mount option
2022-03-22 12:20:19 +01:00
Rok Povsic
5bb5967259
Browser: Append .com when pressing CTRL+Enter in the URL text editor
...
This is the behavior in Firefox / Chrome.
2022-03-22 12:17:48 +01:00
Rok Povsic
7da0d94d03
LibGUI: Add CTRL+Enter callback to TextEditor
2022-03-22 12:17:48 +01:00
Linus Groh
883768c646
Base: Use technically accurate term in unveil(2) man page
2022-03-22 11:16:19 +00:00
Jelle Raaijmakers
d195972ec2
Applications: Do not crash if decoded bitmap is null
...
ImageViewer and PixelPaint would crash when the ImageDecoderClient
returns a frame without a bitmap. This can happen with `.ico` files
with an unsupported BPP, for example.
2022-03-22 12:14:09 +01:00
Nicholas Cellino
1db7c423db
disk_benchmark: Port to LibMain
2022-03-22 11:51:32 +01:00
Brian Gianforcaro
0a9e84aff0
readelf: Port to LibMain
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
575fcc42c3
purge: Port to LibMain
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
fbceebb717
ping: Utilize TRY + Core::System wrappers
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
08d65e8c38
traceroute: Port to LibMain
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
6eebd69b70
LibCore: Add Core::System::drop_privileges()
...
In a few places we intentionally drop privileges to reduce the potential
security surface area of networked program, with the pattern of:
```
if (setgid(getgid()) || setuid(getuid()) {
return 1;
}
```
We can make this a bit nicer to use by creating a wrapper.
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
7403342387
true: Port to LibMain
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
544609b40f
printf: Port to LibMain
2022-03-22 11:39:20 +01:00
Brian Gianforcaro
dba23c55dd
matroska: Port to LibMain
2022-03-22 11:39:20 +01:00
Andreas Kling
b6e767f953
Kernel: Disable KASLR on i686
...
The 32-bit CI runners don't seem to happy with KASLR, so let's make it
x86-64 only for now.
2022-03-22 02:47:27 +01:00
Jamie Mansfield
9b9d32dfb2
LibWeb: Fix crash when removing event listeners
2022-03-22 02:35:07 +01:00
Timothy Flynn
27eb70cbba
LibWeb: Implement HTMLSelectElement.add()
...
HTMLSelectElement simply defers to its HTMLOptionsCollection.
2022-03-22 02:08:15 +01:00
Timothy Flynn
ff9856a214
LibWeb: Implement HTMLOptionsCollection.add()
2022-03-22 02:08:15 +01:00
Timothy Flynn
5133491714
LibWeb: Expose HTMLCollection's root element to its subclasses
...
For example, HTMLOptionsCollection will need to access its root
HTMLSelectElement.
2022-03-22 02:08:15 +01:00
Timothy Flynn
324f709d29
LibWeb: Support IDL default values of "null" for optional arguments
...
This is a bit strange in the IDL syntax, but e.g., in HTMLSelectElement,
we have (simplified):
undefined add(optional (HTMLElement or long)? before = null)
This could instead become:
undefined add(optional (HTMLElement or long) before)
This change generates code for the former as if it were the latter.
2022-03-22 02:08:15 +01:00
Simon Wanner
dc94879b83
LibWeb: Support transform: translate(...)
by percentage
2022-03-22 02:06:21 +01:00
Simon Wanner
bc5d39493b
Base: Add a test page for CSS transforms
...
This also acts as a little stress test for flexbox layout :^)
2022-03-22 02:06:21 +01:00
Simon Wanner
4f348f1733
LibGfx: Clip away coordinates outside the source bitmap
...
This prevents accessing the source pixels out of bounds.
2022-03-22 02:06:21 +01:00
Simon Wanner
145efbe07a
LibWeb: Apply the CSS transform-origin property
...
We don't have transform-box yet, so this applies to the border-box
for now.
This also makes us pass a couple Web Platform Tests as well :^)
For example:
https://wpt.live/css/css-transforms/css3-transform-scale-002.html
2022-03-22 02:06:21 +01:00
Simon Wanner
63055ff5ad
LibWeb: Parse the CSS transform-origin property
...
This is almost a PositionStyleValue, but it's serialized differently,
so let's use a StyleValueList with 2 length-percentage values.
2022-03-22 02:06:21 +01:00
Idan Horowitz
1ad0e05ea1
Kernel: Add an extremely primitive version of KASLR
...
This initial (and very basic) implementation of KASLR simply randomizes
the kernel base VA in the 256 MiB range following the default load base.
2022-03-21 23:33:42 +01:00
Idan Horowitz
a9764dabee
Kernel: Add helpers for rdrand and rdseed
2022-03-21 23:33:42 +01:00
Andreas Kling
8ab25f8d8c
LibWeb: Implement Range.surroundContents(newParent)
...
Here goes another Acid3 point :^)
2022-03-21 23:28:46 +01:00
Karol Kosek
686507a38f
LibWeb: Translate table cells by their top left border
2022-03-21 21:55:21 +01:00
Karol Kosek
20730c164c
LibWeb: Include table cell border widths when calculating cell rects
...
Previously, table cells would overlap when they had CSS border or
padding properties defined.
2022-03-21 21:55:21 +01:00
Andreas Kling
68f3feb1d1
LibWeb: Fix two spec transcription mistakes in live range updating
...
This scores us another point on Acid3. :^)
2022-03-21 21:11:38 +01:00
Timothy Flynn
57296393ed
LibWeb: Begin implementing SVGRectElement's SVGAnimatedLength attributes
2022-03-21 21:04:39 +01:00
Timothy Flynn
7a6b4e33ba
LibWeb: Implement the SVGAnimatedLength type
2022-03-21 21:04:39 +01:00
Timothy Flynn
ebf3829f1c
LibWeb: Begin implementing the SVGLength type
...
There are a few unimplemented features for this type:
1. The value setter should throw a DOMException if it is invoked on an
SVGLength that was declared readonly in another IDL file.
2. SVG::AttributeParser does not parse unit types when it parses lengths
so all SVGLength will have an "unknown" unit for now.
3. Due to (2), methods which convert between units are unimplemented.
2022-03-21 21:04:39 +01:00
Timothy Flynn
3ebc5cc58e
LibWeb: Support generating IDL float types
...
The float type is used quite a bit in the SVG spec.
2022-03-21 21:04:39 +01:00
Andreas Kling
4d49c607f8
LibWeb: Fix spec transcription mistake in Range.extractContents()
...
The spec text and code didn't match up.
Thanks to Tim for spotting this! :^)
2022-03-21 21:01:47 +01:00
Andreas Kling
ac8a8459d0
LibWeb: Don't allow setting Range start/end to document being destroyed
2022-03-21 20:37:49 +01:00
Andreas Kling
3b6323340a
LibWeb: Update live ranges on Node insertion and removal
...
Taking care of some old FIXMEs :^)
2022-03-21 20:26:35 +01:00
Andreas Kling
1254758b00
LibWeb: Update live DOM ranges on Text and CharacterData mutations
...
Taking care of the FIXMEs I added in earlier patches. :^)
2022-03-21 20:06:59 +01:00
Andreas Kling
c74b1b6d65
LibWeb: Implement Range.insertNode(node)
2022-03-21 19:14:50 +01:00
Andreas Kling
d2f9f8bd4f
LibWeb: Implement Text.splitText(offset)
...
With FIXMEs about updating live ranges, but still.
2022-03-21 19:14:50 +01:00