summaryrefslogtreecommitdiff
path: root/Libraries
AgeCommit message (Collapse)Author
2020-12-28LibGfx: fix OOB access in LZW decoder on bad inputPeter Nelson
This fixes an issue where a corrupted LZW code can result in the first element of an empty buffer being accessed. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27863
2020-12-28LibJS: Implement Object.prototype.isPrototypeOfLuke
Spec: https://tc39.es/ecma262/#sec-object.prototype.isprototypeof
2020-12-28LibRegex: Fail early if eof seen after '(?'AnotherTest
Fixes #4583.
2020-12-28LIbGUI+LibGfx: Paint focused push buttons with a heavier lookAndreas Kling
Draw a heavy shadow frame around focused push buttons for emphasis. For now I've used the ThreedShadow2 color role as it feels dark enough.
2020-12-28LibGUI: Always focus the file name textbox in GUI::FilePickerAndreas Kling
Previously we would only auto-focus it when choosing a save location. It seems nice to have the same behavior when opening a file.
2020-12-28LibGUI: Make GUI::FileIconProvider::icon_for_executable() a public APIAndreas Kling
This way we can use it instead of icon_for_path() in a bunch of places and avoid loading the full FileIconProvider configuration.
2020-12-28LibVT: Implement find and scroll helper methods in TerminalWidgetIdan Horowitz
This is mostly based on TextDocument's similar methods, these will help implement searching within the terminal application. The support for unicode code points is shaky at best, and should probably be improved further.
2020-12-28LibVT: Create VT::Range and use it to replace selection start / endIdan Horowitz
Based on GUI::TextRange, This is both a bit more expressive and will eventually be used for searching within the terminal
2020-12-28Everywhere: Move AppFile from LibGUI to LibDesktopLinus Groh
This was mentioned in #4574, and the more I think about it the more it feels just right - let's move it there! :^) Having to link LaunchServer against LibGUI explicitly should've been telling enough...
2020-12-28LibGUI: Make selected item tint color based on focused stateAndreas Kling
Use the inactive selection color for item icon tinting when the item view is not focused.
2020-12-28LibGUI: Show a hand cursor when hovering over a GUI::LinkLabelAndreas Kling
2020-12-28LibGUI: Switch focus if the currently focused widget is disabledAndreas Kling
2020-12-27LibELF: Reject ELF with program header p_filesz larger than p_memszBrendan Coles
2020-12-27LibJS: Implement Array.prototype.sort()Xavier Cooney
2020-12-27LibJS: Run "prettier" on the tests :^)Andreas Kling
2020-12-27LibGUI: Use Object::remove_all_children() in BreadcrumbBar (#4580)dantje
2020-12-27AK: Use direct-list-initialization for Vector::empend() (#4564)Nathan Lanza
clang trunk with -std=c++20 doesn't seem to properly look for an aggregate initializer here when the type being constructed is a simple aggregate (e.g. `struct Thing { int a; int b; };`). This template fails to compile in a usage added 12/16/2020 in `AK/Trie.h`. Both forms of initialization are supposed to call the aggregate-initializers but direct-list-initialization delegating to aggregate initializers is a new addition in c++20 that might not be implemented yet.
2020-12-27LibC: Add fseeko/ftelloStephen Gregoratto
This changes the signatures for FILE::seek and FILE::tell, to use `off_t` as they use lseek internally. `fpos_t` is also redefined to use `off_t`. Dr. POSIX says that fpos_t is: > A non-array type containing all information needed to specify uniquely > every position within a file. In practice, most *NIX typedef it to `off_t`, or a struct containing an `off_t` and some internal state.
2020-12-27LibJS: Fix old object numeric key test now that toString() is correctStephan Unverwerth
2020-12-27LibJS: Implement (mostly) spec compliant version of Number.toString()Stephan Unverwerth
2020-12-27LibJS: Fix parsing of numeric object keysStephan Unverwerth
Numeric keys were interpreted as their source text, leading to something like {0x10:true} to end up as {"0x10":true} instead of {16:true}
2020-12-27LibVT: Use the 'U+FFFD replacement character' to indicate a parsing errorIdan Horowitz
Based on this recommendation in the Unicode standard: https://www.unicode.org/versions/Unicode13.0.0/ch23.pdf (Page 32)
2020-12-27Terminal+LibVT: Use GUI::AppFileLinus Groh
2020-12-27LibGUI: Add GUI::AppFile, a simple wrapper around .af filesLinus Groh
2020-12-27LibTextCodec: Add Latin2 text decoder (#4579)Łukasz Maciejewski
2020-12-27Base+LibJS+LibWeb: Make prettier cleanLinus Groh
Also use "// prettier-ignore" comments where necessary rather than excluding whole files (via .prettierignore).
2020-12-27LibGUI: Select the edited text by default in StringModelEditingDelegateAndreas Kling
This way, if you press F2 to edit the name of an item, the name will be selected in the editor that pops up, and you can start typing a new name for it immediately.
2020-12-27LibGUI: Make IconView return a larger content rect for editingAndreas Kling
This fixes a visual glitch where editing the name of an item in an IconView would cut off the edited text.
2020-12-27LibGUI+WindowServer: Tweak hover shadows slightlyAndreas Kling
Move the shadow 1 more pixel away from the unhovered icon location, making a total 2 pixel distance between the icon and the shadow. Also tweak the shadow color to be a darkened variant of the base color underneath the icon.
2020-12-27LibGUI: Include LibGfx/Bitmap.h in Icon.hLinus Groh
It doesn't compile with just the forwarding headers when nothing else (e.g. Button.h) pulls in Bitmap.h.
2020-12-27LibCore: Add Object::remove_all_children()Linus Groh
2020-12-27LibGUI: Support top-to-bottom flow in IconViewAndreas Kling
Sometimes you might want your icons to flow from top-to-bottom instead of from left-to-right. :^)
2020-12-27LibGUI: Move some large IconView internal helpers to the .cpp fileAndreas Kling
Stuff that's only used internally by the class is nice to keep out of the header when possible.
2020-12-27Kernel: Remove the per-process icon_id and sys$set_process_icon()Andreas Kling
This was a goofy kernel API where you could assign an icon_id (int) to a process which referred to a global shbuf with a 16x16 icon bitmap inside it. Instead of this, programs that want to display a process icon now retrieve it from the process executable instead.
2020-12-27LibGUI: Use FileIconProvider in RunningProcessesModelAndreas Kling
This was the last remaining client of the per-process icon_id.
2020-12-27Kernel: Expose process executable paths in /proc/allAndreas Kling
2020-12-26LibTLS: Fix TLS breakage after ByteBuffer => Span conversionAndreas Kling
Oops, I accidentally shadowed the outer scope's "decrypted" ByteBuffer which caused us to throw away the buffer too early. Fixes #4533.
2020-12-26LibGUI: Make the LinkLabel widget keyboard-friendlyAndreas Kling
Make it tab-focusable and activate it with the return key. :^)
2020-12-26LibGUI: Set LinkLabel tooltip if text can't fit the widgetAndreas Kling
We were setting a tooltip when the text overflowed the *window* width, make this more general by basing it on the *widget* width.
2020-12-26LibGUI: Tweak GUI::Label API a bit and add did_change_text() virtualAndreas Kling
2020-12-26LibGUI: Minor tweaks to the GUI::LinkLabelAndreas Kling
Remove some unnecessary includes and make the constructor private.
2020-12-26LibGUI: Rename Link => LinkLabelAndreas Kling
2020-12-26Everywhere: void arguments to C functionsLenny Maiorani
Problem: - C functions with no arguments require a single `void` in the argument list. Solution: - Put the `void` in the argument list of functions in C header files.
2020-12-26LibC: Enable compiler warnings for scanf and strftime format stringsSahan Fernando
2020-12-26LibC: Fix some incorrect printf usagesSahan Fernando
2020-12-26LibC: Enable compiler warnings for printf format stringsSahan Fernando
2020-12-26LibDesktop: Remove icons from Desktop::Launcher::DetailsLinus Groh
2020-12-26LibJS: Implement String.prototype.endsWith()Xavier Cooney
2020-12-26LibJS: Implement IsRegExp abstract operationXavier Cooney
This is needed by various String.prototype operations, as well as the RegExp constructor.
2020-12-25WindowServer: Validate cursor type in SetWindowCursor message handlerLinus Groh
Fixes #4536.