summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-12Kernel: Remove old region from process' regions vector before splittingIdan Horowitz
This does not affect functionality right now, but it means that the regions vector will now never have any overlapping regions, which will allow the use of balance binary search trees instead of a vector in the future. (since they require keys to be exclusive)
2021-04-12AK: Implement IntrusiveRedBlackTree containerIdan Horowitz
This container is similar to the RedBlackTree container, but instead of transparently allocating tree nodes on insertion and freeing on removal this container piggybacks on intrusive node fields in the stored class
2021-04-12AK: Implement RedBlackTree containerIdan Horowitz
This container is based on a balanced binary search tree, and as such allows for O(logn) worst-case insertion, removal, and search, as well as O(n) sorted iteration.
2021-04-12UserspaceEmulator: Improve detection of memory leaksTobias Christiansen
Previous a mallocation was marked as 'reachable' when any other mallocation or memory region had a pointer to that mallocation. However there could be the situation that two mallocations have pointers to each other while still being unreachable from anywhere else. They would be marked as 'reachable' regardless. This patch replaces the old way of detemining whether a mallocation is reachable by analyzing the dependencies of the different mallocations using a graph-approach. Now mallocations are only reachable if pointed to by other reachable mallocations or other memory regions. A nice bonus is that this gets rid of a nested for_each_mallocation, so the complexity of leak finding becomes linear instead of quadratic.
2021-04-12LibWeb: Set border width to zero if style is noneEgor Ananyin
2021-04-12LibWeb: Parse border-style correctlyEgor Ananyin
2021-04-12Documentation: Fix FreeBSD usage of the pkg commandEmil Engler
2021-04-12Base: Fix a few width/height oversights in Marietathankyouverycool
Corrects punctuation width and erroneous 'Q' width reset. Adjusts height of double quote and '$'
2021-04-12WindowServer: Strip Alt-shortcut marker ('&') when measuring menu textsAndreas Kling
We were including these markers when computing the sizes of menus, causing them to get a little too much padding.
2021-04-12Ports: fallback to pro when curl is not installedPeter Elliott
2021-04-12Ports: Require less commands in .port_include.shPeter Elliott
- fallback to http with curl when https fails - add --no-gpg-verification, which will skip gpg signature verification
2021-04-12LibArchive: Support POSIX.1-1988 tar filesPeter Elliott
These old tar files didn't have magic numbers, so I've also added a checksum check to TarInputStream::valid()
2021-04-12Ports: Don't use getaddrinfo for curlPeter Elliott
serenity's getaddrinfo is a stub, but curl detects it anyway, and uses it instead of gethostbyname.
2021-04-12Userland: Add nproc utilityPeter Elliott
nproc prints the number of processors on the system. Our ports system uses it.
2021-04-12Userland: Add support for -S to env commandPeter Elliott
- Refactor env to use Core::ArgsParser - create symlink from /bin/env to /usr/bin/env for compatiability
2021-04-12Meta: Add install-ports CMake targetPeter Elliott
install-ports copys the necessary files from Ports/ to /usr/Ports. Also refactor the compiler and destiation variables from .port_include.sh into .hosted_defs.sh. .hosted_defs.sh does not exists when ports are built in serenity
2021-04-12Ports: Add DialogBrendan Coles
2021-04-12LibJS: Memoize failed calls of try_parse_arrow_function_expression()Stephan Unverwerth
2021-04-12Ports: Add GNU libtoolBrendan Coles
2021-04-12LibJS: Make Errors fully spec compliantLinus Groh
The previous handling of the name and message properties specifically was breaking websites that created their own error types and relied on the error prototype working correctly - not assuming an JS::Error this object, that is. The way it works now, and it is supposed to work, is: - Error.prototype.name and Error.prototype.message just have initial string values and are no longer getters/setters - When constructing an error with a message, we create a regular property on the newly created object, so a lookup of the message property will either get it from the object directly or go though the prototype chain - Internal m_name/m_message properties are no longer needed and removed This makes printing errors slightly more complicated, as we can no longer rely on the (safe) internal properties, and cannot trust a property lookup either - get_without_side_effects() is used to solve this, it's not perfect but something we can revisit later. I did some refactoring along the way, there was some really old stuff in there - accessing vm.call_frame().arguments[0] is not something we (have to) do anymore :^) Fixes #6245.
2021-04-12LibJS: Add Object::get_without_side_effects()Linus Groh
Similar to Value::to_string_without_side_effects() this is mostly a regular object property lookup, but with the guarantee that it will be side-effect free, i.e. no accessors or native property functions will be called. This is needed when we want to access user-controlled object properties for debug logging, for example. The specific use case will be error objects which will soon no longer have internal name/message properties, so we need to guarantee that printing an error, which may already be the result of an exception, won't blow up in our face :^)
2021-04-12LibWeb: Add Window.parent and fix Window.top attributesLuke
This returns the parent frame of the current frame. If it's the main frame, it returns itself. Also fixes the attributes of Window.top, as they were accidentally being passed in as the setter. Required by Web Platform Tests.
2021-04-12Browser: Process Secure and HttpOnly cookie attributesTimothy Flynn
2021-04-12Browser: Process Path cookie attributeTimothy Flynn
2021-04-12Browser: Process Domain cookie attributeTimothy Flynn
2021-04-12Browser: Process Max-Age cookie attributeTimothy Flynn
Note: the default expiry time should be the "the latest representable date". However, DateTime::from_timestamp(NumericLimits<time_t>::max()) isn't feasible due to the for-loops in LibC's time_to_tm. So instead, this just sets the date to the maxium year.
2021-04-12Browser: Parse cookie attribute name-value pairsTimothy Flynn
Implements the remainder of the parsing algorithm of RFC-6265 Section 5.2 to extract optional attributes. The attribute values are not processed.
2021-04-12Serendipity: Paint theme agnostic bannerthankyouverycool
And remove temporary welcome-banner.png. Fixes invisible text in dark themes.
2021-04-12Base: Add new sans serif font Marietathankyouverycool
Liza's younger, slightly better proportioned sister
2021-04-12Serendipity: Don't modify tip frame palettethankyouverycool
Fixes illegible tip text
2021-04-12LibRegex: Generate a 'Compare' op for empty character classesAnotherTest
Otherwise it would match zero-length strings. Fixes #6256.
2021-04-12LibHTTP: Handle running out of input between chunk body and ending CRLFAnotherTest
Fixes an issue where LibHTTP would incorrectly detect an end of stream when it runs out of TLS application data between the chunk body and its ending CRLF.
2021-04-11Meta: Add a link to the SerenityOS Discord server in README.mdAndreas Kling
2021-04-11LibJS: Removed a fixme in a test of BigInt.prototype.valueOftuqqu
2021-04-11AK: Update LexicalPath::relative_path to work for '/' prefixTim Waterhouse
If the prefix path is just a slash the LexicalPath was removing too many characters. Now only remove an extra character if the prefix is not just the root path.
2021-04-11LibWeb: Move element_child_count to ParentNode and add its IDL attributeLuke
I initially had it in Node just because, but then saw it was part of ParentNode in the spec.
2021-04-11LibWeb: Add Event.initEventLuke
Used by YouTube after creating an event with Document.createEvent
2021-04-11LibWeb: Add support for optional default values and optional bools in IDLLuke
Fixed the DOMException constructor as it had the default value version commented out.
2021-04-11Ports: Add Port for the yasm assembler (#6149)Tom Needham
This is a required dependency for many libraries.
2021-04-11LibWeb: Store cookies sent via the Set-Cookie HTTP headerTimothy Flynn
Note: HTTP response headers are currently stored in a hash map, so the Set-Cookie entry will only appear once here.
2021-04-11LibWeb+WebContent: Hook document.cookie to the backend cookie storageTimothy Flynn
2021-04-11Browser+LibWeb: Add hooks for getting and setting cookiesTimothy Flynn
2021-04-11Browser: Initial cookie storage implementationTimothy Flynn
This adds storage for cookies that maye be set via 'document.cookie' in JavaScript or the Set-Cookie HTTP header. For now, it parses only the name-value pair from a set-cookie line, but does not parse optional attributes. Currently, storage is ephemeral and only survives for the lifetime of the Browser instance.
2021-04-11Base: Add test page for document.cookieTimothy Flynn
2021-04-11ls: ls will print directory name when listing multiple directoriessetepenre
2021-04-11LibJS: Fix array hole and string object indexing prototype indirectionLinus Groh
This fixes two cases of indexed access (array holes, out-of-bounds string object access) where we would not follow the prototype chain and incorrectly return undefined: // Should be "a", returned undefined Object.setPrototypeOf([,], ["a"])[0] // Should be "a", returned undefined Object.setPrototypeOf(new String(""), new String("a"))[0] The actual fix is simple, instead of returning early if the requested index is past the string's length or within the indexed properties size but has no value, we just continue the prototype chain traversal and get correct behaviour from that.
2021-04-11Network: Add network.png 32x32 iconBrendan Coles
2021-04-11LibWeb+WebContent: Support image context menus in OOPWVAndreas Kling
You can now right-click images in web content and get a context menu.
2021-04-11SystemMonitor: Add tab with detailed state to process properties windowAndreas Kling
This is done using a wrapper model that transforms all the information about a single process in the ProcessModel and turns it into a 2-column table model with only that process in it.
2021-04-11SystemMonitor: Add a little header to the process properties windowAndreas Kling
Show a larger (32x32) version of the executable icon and the process name + PID above the various property tabs.