summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-01LibWeb: Do not encode "internal_id" in DOM JSONTimothy Flynn
This is now unused.
2021-07-01LibWeb: Maintain a map of child-to-parent nodes in OOPWV DOM InspectorTimothy Flynn
Currently, each time parent_index() is invoked, two depth-first searches are incurred to find the node's parent and grandparent. This becomes particularly expensive, for example, when trying to scroll through a large <ul> list. Instead, upon creation, traverse the DOM JSON and create a map of child nodes to their parent. Then those two lookups become hash map lookups rather than a DFS traversal.
2021-07-01CI: Cancel duplicate workflow runs for pull requestsIdan Horowitz
These are created when a pull request is force-pushed to, which results in the unneeded waste of action runners on the obsolete CI run.
2021-07-01Meta: Make serenity.sh pass the SERENITY_ARCH cmake argument for x86_64Idan Horowitz
This is required as our CMake config defaults to i686 if not overriden manually via the SERENITY_ARCH argument.
2021-07-01InspectorServer: Use LocalSocket method to get pidTimothy
2021-07-01LibCore: Add peer pid retrieval for LocalSocketTimothy
This will allow programs connected over unix sockets to retrieve the pid of their peers in a nice way.
2021-07-01LibJS: Try to fix Clang build (NewClass::m_class_expression is unused)Andreas Kling
2021-07-01LibJS: NewClass bytecode instructionJohan Dahlin
This adds a the NewClass bytecode instruction, enough of it is implemented for it to show it in the bytecode (js -d).
2021-07-01Kernel: Only deallocate memory when alloc succeedsHendiadyoin1
Also make AllocationHeader acquisition from pointers more verbose
2021-07-01Kernel: Add support for 64-bit unaligned Mem-opsHendiadyoin1
Also let the compiler enforce the size and type restrictions
2021-07-01Kernel: Remove not needed comment in Processor.hHendiadyoin1
2021-07-01DynamicLoader: Remove obsolete commentGunnar Beutner
2021-07-01Kernel+LibPthread: Add support for usermode threads on x86_64Gunnar Beutner
2021-07-01Kernel+LibPthread: Remove m_ prefix for public membersGunnar Beutner
2021-07-01LibJS: Bring JSON.parse slightly closer to the specificationIdan Horowitz
This PR does not fix the main issue with our current implementation: The specification requires that we first check the JSON string for validity with an ECMA-404 compliant parser, and then evaluate it as if it was javascript code, of which we do neither at the moment.
2021-07-01FileManager: Remove clicked breadcrumbs for non-existing directoriesSam Atkins
This fixes #8204. In the case that we just navigated up from a directory because it was deleted, we can detect that easily by checking if the child directory exists, and then remove the relevant breadcrumbs immediately. However, it's harder to notice if a child directory for a breadcrumb is deleted at another time. Previously, clicking that breadcrumb would crash, but now we check to see if the directory it points to actually exists. If it doesn't, we pop that breadcrumb and any after it, off of the breadcrumbbar. This may not be the ideal solution - maybe it should detect that the directory is gone automatically - but it works and doesn't involve managing additional directory watchers.
2021-07-01LibGUI: Add search/removal methods to BreadcrumbbarSam Atkins
Both are used by FileManager in the next commit. find_segment_with_data() was previously a single-use lambda in FileManager, but making it a method of Breadcrumbbar means we can re-use it more easily.
2021-07-01LibGUI: Navigate to parent when FileSystemModel directory is deletedSam Atkins
Previously, FileSystemModel would not notice if the directory it has open (or a parent one) was deleted. Now, it scans for the closest existing parent directory and opens that. Also, deleted files and directories that are children of the open dir now correctly refresh their parent node instead of their own node.
2021-07-01LibJS: Move Binding struct into the DeclarativeEnvironment classAndreas Kling
Nobody on the outside needs to access this.
2021-07-01LibJS: Drop "Record" suffix from all the *Environment record classesAndreas Kling
"Records" in the spec are basically C++ classes, so let's drop this mouthful of a suffix.
2021-07-01LibWeb: Show "x86_64" in the user agent string on x86_64 :^)Andreas Kling
2021-07-01LibC: Fix jmp_buf layout on x86_64Andreas Kling
This struct was too small on x86_64, but setjmp() would happily write past the end of it. This makes `test-js` run to completion on x86_64 :^)
2021-07-01LibJS: Bring JSON.stringify closer to the specificationIdan Horowitz
2021-07-01LibCrypto: Add tests for SignedBigInteger bitwise operationsGal Horowitz
2021-07-01LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_andGal Horowitz
2021-07-01LibCrypto: Replace use of negate() in SignedBigInteger::bitwise_orGal Horowitz
Calling negate() on a big integer does not make it negative, but rather flips its sign, so this was not actually acting as an OR.
2021-07-01CrashReporter: Fix bogus register alignment on x86_64Andreas Kling
2021-07-01LibJS: Stop coercing this to object in Function's Symbol.hasInstanceIdan Horowitz
2021-07-01LibJS: Stop coercing Date.prototype[Symbol.toPrimitive] hint to stringIdan Horowitz
2021-07-01LibELF: Check for missing PT_LOAD alignment header valueIdan Horowitz
This ensures we dont divide by zero when checking for valid alignment values.
2021-07-01LibELF: Implement support for RELA relocationsGunnar Beutner
2021-07-01LibELF: Simplify ELF load address calculationsGunnar Beutner
These were unnecessarily complicated.
2021-07-01LibELF: Fix incorrect error messageGunnar Beutner
2021-07-01Kernel: Support starting up secondary processors on x86_64Hendiadyoin1
2021-07-01LibJS: Check for DataView in ArrayBuffer.isView()Idan Horowitz
2021-07-01DisplaySettings: Adjust FontSettings.gml to work with dark themesDoubleNegation
The FontSettings widget now uses background_role instead of background_color to ensure that it displays properly independently of the active system theme.
2021-07-01LibGUI: Add foreground_role and background_role property to GUI::WidgetDoubleNegation
These properties allow GML files to specify a Gfx::ColorRole instead of a color, so that the effective color of the Widget is resolved using the system theme.
2021-06-30Meta: Add environment variable for disabling qemu's gdb socketGal Horowitz
When running QEMU on windows, the `-s` does not work, and causes QEMU to crash, you can now use the environment variable to disable that option.
2021-06-30Meta: Do not use gl=on if building in WSL2Gal Horowitz
The existing check only detects WSL1, this adds a new check which also detects WSL2.
2021-06-30LibJS: Use the GetFunctionRealm abstract-op in ArraySpeciesCreateIdan Horowitz
2021-06-30LibJS: Get the prototype of a new String from the constructor's realmIdan Horowitz
2021-06-30LibJS: Add a [[Realm]] getter to FunctionObject and use it where neededIdan Horowitz
Defined by https://tc39.es/ecma262/#sec-ordinaryfunctioncreate step #17 and by https://tc39.es/ecma262/#sec-createbuiltinfunction step #6.
2021-06-30LibJS: Ensure shift values in left_shift are modded by 32Idan Horowitz
This is equivalent to 58d6a2d0192b7860ecb2edb4aa5d36b389213a15 but for the left shift operation.
2021-06-30Utilities: Fix Build on x86_64Hendiadyoin1
2021-06-30Debugger: Compile on x86_64Hendiadyoin1
This is not guaranteed to work at all
2021-06-30Userland: Disable Hackstudio and UE on x86_64Hendiadyoin1
2021-06-30LibJS: Add String.prototype.split using the @@split methods on objectdavidot
2021-06-30LibJS: Add String.prototype.indexOf position argumentdavidot
2021-06-30HeaderView: Fix horizonal section size miscalculationOlivier De Canniere
When calculating the horizonal size of a section in `HeaderView::visible_section_range()`, the horizonal padding is now correctly taken into account. This fixes header missalignment issues in Spreadsheet, SystemMonitor and maybe also the playlist tab of SoundPlayer closes #8268
2021-06-30LibCoreDump: Change Backtrace debug info cache to member variableMax Wipfli
This changes the previously static s_debug_info_cache to a member variable. This is required so the cache is not kept alive if the Backtrace object is destroyed. Previously, the cache object would keep alive MappedFile objects and other data, resulting in CrashReporter and CrashDaemon using more than 100 MB of memory even after the Backtrace objects have been destroyed (and the data is thus no longer needed). This was especially the case when handling crashes from Browser (due to libweb.so and libjs.so). Due to this change, object_info_for_region has been promoted to a instance method. It has also been cleaned up somewhat.