summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-29Userland: Fix displaying mount sourceSergey Bugaev
The key is now called "source" instead of "device".
2020-05-29Kernel: Report source of synthetic filesystems as "none"Sergey Bugaev
As opposed to the fs name. This matches the new convention we have for specifying it in mount(8).
2020-05-29LibJS: Throw in strict mode when assigning property to primitive valueLinus Groh
2020-05-28Meta: Tweak license in celebration of 10'000 commits :^)Andreas Kling
2020-05-28LibWeb: Add a way to stop the new HTML parserAndreas Kling
Some things are specced to "stop parsing", which basically just means to stop fetching tokens and jump to "The end"
2020-05-28LibWeb: Implement more of the "after body" insertion modeAndreas Kling
2020-05-28LibWeb: Parse comments in the "in body" insertion modeAndreas Kling
2020-05-28LibWeb: Implement a bunch more script-related tokenization statesAndreas Kling
2020-05-28LibWeb: Add HTMLToken::make_character()Andreas Kling
It's tedious to make character tokens manually all the time.
2020-05-28LibWeb: Rename Web::HtmlView => Web::PageViewAndreas Kling
This widget doesn't just view HTML, it views a web page. :^)
2020-05-28LibWeb: Fix HTMLDocumentParser buildAndreas Kling
2020-05-28LibWeb: Remove a misplaced call to close_a_p_element() in "in body"Andreas Kling
This should only be done for the corresponding start tags.
2020-05-28LibWeb: Add a StackOfOpenElements helper for "popping until a tag name"Andreas Kling
2020-05-28Browser: Switch focus to the web page after pressing return in URL barAndreas Kling
Instead of dropping focus entirely, which felt weird.
2020-05-28LibJS: Implement standard semantics for relational operators (#2417)Marcin Gasperowicz
Previously, the relational operators where casting any value to double and comparing the results according to C++ semantics. This patch makes the relational operators in JS behave according to the standard specification. Since we don't have BigInt yet, the implementation doesn't take it into account. Moved PreferredType from Object to Value. Value::to_primitive now passes preferred_type to Object::to_primitive.
2020-05-28LibJS: Strict mode assignment to 'eval' & 'arguments' is a syntax errorMatthew Olsson
2020-05-28LibJS: Add strict modeMatthew Olsson
Adds the ability for a scope (either a function or the entire program) to be in strict mode. Scopes default to non-strict mode. There are two ways to determine the strict-ness of the JS engine: 1. In the parser, this can be accessed with the parser_state variable m_is_strict_mode boolean. If true, the Parser is currently parsing in strict mode. This is done so that the Parser can generate syntax errors at parse time, which is required in some cases. 2. With Interpreter.is_strict_mode(). This allows strict mode checking at runtime as opposed to compile time. Additionally, in order to test this, a global isStrictMode() function has been added to the JS ReplObject under the test-mode flag.
2020-05-28LibJS: Object index properties have descriptors; Handle sparse indicesMatthew Olsson
This patch adds an IndexedProperties object for storing indexed properties within an Object. This accomplishes two goals: indexed properties now have an associated descriptor, and objects now gracefully handle sparse properties. The IndexedProperties class is a wrapper around two other classes, one for simple indexed properties storage, and one for general indexed property storage. Simple indexed property storage is the common-case, and is simply a vector of properties which all have attributes of default_attributes (writable, enumerable, and configurable). General indexed property storage is for a collection of indexed properties where EITHER one or more properties have attributes other than default_attributes OR there is a property with a large index (in particular, large is '200' or higher). Indexed properties are now treated relatively the same as storage within the various Object methods. Additionally, there is a custom iterator class for IndexedProperties which makes iteration easy. The iterator skips empty values by default, but can be configured otherwise. Likewise, it evaluates getters by default, but can be set not to.
2020-05-28LibJS: Fix out-of-range error in Parser::Error::source_location_hintMatthew Olsson
2020-05-28LibC: run clang-format on getopt.h to remove tab charactersEmanuele Torre
2020-05-28LibWeb: replace some tab characters with spacesEmanuele Torre
also add missing "#pragma once" in StylePropertiesModel.h
2020-05-28IRCClient: remove some unused headers and replace tabs with spacesEmanuele Torre
2020-05-28Meta: Move INSTALL.md into Documentation/Andreas Kling
2020-05-28LibWeb: Fall back to block layout for unimplemented CSS display valuesAndreas Kling
This seems to have a higher chance of generating somewhat recognizable content compared to inline layout. This problem will gradually go away as we implement more display values.
2020-05-28LibWeb: Add default UA style for some table-related elementsAndreas Kling
2020-05-28LibWeb: Plumb content encoding into the new HTML parserAndreas Kling
We still don't handle non-ASCII input correctly, but at least now we'll convert e.g ISO-8859-1 to UTF-8 before starting to tokenize. This patch also makes "view source" work with the new parser. :^)
2020-05-28LibWeb: Parse "input" tags during the "in body" insertion modeAndreas Kling
2020-05-28LibWeb: Parse "td" start tags during "in cell" insertion modeAndreas Kling
2020-05-28LibGUI: Don't show big Buggie in app about dialogsAndreas Kling
It was getting to crowded between two Buggies and the app icon.
2020-05-28LibWeb: Support named character references (e.g "&")Andreas Kling
2020-05-28Base: Add manpage for xargsAnotherTest
2020-05-28Userland: Add a basic xargsAnotherTest
This adds a basic implementation of xargs. The implemenation is missing quite a few options, and is not entirely POSIX-compliant, but it gets the job done :^)
2020-05-28LibC: Add a O_CLOEXEC mode element to fopen()AnotherTest
This commit also changes the mode parsing to allow specifying the modes in any order.
2020-05-28AK: Add StringView::split_view() taking a StringViewAnotherTest
Since the task of splitting a string via another is pretty common, we might as well have this overload of split_view() as well.
2020-05-28Kernel: Remove outdated FIXME in InterruptManagement::locate_apic_dataAndreas Kling
2020-05-28IRCClient: Enable history on the message boxFalseHonesty
2020-05-28Build: Use a separate byproduct name for the GRUB disk image (#2424)etaIneLp
The grub-image target no longer conflicts with normal image target. This unbreaks using CMake with Ninja. Fixes #2423.
2020-05-28Kernel: Stop bootloader from setting video mode with MultibootetaIneLp
Meta: Update INSTALL.md and grub configs for new boot_mode option
2020-05-28Documentation: Update INSTALL.md for new build systemetaIneLp
2020-05-28Meta: Grub configs use correct kernel image nameetaIneLp
2020-05-28Meta: build-image-grub.sh looks for grub configs in the right placeetaIneLp
2020-05-28Build: Add grub-image target to CMakeetaIneLp
2020-05-28LibWeb: Implement more table support in the new HTML parserAndreas Kling
This is enough to parse the Google front page! (Note: I did have to hack the tokenizer while parsing Google, in order to avoid named character references screwing everything up. We'll fix that too soon enough!)
2020-05-28LibWeb: Flesh out "reset the insertion mode appropriately" algorithmAndreas Kling
2020-05-28LibWeb: Handle various self-closing tags during "in body" insertionAndreas Kling
We can now parse self-closing "<img>" tags correctly! :^)
2020-05-28LibWeb: Handle inline stylesheets a bit better in the new parserAndreas Kling
While we're still supporting both the old and the new parser, we have to deal with the way they load inline stylesheet (and scripts) a bit differently. The old parser loads all the text content up front, and then notifies the containing element. The new parser creates the containing element up front and appends text inside it afterwards. For now, we simply do an empty "children_changed" notification when first inserting a text node inside an element. This at least prevents the CSS parser from choking on a single-character stylesheet.
2020-05-28LibWeb: Parse documents without DOCTYPE gracefullyAndreas Kling
Seems like SOMEONE forgot to put a <!DOCTYPE html> on serenityos.org.. No matter, now we can handle it in the new parser! :^)
2020-05-28LibWeb: Add a "quirks mode" flag to DocumentAndreas Kling
This doesn't do anything yet, but it will sooner or later. :^)
2020-05-27LibWeb: Fire a DOMContentLoaded event when the new parser is finishedAndreas Kling
With this change, we can finally load and render welcome.html :^)
2020-05-27LibWeb: Implement the first half of the Adoption Agency AlgorithmAndreas Kling
The AAA is a somewhat daunting algorithm you have to run for certain tag when inserted inside the <body> element. The purpose of it is to resolve issues with mismatched tags. This patch implements the first half of the AAA. We also move the "list of active formatting elements" to its own class, since it kept accumulating little behaviors. "Marker" entries are now signified by null Element pointers in the list.