Commit graph

41961 commits

Author SHA1 Message Date
leeight
1d058ffd72 Documentation: Update VSCodeConfiguration.md
Because x86-64 is the default target, so update the related
documentations.

74018be739
2022-10-13 17:44:49 +02:00
Xexxa
3b9e52cd46 Base: Adjust emoji flag sizes
🇨🇱 - U+1F1E8 U+1F1F1 FLAG: CHILE
🇨🇴 - U+1F1E8 U+1F1F4 FLAG: COLOMBIA
🇨🇵 - U+1F1E8 U+1F1F5 FLAG: CLIPPERTON ISLAND
🇨🇷 - U+1F1E8 U+1F1F7 FLAG: COSTA RICA
🇨🇺 - U+1F1E8 U+1F1FA FLAG: CUBA
🇨🇼 - U+1F1E8 U+1F1FC FLAG: CURAÇAO
🇨🇿 - U+1F1E8 U+1F1FF FLAG: CZECHIA
🇩🇪 - U+1F1E9 U+1F1EA FLAG: GERMANY
🇩🇯 - U+1F1E9 U+1F1EF FLAG: DJIBOUTI
🇩🇰 - U+1F1E9 U+1F1F0 FLAG: DENMARK
🇩🇴 - U+1F1E9 U+1F1F4 FLAG: DOMINICAN REPUBLIC
🇪🇦 - U+1F1EA U+1F1E6 FLAG: CEUTA & MELILLA
🇪🇬 - U+1F1EA U+1F1EC FLAG: EGYPT
🇪🇸 - U+1F1EA U+1F1F8 FLAG: SPAIN
🇫🇲 - U+1F1EB U+1F1F2 FLAG: MICRONESIA
🇫🇷 - U+1F1EB U+1F1F7 FLAG: FRANCE
🇬🇦 - U+1F1EC U+1F1E6 FLAG: GABON
🇬🇳 - U+1F1EC U+1F1F3 FLAG: GUINEA
🇬🇷 - U+1F1EC U+1F1F7 FLAG: GREECE
🇬🇹 - U+1F1EC U+1F1F9 FLAG: GUATEMALA
🇬🇼 - U+1F1EC U+1F1FC FLAG: GUINEA-BISSAU
🇬🇾 - U+1F1EC U+1F1FE FLAG: GUYANA
🇭🇰 - U+1F1ED U+1F1F0 FLAG: HONG KONG SAR CHINA
🇭🇲 - U+1F1ED U+1F1F2 FLAG: HEARD & MCDONALD ISLANDS
🇭🇺 - U+1F1ED U+1F1FA FLAG: HUNGARY
🇮🇨 - U+1F1EE U+1F1E8 FLAG: CANARY ISLANDS
🇮🇩 - U+1F1EE U+1F1E9 FLAG: INDONESIA
🇮🇷 - U+1F1EE U+1F1F7 FLAG: IRAN
🇮🇹 - U+1F1EE U+1F1F9 FLAG: ITALY
🇰🇷 - U+1F1F0 U+1F1F7 FLAG: SOUTH KOREA
🇱🇰 - U+1F1F1 U+1F1F0 FLAG: SRI LANKA
🇱🇹 - U+1F1F1 U+1F1F9 FLAG: LITHUANIA
🇱🇺 - U+1F1F1 U+1F1FA FLAG: LUXEMBOURG
🇱🇻 - U+1F1F1 U+1F1FB FLAG: LATVIA
🇲🇨 - U+1F1F2 U+1F1E8 FLAG: MONACO
🇲🇫 - U+1F1F2 U+1F1EB FLAG: ST. MARTIN
🇲🇬 - U+1F1F2 U+1F1EC FLAG: MADAGASCAR
🇲🇲 - U+1F1F2 U+1F1F2 FLAG: MYANMAR (BURMA)
🇲🇺 - U+1F1F2 U+1F1FA FLAG: MAURITIUS
🇲🇼 - U+1F1F2 U+1F1FC FLAG: MALAWI
🇳🇦 - U+1F1F3 U+1F1E6 FLAG: NAMIBIA
🇳🇪 - U+1F1F3 U+1F1EA FLAG: NIGER
🇳🇱 - U+1F1F3 U+1F1F1 FLAG: NETHERLANDS
🇳🇷 - U+1F1F3 U+1F1F7 FLAG: NAURU
🇵🇪 - U+1F1F5 U+1F1EA FLAG: PERU
🇵🇭 - U+1F1F5 U+1F1ED FLAG: PHILIPPINES
🇵🇱 - U+1F1F5 U+1F1F1 FLAG: POLAND
🇷🇪 - U+1F1F7 U+1F1EA FLAG: RÉUNION
🇸🇮 - U+1F1F8 U+1F1EE FLAG: SLOVENIA
🇸🇰 - U+1F1F8 U+1F1F0 FLAG: SLOVAKIA
🇸🇱 - U+1F1F8 U+1F1F1 FLAG: SIERRA LEONE
🇸🇴 - U+1F1F8 U+1F1F4 FLAG: SOMALIA
🇸🇷 - U+1F1F8 U+1F1F7 FLAG: SURINAME
🇸🇸 - U+1F1F8 U+1F1F8 FLAG: SOUTH SUDAN
🇸🇾 - U+1F1F8 U+1F1FE FLAG: SYRIA
🇹🇩 - U+1F1F9 U+1F1E9 FLAG: CHAD
🇹🇴 - U+1F1F9 U+1F1F4 FLAG: TONGA
🇹🇷 - U+1F1F9 U+1F1F7 FLAG: TURKEY
🇹🇼 - U+1F1F9 U+1F1FC FLAG: TAIWAN
🇺🇦 - U+1F1FA U+1F1E6 FLAG: UKRAINE
🇺🇳 - U+1F1FA U+1F1F3 FLAG: UNITED NATIONS
🇺🇾 - U+1F1FA U+1F1FE FLAG: URUGUAY
🇺🇿 - U+1F1FA U+1F1FF FLAG: UZBEKISTAN
🇻🇨 - U+1F1FB U+1F1E8 FLAG: ST. VINCENT & GRENADINES
🇻🇪 - U+1F1FB U+1F1EA FLAG: VENEZUELA
🇼🇸 - U+1F1FC U+1F1F8 FLAG: SAMOA
🇾🇪 - U+1F1FE U+1F1EA FLAG: YEMEN
🇿🇦 - U+1F1FF U+1F1E6 FLAG: SOUTH AFRICA
2022-10-13 17:43:33 +02:00
Xexxa
25eb366a33 Base: Adjust emoji (remove corner pixel for 3D feel)
📔 - U+1F4D4 NOTEBOOK WITH DECORATIVE COVER
📕 - U+1F4D5 CLOSED BOOK
📗 - U+1F4D7 GREEN BOOK
📘 - U+1F4D8 BLUE BOOK
📙 - U+1F4D9 ORANGE BOOK
📓 - U+1F4D3 NOTEBOOK
📒 - U+1F4D2 LEDGER
2022-10-13 17:43:33 +02:00
Xexxa
597750c077 Base: Add more emoji
👁️‍🗨️ - U+1F441 U+200D U+1F5E8 EYE IN SPEECH BUBBLE
🦷 - U+1F9B7 TOOTH
🧜‍♀️ - U+1F9DC U+200D U+2640 MERMAID
🏌️‍♂️ - U+1F3CC U+200D U+2642 MAN GOLFING
🏌️‍♀️ - U+1F3CC U+200D U+2640 WOMAN GOLFING
🏊‍♂️ - U+1F3CA U+200D U+2642 MAN SWIMMING
🏊‍♀️ - U+1F3CA U+200D U+2640 WOMAN SWIMMING
🏋️‍♂️ - U+1F3CB U+200D U+2642 MAN LIFTING WEIGHTS
🏋️‍♀️ - U+1F3CB U+200D U+2640 WOMAN LIFTING WEIGHTS
🦓 - U+1F993 ZEBRA
🐮 - U+1F42E COW FACE
🥖 - U+1F956 BAGUETTE BREAD
🏺 - U+1F3FA AMPHORA
🚂 - U+1F682 LOCOMOTIVE
🚃 - U+1F683 RAILWAY CAR
🛶 - U+1F6F6 CANOE
🛍️ - U+1F6CD SHOPPING BAGS
💴 - U+1F4B4 YEN BANKNOTE
💵 - U+1F4B5 DOLLAR BANKNOTE
💶 - U+1F4B6 EURO BANKNOTE
💷 - U+1F4B7 POUND BANKNOTE
🪚 - U+1FA9A CARPENTRY SAW
🚽 - U+1F6BD TOILET
🚿 - U+1F6BF SHOWER
☣️ - U+2623 BIOHAZARD
📳 - U+1F4F3 VIBRATION MODE
♻️ - U+267B RECYCLING SYMBOL
⚜️ - U+269C FLEUR-DE-LIS
2022-10-13 17:43:33 +02:00
Xexxa
f912fb3f08 Base: Adjust emoji (colour scheme consistency)
🏌️ - U+1F3CC PERSON GOLFING
🏋️ - U+1F3CB PERSON LIFTING WEIGHTS
2022-10-13 17:43:33 +02:00
Luke Wilde
bf2debdf53 LibWeb: Make navigator.languages an attribute instead of a function 2022-10-13 14:42:14 +02:00
demostanis
1eac02c9a4 CatDog: Make it always on top 2022-10-13 12:37:54 +01:00
demostanis
63a18aa89e LibGUI+WindowServer: Add Window::set_always_on_top() 2022-10-13 12:37:54 +01:00
Timon Kruiper
50e74de279 Kernel: Add StdLib.cpp and UserOrKernelBuffer.cpp to aarch64 build
Also remove UserOrKernelBuffer::{read, write} and __stack_chk_fail from
Dummy.cpp and init.cpp respectively.
2022-10-13 11:26:46 +02:00
Andrew Kaster
290d3449e0 LibVideo: Hide debug message behind MATROSKA_DEBUG
This clutters fuzzer output if enabled.
2022-10-13 11:25:03 +02:00
Andrew Kaster
b704f82487 Fuzzers: Add VP9Decoder and MatroskaReader fuzzers for LibVideo 2022-10-13 11:25:03 +02:00
Andrew Kaster
bf014c4d20 LibVideo: Check parsed superframe sizes when decoding VP9 frames
Make sure that the next parsed superframe size will not overflow the
chunk data before splitting it out to decode a frame.
2022-10-13 11:25:03 +02:00
Andrew Kaster
9d3074f72f LibVideo: Always check byte length before reading first byte in Streamer
The check was missing at the front of
MatroskaReader::Streamer::read_variable_size_integer, causing assertions
on malformed input streams.
2022-10-13 11:25:03 +02:00
MacDue
4507920187 LibWeb: Fix position: fixed canvases/images disappearing when scrolling
This fixes the Serenity logo vanishing after scrolling on the 4th
birthday post.

The previous check did not account for any translation in the painter.
This now uses the painter's clip rect and translation to work out
if a rect is visible. It also makes use of `absolute_paint_rect()`
rather than `absolute_rect()` which can account for things like
box-shadows.
2022-10-13 11:16:27 +02:00
Maxwell Trussell
f5e68fcc20 Utilities: Add pkill 2022-10-13 11:15:33 +02:00
Linus Groh
a982e0380e LibWeb: Implement navigator.webdriver
This is defined via the NavigatorAutomationInformation interface mixin
from the WebDriver spec: https://w3c.github.io/webdriver/#interface
2022-10-13 11:14:45 +02:00
Linus Groh
68006f3e16 LibWeb: Update Navigator.idl to use 4 spaces for indentation 2022-10-13 11:14:45 +02:00
Linus Groh
5681115744 Browser: Set 'webdriver-active flag' when creating a new Tab 2022-10-13 11:14:45 +02:00
Linus Groh
3f24a444f9 LibWeb+WebContent: Add plumbing for 'webdriver-active flag' 2022-10-13 11:14:45 +02:00
Xexxa
4c6f830a35 Meta: Add links to GitHub sponsors under authors 2022-10-13 11:13:38 +02:00
Al Hoang
d7d50d6d9e AK: Fix FreeBSD compilation for clock
FreeBSD introduced CLOCK_MONOTONIC_COARSE and CLOCK_REALTIME_COARSE.
This update fixes ladybird builds from FreeBSD 13.1

see clock_gettime(2) https://www.freebsd.org/cgi/man.cgi?query=clock_gettime&apropos=0&sektion=0&manpath=FreeBSD+13.1-RELEASE&arch=default&format=ascii
2022-10-12 23:12:13 -06:00
Sam Atkins
096fe865c6 WebDriver: Implement GET /session/{id}/url endpoint 2022-10-12 23:07:42 +02:00
Sam Atkins
a15d32982a WebDriver: Implement GET /status endpoint 2022-10-12 23:07:42 +02:00
Sam Atkins
80603f141a WebDriver: Add new WebDriver service
WebDriver aims to implement the WebDriver specification found at
https://w3c.github.io/webdriver/webdriver-spec.html . It's an HTTP
server that can create Browser sessions and control them.

Co-authored-by: Florent Castelli <florent.castelli@gmail.com>
2022-10-12 23:07:42 +02:00
Sam Atkins
8c0f1da9f7 Browser: Add a basic WebDriver API
This adds a new option "--webdriver" that opens a local unix socket
in /tmp/browser_{pid} which the WebDriver server can use to send
commands to the Browser instance.

Co-authored-by: Florent Castelli <florent.castelli@gmail.com>
2022-10-12 23:07:42 +02:00
Florent Castelli
ec9c11667f LibC+LibCore: Fix file argument name in posix_spawnp
posix_spawnp takes a file, which is subject to PATH search,
while posix_spawn takes a path.
2022-10-12 23:07:42 +02:00
implicitfield
480e517f03 checksum: Support the '--check' option
This commit also updates 'checksum' to use the Core::Stream::File API.
2022-10-12 12:01:40 -06:00
davidot
340a2a96a4 test262-runner: Use names for the different exit codes
These are not used by test-test262 but can be used to quickly
distinguish the type of problem if the runner fails when running
manually.
2022-10-12 12:00:21 -06:00
davidot
1f54259922 test262-runner: Port to Core::Stream 2022-10-12 12:00:21 -06:00
davidot
302593ded5 test-test262: Port to Core::Stream and use TRY more
The only complication here is that Core::Stream::File is not RefCounted
meaning we have to use OwnPtr instead of RefPtr.
Unfortunately we cannot propagate errors as some errors must be caught
and dealt with as the runner can do anything (like stop at any moment
or close pipes).
2022-10-12 12:00:21 -06:00
davidot
49e3b387ac test-test262: Close the output file stream after writing
Without this the runner is waiting for new tests which will never come
and test-test262 is waiting for output which never comes since the
runner is blocked.
Also finish off a comment, and make the variables follow serenity style.
2022-10-12 12:00:21 -06:00
davidot
d9360676cd LibCore: Add standard_{output, input, error} functions to File::Stream 2022-10-12 12:00:21 -06:00
davidot
e0cccaa583 LibCore: Add option to Stream::File to not close the file on destruction 2022-10-12 12:00:21 -06:00
Mart G
279121fa10 HexEditor: Fix two off-by-one errors
The 'select all' feature now also selects the last byte of the document.
The find function now also selects the last byte of a match.
2022-10-12 18:15:44 +02:00
huttongrabiel
6926991a56 LibGUI: Delete from current position to end of line in VimEditingEngine
When in normal mode pressing Shift+D will delete from the current cursor
position to the end of the line. Leaving the cursor on the character
before where the cursor was when the deletion took place.
2022-10-12 09:46:18 -06:00
Ali Mohammad Pur
166a905951 Userland: Properly populate GENERATED_SOURCES
We previously put the generated headers in SOURCES, which did not mark
them as GENERATED (and did not produce a proper dependency).
This commit moves all generated headers into GENERATED_SOURCES, and
removes useless header SOURCES.
2022-10-12 15:55:15 +01:00
Mart G
c88058cea2 PixelPaint: Call update after clearing guides 2022-10-12 15:25:18 +01:00
Liav A
a1d1f7566f Documentation: Add initial document about the Kernel graphics subsystem 2022-10-12 15:00:53 +01:00
Gunnar Beutner
344ca73930 TextEditor: Set window title before showing the main window
Previously TextEditor updated its window title after the window was
already visible. This causes the default title ("GUI::Window") to be
shown for a short period of time which was especially noticeable when
opening files.
2022-10-12 14:47:27 +02:00
Timon Kruiper
8373a14835 LibWeb: Remove code duplication in computing height for abs-pos elements
This refactors the solve_for_{top, bottom, height, etc} lambdas to use a
common solve_for lambda that takes the length to be solved as an
argument. This way some code duplication is removed.
2022-10-12 11:08:29 +02:00
Samuel Bowman
ca0a0b7a93 LibWeb: Add missing else's in absolutely positioned height computation
Rules 1, 2, and 3 use else if, so rules 4, 5, and 6 should too.
2022-10-12 10:32:57 +02:00
Jan200101
743f46030c LibC: Declare _setjmp and _longjmp on non i386 platforms
These aliases were previously only implemented for i386 and are required
for certain Ports e.g. Lua.
2022-10-12 02:07:27 -06:00
Zaggy1024
41cb705b47 LibVideo: Allow the VP9 decoder to decode ultra high resolution video
Previously, some integer overflows and truncations were causing parsing
errors for 4K videos, with those fixed it can fully decode 8K video.

This adds a test to ensure that 4K video will continue to be decoded.

Note: There seems to be unexpectedly high memory usage while decoding
them, causing 8K video to require more than a gigabyte of RAM. (!!!)
2022-10-12 00:54:31 -06:00
Jeremy Borgman
f894e8be62 shot: Add ability to edit in PixelPaint 2022-10-12 00:46:33 -06:00
Markus Pfeifenberger
0cfcac7900 Kernel: Only use the TSC when it is invariant 2022-10-12 00:32:23 -06:00
minus
cf48200e7b Kernel: Make the ACPI DSDT table accessible
Expose the DSDT table in ACPI::Parser and in
/sys/firmware/acpi as a first little step toward
interpreting the AML bytecode from ACPI.
2022-10-12 00:11:36 -06:00
implicitfield
8c5fa95ba3 test: Guard code paths that may lead to a null pointer dereference
test no longer crashes with a segmentation violation if invalid
arguments are passed.
2022-10-11 23:38:13 -06:00
Tommy Murphy
0ee98c69c1 LibCompress: Brotli support metadata of skip_length=0
The relevant RFC section from
https://www.rfc-editor.org/rfc/rfc7932#section-9.2

MSKIPBYTES * 8 bits: MSKIPLEN - 1, where MSKIPLEN is
       the number of metadata bytes; this field is
       only present if MSKIPBYTES is positive;
       otherwise, MSKIPLEN is 0 (if MSKIPBYTES is
       greater than 1, and the last byte is all
       zeros, then the stream should be rejected as
       invalid)

So when skip_bytes is zero we need to break and
re-align bytes.

Added the relevant test case that demonstrates this from:
https://github.com/google/brotli/blob/master/tests/testdata/x.compressed
2022-10-11 22:49:33 -06:00
Kenneth Myhra
7ea987456a Documentation: Update CLion Configuration to use the x86-64 target
Since the default target is x86-64 after PR #15441 was merged, then let
us update the CLion Configuration accordingly.
2022-10-12 00:09:51 +02:00
Andreas Kling
e6de382679 LibWeb: Constrain abspos element heights by min-height and max-height 2022-10-11 22:31:51 +02:00