summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2021-10-31LibWeb: Convert WebAssemblyTablePrototype funcs to ThrowCompletionOrIdan Horowitz
2021-10-31LibWeb: Convert WebAssemblyMemoryPrototype funcs to ThrowCompletionOrIdan Horowitz
2021-10-31LibWeb: Convert WebAssemblyInstancePrototype funcs to ThrowCompletionOrIdan Horowitz
2021-10-31LibWeb: Convert WebAssemblyObject functions to ThrowCompletionOrIdan Horowitz
2021-10-31LibWeb: Convert WebAssemblyObject AOs to ThrowCompletionOrIdan Horowitz
2021-10-31LibWeb: Make GlobalObject the first parameter of WebAssembly AOsIdan Horowitz
Let's be consistent with the rest of LibJS (and the rest of the file).
2021-10-31Profiler: Cache parsed DWARF debug information in disassembly viewDaniel Bertalan
This changes browsing through disassembled functions in Profiler from a painfully sluggish experience into quite a swift one. It's especially true for profiling the kernel, as it has more than 10 megabytes of DWARF data to churn through.
2021-10-31Profiler: Load the actual kernel binary for disassemblyDaniel Bertalan
/boot/Kernel.debug only contains the symbol table and DWARF debug information, and has its `.text` and other PT_LOAD segments stripped out. When we try to parse its data as instructions, we get a crash from within LibX86. We now load the actual /boot/Kernel binary when we want to disassemble kernel functions.
2021-10-31Profiler: Share the mapped kernel between Profile and DisassemblyModelDaniel Bertalan
There is no point in keeping around a separate MappedFile object for /boot/Kernel.debug for each DisassemblyModel we create and re-parsing the kernel image multiple times. This will significantly speed up browsing through profile entries from the kernel in disassembly view.
2021-10-31LibWeb: Convert all generated bindings to ThrowCompletionOrTimothy Flynn
This also required converting URLSearchParams::for_each and the callback function it invokes to ThrowCompletionOr. With this, the ReturnType enum used by WrapperGenerator is removed as all callers would be using ReturnType::Completion.
2021-10-31LibWeb: Convert the Navigator object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the CSS namespace object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the Window object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the Location object to ThrowCompletionOrTimothy Flynn
2021-10-31Spreadsheet: Convert JSIntegration to ThrowCompletionOrTimothy Flynn
2021-10-31WindowServer: Remove some commented code in WindowManager.cppMarco Cutecchia
2021-10-31PixelPaint: Use a bucket cursor for the Bucket toolMarco Cutecchia
2021-10-31PixelPaint: Support using a bitmap as a tool's cursorMarco Cutecchia
2021-10-31LibGUI: Support using a bitmap as override cursorMarco Cutecchia
2021-10-31FileOperation: Deduplicate file names on moveTetsui Ohkubo
For file copying, when there is a file with the same name in the destination directory, the file will be automatically renamed to "file-2.txt", for example. This change expands that special-case handling to file moving.
2021-10-31Userland: Handle terminal window resizing in less(1)Kyle Ambroff-Kao
Before this patch less would query the terminal geometry only at startup and use this information to render the file when appropriate. If the terminal is resized then the output is broken in several different ways because of this. This patch adds a SIGWINCH signal handler receive notification any time the terminal is resized. This signal handler just sets a flag to notify the main loop that a resize has occurred. The main loop of the program just calls get_key_sequence() to get input from the user, interpreting keystrokes as commands like scroll up or down. The get_key_sequence() function has been changed to return Optional<String>, so it either returns a keystroke from the user or it returns nothing as an empty Optional. While the user is not pressing any keys on the keyboard, the program is blocking on a read() system call in get_key_sequence(). When SIGWINCH is received, this read() will return with -1 and errno is set to EINTR since the system call was interrupted by the signal. When this happens we just return an empty Optional. The mainloop now checks to see if a resize has been requested by checking the flag, and if it has it performs a resize. init() now just calls resize() since the required logic is the same. Setters for m_filename and m_prompt are removed because these are now just initialized by the constructor, as they never change for the life of the program.
2021-10-31SpaceAnalyzer: Display scan progress with popup window during analysisForLoveOfCats
2021-10-31Calculator: Add Constants menuMusab Kılıç
2021-10-31Calculator: Fix copy button not copying the fractional part bug :^)Musab Kılıç
2021-10-31Calculator: Improve KeypadValue conversion to handle integer valuesMusab Kılıç
2021-10-31Shell: Unwind execution after runtime errorsAli Mohammad Pur
This commit makes the Shell check for errors after a node is run(), and prevents further execution by unwinding until the error is cleared. Fixes #10649.
2021-10-31LibC: Add `labs()`Jelle Raaijmakers
We defined it in `stdlib.h` but forgot to implement it.
2021-10-31Utilities: Add option to suppress errors to grepMarco Cutecchia
2021-10-31Utilities: Add 'quiet' mode to grepMarco Cutecchia
2021-10-31js: Convert JavaScript REPL to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert %IteratorPrototype% to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert ObjectConstructor to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert ObjectConstructor GetOwnPropertyKeys to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert GlobalObject to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert GlobalObject's Encode and Decode AOs to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert Object.prototype to ThrowCompletionOrTimothy Flynn
2021-10-31LibELF: Store SSE registers in x86_64 PLT TrampolinePeter
Save and restore XMM registers so userspace programs don't randomly lose values from calls. This fixes a crash in ScummVM.
2021-10-31Debugger: Add logging for the other 8 GPRs tooPeter
2021-10-31Spreadsheet: Make the 'Help' window accessoryMarco Cutecchia
2021-10-30LibJS: Update spec comment in parse_temporal_time_zone_string()Linus Groh
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/19b693c
2021-10-30LibJS: Fix format_time_zone_offset_string() for negative offsetsLinus Groh
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/ec43be3
2021-10-30LibJS: Update parse_temporal_time_zone_string() substring boundsLinus Groh
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/73b9fe3
2021-10-30LibPDF: Parser::parse_header() return false if remaining bytes is zeroBrendan Coles
2021-10-30LibJS: Implement Temporal.TimeZone.prototype.getPreviousTransition()Linus Groh
2021-10-30LibJS: Implement Temporal.TimeZone.prototype.getNextTransition()Linus Groh
2021-10-30LibJS: Implement Temporal.TimeZone.prototype.getPossibleInstantsFor()Linus Groh
2021-10-30LibJS: Mark single argument BigInt() constructor as 'explicit'Linus Groh
2021-10-30LibGUI: Focus next tab after closing active tabNoah Haasis
Focus the next tab after closing the currently active tab. If the tab being closed is the last one then the new last tab is active.
2021-10-30LibJS: Ensure make_day()'s temporary Core::DateTime is treated as UTCLinus Groh
DateTime::create() and subsequently DateTime::set_time() uses mktime() internally to ensure out-of-range input values still result in a valid date (Jan 32 -> Feb 1 etc.). This however also means that the input is treated as local time, and then shifted to UTC accordingly for the returned time_t - it is however already in UTC in this case! The temporary solution is simply to set the "TZ" environment variable to "UTC" and back after create(). The proper solution is probably to have better timezone support in Core::DateTime. This should only affect Lagom, as serenity itself has no timezone support yet and always assumes UTC.
2021-10-30LibJS: Fix off-by-one in make_day()'s temporary Core::DateTimeLinus Groh
Just like in the previous commit, the day value of Core::DateTime is one-based, not zero based. Noticed while implementing a new Temporal function, this likely would've been caught earlier if we'd also use it for the Date API (we don't).