AnotherTest
eb7a943641
Meta: Set a 10 second timeout on Shell tests
...
Shell-backgrounding seems to be deadlocking at times, until that's
fixed, let's not take 5 hours to fail the build.
2020-12-15 20:58:32 +01:00
AnotherTest
4668dfa7c7
Shell: Make Subshell actually create a subshell
...
Previously, a "subshell" would just be executed in the parent shell.
2020-12-15 20:58:32 +01:00
Andreas Kling
72bd672da0
LibWeb: Remove use of specified_style() in Layout::ImageBox
2020-12-15 20:50:58 +01:00
Andreas Kling
613764b83c
LibWeb: Actually apply recomputed style to element's layout node
...
Otherwise fetching stuff via LayoutNode::style() will have stale values
since we were only updating the specified_style() here.
LayoutNode::specified_style() should eventually go away since there's
no need to carry those uncooked values around with the layout tree.
2020-12-15 20:49:11 +01:00
Andreas Kling
ef61430738
LibWeb: Update text-decoration hack to use text-decoration-line
...
We have a hack that propagates text-decoration-line through inheritance
even though it's not an inherited property. Once we implement the CSS
cascade properly we can stop doing this.
2020-12-15 20:48:16 +01:00
Andreas Kling
17c529e6c5
LibWeb: Generate the CSS::ValueID enum and its helper functions
2020-12-15 20:40:10 +01:00
Andreas Kling
92d8e559ba
LibWeb: Oops, not all length boxes should default to 'auto' values
...
Only the offset box (left/top/right/bottom) box defaults to 'auto'.
Both the padding and margin boxes default to '0' for all values.
2020-12-15 20:01:00 +01:00
Andreas Kling
30685a7714
LibWeb: Add equals() for LengthStyleValue and ColorStyleValue
...
The default equals() does to_string() on both sides which is pretty
silly when they are of the same type.
2020-12-15 19:40:06 +01:00
Andreas Kling
58bade25dd
LibWeb: Add hack to disable StyleInvalidator while parsing document
...
Running a StyleInvalidator for every attribute set in a new document
was making it impossible to load larger sites. :^)
2020-12-15 19:33:53 +01:00
Andreas Kling
23f70535e2
LibWeb: Dimension inline-block and replaced boxes during splitting
...
Don't wait until fragment layout to compute width/height of boxes on
the line, just do it while we're splitting into lines.
2020-12-15 19:33:53 +01:00
Andreas Kling
4a9dcd974a
LibWeb: Remove unused Element::set_attributes()
2020-12-15 19:33:53 +01:00
Andreas Kling
9c76c4f0cf
LibWeb: Use IdentifierStyleValue for CSS 'list-style-type'
2020-12-15 19:33:53 +01:00
Andreas Kling
c630ae517e
LibWeb: Put final foreground/background colors in LayoutStyle
...
This way we don't have to look them up in the CSS::StyleProperties
every time we want to paint with them.
2020-12-15 19:33:53 +01:00
Andreas Kling
78a51933ad
LibWeb: Use IdentifierStyleValue for CSS 'text-transform'
2020-12-15 19:33:53 +01:00
Andreas Kling
4d7ce81835
LibWeb: Use IdentifierStyleValue for CSS 'text-decoration-line'
...
Also 'text-decoration' is actually a shorthand, so treat it that way.
2020-12-15 19:33:53 +01:00
Andreas Kling
dd9a77099f
FileManager: Simplify breadcrumb bar hook callback
...
Now that we store each partial path with the segments, we can just
open up the path of the segment you clicked on.
2020-12-15 19:33:53 +01:00
Andreas Kling
7e78e4b232
LibWeb: Make CSS "background: none" work again
...
This broke since "none" is now always going to be an identifier value.
2020-12-15 19:33:53 +01:00
Brendan Coles
d8c533f588
Breakout: use pledge and unveil
2020-12-15 14:12:55 +01:00
Brendan Coles
e3114667bc
Breakout: randomize ball start trajectory and velocity
2020-12-15 14:12:37 +01:00
Andreas Kling
d410449d87
HackStudio: Don't take LexicalPath as argument
...
Also make use of LexicalPath::has_extension() in one place.
2020-12-15 11:58:47 +01:00
Andreas Kling
4befc2c282
Kernel: Avoid null dereference in sys$profiling_disable()
...
If we can't create a profiling coredump object, we shouldn't try to
call write() on it.
2020-12-15 11:25:51 +01:00
Andreas Kling
be0816507a
Kernel: Remove harmless OOB ELF header access in core dump generation
2020-12-15 11:24:46 +01:00
Andreas Kling
28c042e46f
Kernel: Make CoreDump::m_num_program_headers const
...
This makes it an error to assign to it after construction.
2020-12-15 11:24:46 +01:00
Andreas Kling
ff8bf4db8d
Kernel: Don't take LexicalPath as argument
...
LexicalPath is a big and heavy class that's really meant as a helper
for extracting parts of a path, not for storage or passing around.
Instead, pass paths around as strings and use LexicalPath locally
as needed.
2020-12-15 11:17:01 +01:00
Andreas Kling
bcabbbda8b
Ports: Bump GNU make to version 4.3
2020-12-15 01:06:18 +01:00
Andreas Kling
fb8ae33633
Ports: Bump ncurses to version 6.2
2020-12-15 00:38:57 +01:00
Linus Groh
5e7945e26f
LibWeb: Add a simple StyleInvalidator class
...
This patch adds a simple, naive & inefficient class for document-wide
style invalidation, e.g. after element attribute updates. During
construction it collects a HashMap of a document's elements and their
matching rules, during destruction it does the same and then compares
the results; dirtying all elements that have a different number or order
of matching rules afterwards.
Much room for improvement, but it solves the problem of stale element
styling after attribute updates for now :^)
Fixes #4404 .
2020-12-14 23:38:08 +01:00
Itamar
9a9d655abe
Chess: Add LibCore as a dependency
...
This fixes Dynamic Loader crash because of an unresolved LibCore symbol
2020-12-14 23:05:53 +01:00
Itamar
1efbbf3ac3
Kernel: Don't generate a backtrace when a process exists with non-zero
...
..status
2020-12-14 23:05:53 +01:00
Itamar
b1e01066fe
Lagom/Fuzzers: Fix creation of ELF::Loader
2020-12-14 23:05:53 +01:00
Itamar
2ba5a325d5
Toolchain+Ports: Fix gcc patch file
...
Previously, some hunks of the t-slibgcc patch failed to apply
2020-12-14 23:05:53 +01:00
Itamar
d2a984f2c7
Loader: Don't re-load self-dependant libraries
2020-12-14 23:05:53 +01:00
Itamar
758fc8c063
Toolchain: Fix usage of libgcc_s & build PIE executables by default
...
We can now build the porst with the shared libraries toolchain.
2020-12-14 23:05:53 +01:00
Itamar
69b0fdd84a
CrashDaemon: Show source position in backtrace
2020-12-14 23:05:53 +01:00
Itamar
72ca45e300
UserspaceEmulator: Support dynamically loaded programs
...
When loading dynamic objects, the emulator loads the interpreter,
generates an auxiliary vector and starts executing the loader.
Additionally, this commits also makes the MallocTracer and backtrace
symbolication work for dynamically loaded programs.
2020-12-14 23:05:53 +01:00
Itamar
28cda567c1
UserspaceEmulator: Support the name argument in mmap for file backed mappings
2020-12-14 23:05:53 +01:00
Itamar
d2262b8f6d
UserspaceEmulator: Update memory protection of underlying pages
...
If a MmapRegion is file backed, we need to call mprotect on its
underlying pages.
2020-12-14 23:05:53 +01:00
Itamar
93b68f5566
LibELF: Move the implementation of find_demangled_function to ELF::Image
2020-12-14 23:05:53 +01:00
Itamar
0220b5361e
LibC: Also build a static version of libc
2020-12-14 23:05:53 +01:00
Itamar
d89858f42a
Profiler: Symbolicate samples using coredump file
2020-12-14 23:05:53 +01:00
Itamar
5392f42731
Kernel: Generate coredumps for profiled processes
...
These coredumps will be used by the Profile Viewer to symbolicate the
profiling samples.
2020-12-14 23:05:53 +01:00
Itamar
39890af833
Kernel: Pass full path of output coredump file to CoreDump
2020-12-14 23:05:53 +01:00
Itamar
dfdd977a82
LibC: Link statically with libstdc++
...
This allows us to have the implementation of __cxa_demangle in libc.so.
2020-12-14 23:05:53 +01:00
Itamar
706a8c05fd
CrashDaemon: Add service that acts on new coredumps
...
Currently we only print a backtrace. In the future, we could do something nice in the GUI.
2020-12-14 23:05:53 +01:00
Itamar
a74dad14a8
LibCoreDump: Add library for parsing coredump files
2020-12-14 23:05:53 +01:00
Itamar
50219429fd
LibELF: Allow using ELF::Loader for ET_CORE objects
2020-12-14 23:05:53 +01:00
Itamar
5a2e68d699
LibELF: Temporarily disable name demangling
...
Demangling is currently not supported with shared libraries, but we will fix this soon :)
2020-12-14 23:05:53 +01:00
Itamar
349c6780ce
LibELF: Refactor coredump notes section structures
2020-12-14 23:05:53 +01:00
Itamar
f12e13e81c
Loader: Take main program name from auxiliary vector
2020-12-14 23:05:53 +01:00
Itamar
0b0c09e647
LibCore: Add DirectoryWatcher
...
DirectoryWatcher is a wrapper around watch_file, and can be used to
watch for changes in directories.
2020-12-14 23:05:53 +01:00