Kenneth Myhra
9c5bdb0b86
LibWeb: Port WorkerLocation to new String
2023-02-23 15:48:38 +00:00
Kenneth Myhra
385b880862
LibWeb: Make factory method of IntersectionObserver fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
f0fd1cae3d
LibWeb: Make factory method of IdleDeadline fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ff2a991e19
LibWeb: Make factory method of ResizeObserver::ResizeObserver fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
dcbe927b48
LibWeb: Make factory method of Selection::Selection fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
d69e863286
LibWeb: Propagate error in factory method of Streams::ReadableStream
2023-02-22 09:55:33 +01:00
Kenneth Myhra
07db02cd2c
LibWeb: Make factory method of Geometry::DOMRectReadOnly fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ec0049441c
LibWeb: Make factory methods of Geometry::DOMRect fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
9b190b9509
LibWeb: Make factory method of Geometry::DOMRectList fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
4de5dc7a86
LibWeb: Make factory method of Geometry::DOMPointReadOnly fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
530ec85c4a
LibWeb: Make factory method of Geometry::DOMPoint fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
459959b297
LibWeb: Make factory method of HTML::BrowsingContext fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
3f50025126
LibWeb: Make factory method of Fetch::Response fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
54913adf37
LibWeb: Make factory method of Fetch::Request fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
d7446089ae
LibWeb: Make factory method of Encoding::TextEncoder fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
77e4432367
LibWeb: Make factory method of DOMParsing::XMLSerializer fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
f918d12655
LibWeb: Make factory methods of WebGL::WebGLContextEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
ff92324fa5
LibWeb: Make factory method of DOM::ElementFactory fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
a2381a672d
LibWeb: Make factory method of Fetch::HeadersIterator fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
b3734627a1
LibWeb: Make factory method of URL::URLSearchParamsIterator fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
1f48081ee4
LibWeb: Make factory methods of IDLEventListener and NodeFilter fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
e57461b89e
LibWeb: Make factory methods of UIEvents::WheelEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
587cf355ed
LibWeb: Make factory methods of UIEvents::UIEvent fallible
...
This affects calls to FocusEvent::create() since FocusEvent does not
implement its own create() method.
2023-02-22 09:55:33 +01:00
Kenneth Myhra
a401cff4e2
LibWeb: Make factory methods of UIEvents::KeyboardEvent fallible
2023-02-22 09:55:33 +01:00
Kenneth Myhra
b91d599177
LibWeb: Make factory method of UIEvents::FocusEvent fallible
2023-02-22 09:55:33 +01:00
Luke Wilde
2ca8cf49ca
LibWeb: Use browsing context creator URL for about:blank documents
...
In about:blank documents, we should use the browsing context's creator
URL as the base URL, if it exists and there is no <base> element.
This means that any about:blank frames will have URLs parse relative to
their parent frame's URL.
Fixes #17394 .
2023-02-21 18:52:46 +01:00
Andrew Kaster
f40094d014
LibWeb+LibJS: Format Console arguments with JS::Print
...
Instead of just calling JS::Value::to_string_without_side_effects() when
printing values to the console, have all the console clients use
the same JS::Print that the REPL does to print values.
This method leaves some things to be desired as far as OOM hardening
goes, however. We should be able to create a String in a way that
doesn't OOM on failure so hard.
2023-02-21 10:57:44 +01:00
Andreas Kling
f11899f885
LibWeb+LibIDL: Fix (or paper over) various const-correctness issues
...
There's definitely stuff to iterate on here, but this takes care of
making the libraries compile with stricter RP and NNRP.
2023-02-21 00:54:04 +01:00
MacDue
3676f5085e
LibWeb: Replace RefPtr
with ValueComparingRefPtr
in StyleValue
...
Like the name suggests this pointer type compares its pointees by value
rather than just by the pointer. This is needed for the defaulted
struct Properties equality operator.
This commit also contains a few changes to StyleValue such as replacing
the operator==()s with a .equals() again. This is done to avoid the new
reversed operator==()s ambiguity in C++20.
2023-02-20 10:50:20 +01:00
Jonah
30ec59f163
WebDriver: Add computedlabel endpoint
2023-02-19 13:28:01 -05:00
Sam Atkins
2db168acc1
LibTextCodec+Everywhere: Port Decoders to new Strings
2023-02-19 17:15:47 +01:00
Sam Atkins
f2a9426885
LibTextCodec+Everywhere: Return Optional<Decoder&> from decoder_for()
2023-02-19 17:15:47 +01:00
Jonah
29d724d95c
LibWeb: Serialize Accessible Name and Description for Accessibility Tree
...
These will get displayed in the DOM inspector.
2023-02-19 15:58:20 +01:00
Jonah
da5c9189b2
LibWeb: Implement Accessible Name and Description Calculation
...
This is an initial implementation of the accname standard. There is
still some of the algorithm left unimplemented that we will need
to implement in the future. However, as is, this implementation is
sufficient for basic pages.
2023-02-19 15:58:20 +01:00
Jonah
fc3ee471ed
LibWeb: Add ARIA::allows_name_from_content
...
This is required to implement accessible name and description
calculation.
2023-02-19 15:58:20 +01:00
Andreas Kling
df235d2c9f
LibWeb: Relax unnecessarily narrow cast in Node::containing_block()
2023-02-19 12:28:50 +01:00
Sam Atkins
6cc5e09c71
LibWeb: Port StyleComputer to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
1c77867c78
LibWeb: Port FontCache to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
faab2fe101
LibWeb: Store stylesheet sources as StringViews
2023-02-19 00:51:16 +01:00
Sam Atkins
13d2111b74
LibWeb: Port Selector to new Strings
...
Also use `Infra::is_ascii_case_insensitive_match()` in some appropriate
places, after checking the specs.
2023-02-19 00:51:16 +01:00
Sam Atkins
c2f0b20d6b
LibWeb: Port FontFace to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
33e9c4e1b2
LibWeb: Port GeneralEnclosed to new Strings
2023-02-19 00:51:16 +01:00
Sam Atkins
2026ea557e
LibWeb: Use is_ascii_case_insensitive_match() where the spec says to
2023-02-19 00:46:47 +01:00
Aliaksandr Kalenik
05b5a3bfba
LibWeb: Transform translate() values to device pixels before painting
2023-02-19 00:43:40 +01:00
Luke Wilde
3275d659bf
LibWeb: Convert FormData to String and Vector storage
...
This makes use of the new [UseNewAKString] extended attribute. Using
Vector storage will make it easier to make this interface into an IDL
iterable. It seems the reason it didn't use Vector originally was due
to awkward DeprecatedString -> String conversions.
2023-02-18 01:23:36 +01:00
Kenneth Myhra
84c7af4dcb
LibWeb: Make factory method of XHR::ProgressEvent fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
35622606c1
LibWeb: Make factory method of URL::URLSearchParams fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
71316614b8
LibWeb: Make factory method of SVG::SVGLength fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
bfc8cbcf3b
LibWeb: Make factory method of HTML::ModuleScript fallible
2023-02-18 00:52:47 +01:00
Kenneth Myhra
3e834636a6
LibWeb: Make factory method of HTML::Window fallible
2023-02-18 00:52:47 +01:00