summaryrefslogtreecommitdiff
path: root/Meta
AgeCommit message (Collapse)Author
2021-10-05Everywhere: Change from http to https where feasibleBen Wiederhake
I used "git grep -FIn http://" to find all occurrences, and looked at each one. If an occurrence was really just a link, and if a https version exists, and if our Browser can access it at least as well as the http version, then I changed the occurrence to https. I'm happy to report that I didn't run into a single site where Browser can't deal with the https version.
2021-10-04LibWeb: Make IDL-constructed objects aware of their JS wrapperAndreas Kling
Having IDL constructors call FooWrapper::create(impl) directly was creating a wrapper directly without telling the impl object about the wrapper. This meant that we had wrapped C++ objects with a null wrapper() pointer.
2021-10-04LibJS: Convert ordinary_set_with_own_descriptor() to ThrowCompletionOrLinus Groh
2021-10-03LibJS: Convert has_own_property() to ThrowCompletionOrLinus Groh
2021-10-03LibJS: Convert create_data_property() to ThrowCompletionOrLinus Groh
2021-10-03LibJS: Convert Object::get() to ThrowCompletionOrLinus Groh
To no one's surprise, this patch is pretty big - this is possibly the most used AO of all of them. Definitely worth it though.
2021-10-03LibJS: Add a specific test for invalid unicode characters in the lexerdavidot
Also fixes that it tried to make substrings past the end of the source if we overran the source length.
2021-10-03LibWeb: Add support for NodeListLuke Wilde
This introduces 3 classes: NodeList, StaticNodeList and LiveNodeList. NodeList is the base of the static and live versions. Static is a snapshot whereas live acts on the underlying data and thus inhibits the same issues we have currently with HTMLCollection. They were split into separate classes to not have them weirdly mis-mashed together. The create functions for static and live both return a NNRP to the base class. This is to prevent having to do awkward casting at creation and/or return, as the bindings expect to see the base NodeList only.
2021-10-03LibWeb: Add support for IDL value iteratorsLuke Wilde
This also renames Interface::iterator_types to pair_iterator_types to reduce confusion between value and pair iterators.
2021-10-02LibJS+LibWeb: Use Object::set_prototype() in more placesLinus Groh
2021-10-02LibWeb: Initialize IDL-generated prototypes' prototype directlyIdan Horowitz
Instead of setting it to the default object prototype and then immediately setting it again via internal_set_prototype_of, we can just set it directly in the parent constructor call.
2021-10-01RequestServer: Don't hide the SIGINFO state dump behind a debug macroAndreas Kling
Until we're confident that RequestServer doesn't need this runtime debug dump helper, it's much nicer if everyone has it built in, so they can simply send a SIGINFO if they see it acting up.
2021-10-01LibWeb: Support dictionary-only IDL filesIdan Horowitz
2021-10-01LibWeb: Add the missing UIEvent IDL constructorIdan Horowitz
2021-10-01LibWeb: Add support for unwrapping the WindowObject to WrapperGeneratorIdan Horowitz
2021-10-01LibWeb: Add the missing ProgressEvent IDL constructorIdan Horowitz
2021-10-01LibWeb: Use the LibWeb source directory as the IDL #import base pathIdan Horowitz
This allows us to include IDL files from other base LibWeb directories wihout using relative `../foo.idl` references.
2021-10-01Meta: Fix typosNico Weber
2021-09-30LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValuesIdan Horowitz
Since we don't support IDL typedefs or unions yet, the responsibility of verifying the type of the argument is temporarily moved from the generated Wrapper to the implementation.
2021-09-30LibUnicode: Upgrade to Unicode version 14.0.0Timothy Flynn
2021-09-30LibUnicode: Do not compare generated file contents before writingTimothy Flynn
This is now covered by unicode_data.cmake after the superbuild changes.
2021-09-30LibUnicode: Remove cached UCD and CLDR files when their version changesTimothy Flynn
2021-09-30LibUnicode: Use consistent variable naming in unicode_data.cmakeTimothy Flynn
I kept mixing these up in my head.
2021-09-30LibUnicode: Functionalize extraction of CLDR data filesTimothy Flynn
2021-09-30LibUnicode: Functionalize downloading of UCD data filesTimothy Flynn
2021-09-30LibUnicode: Extract UCD and CLDR versions to a CMake variableTimothy Flynn
This also surrounds expansion of affected URL and path variables with quotes.
2021-09-29LibJS: Convert internal_own_property_keys() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_delete() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_set() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_get() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_has_property() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_define_own_property() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_get_own_property() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_prevent_extensions() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_set_prototype_of() to ThrowCompletionOrLinus Groh
2021-09-29LibJS: Convert internal_get_prototype_of() to ThrowCompletionOrLinus Groh
2021-09-30LibWeb: Add the CSSStyleRule interface with some limited functionalityAndreas Kling
2021-09-29LibWeb: Generate CSS::property_id_from_camel_case_string()Andreas Kling
This allows us to resolve a "camelCase" CSS property name to our own CSS::PropertyID enum. This will be used by CSSOM bindings.
2021-09-29LibWeb: Make CSSRule and CSSRuleList available to JavaScript :^)Andreas Kling
This patch makes both of these classes inherit from RefCounted and Bindings::Wrappable, plus some minimal rejigging to allow us to keep using them internally while also exposing them to web content.
2021-09-29LibWeb: Add support for custom #import IDL statementsIdan Horowitz
This will currently be used to support dictionary inheritance between dictionaries defined across different IDL definition files.
2021-09-29LibWeb: Add initial support for the IDL [Unscopable] extended attributeLuke Wilde
This adds support for the [Unscopable] extended attribute to attributes and functions. I believe it should be applicable to all interface members, but I haven't done that here.
2021-09-29LibWeb: Make StyleSheetList.item an IDL getterLuke Wilde
2021-09-29RequestServer: Use an OwnPtr for cached connectionsAli Mohammad Pur
Otherwise we'd end up trying to delete the wrong connection if a connection made before us is deleted. Fixes _some_ RequestServer spins (though not all...). This commit also adds a small debug mechanism to RequestServer (which can be enabled by turning REQUEST_SERVER_DEBUG on), that can dump all the current active connections in the cache, what they're doing, and how long they've been doing that by sending it a SIGINFO.
2021-09-29LibWeb: Add support for converting IDL dictionaries to native structsIdan Horowitz
2021-09-29LibWeb: Add support for parsing IDL dictionariesIdan Horowitz
2021-09-29LibWeb: Change IDL::parse_interface's return type to NonnullOwnPtrIdan Horowitz
We always returned an interface, so there's no need for the null state.
2021-09-28LibWeb: Add partial support for IDL Iterable declarationsIdan Horowitz
This currently only supports pair iterables (i.e. iterable<key, value>) support for value iterables (i.e. iterable<value>) is left as TODO(). Since currently our cmake setup calls the WrapperGenerator separately and unconditionally for each (hard-coded) output file iterable wrappers have to be explicitly marked so in the CMakeLists.txt declaration, we could likely improve this in the future by querying WrapperGenerator for the outputs based on the IDL.
2021-09-28LibWeb: Add support for wrapping arbitrary values to WrapperGeneratorIdan Horowitz
This patch essentially just splits the non return-specific logic from generate_return_statement (i.e. the wrapping of the cpp value into a javascript one) into a separate function generate_wrap_statement that can be used to wrap any cpp value during wrapper generation.
2021-09-28LibWeb: Only consume [a-zA-Z0-9_] characters for IDL typesIdan Horowitz
2021-09-27LibWeb: Add support for the any type in returning and parametersLuke Wilde
Required for CustomEvent.