Timothy Flynn
18eee7e3f0
LibWebView: Rename the Chrome process type to Browser
2025-03-15 19:57:27 -04:00
Timothy Flynn
e20d7be15f
LibWeb+UI: Rename ChromeInputData to BrowserInputData
2025-03-15 19:57:27 -04:00
Timothy Flynn
47d6747945
LibWebView+UI: Rename ChromeProcess to BrowserProcess
2025-03-15 19:57:27 -04:00
Timothy Flynn
e00c0c176e
LibWebView+UI: Rename ChromeOptions to BrowserOptions
2025-03-15 19:57:27 -04:00
Timothy Flynn
6078143241
LibWeb+WebContent: Remove "chrome" from generated page template strings
2025-03-15 19:57:27 -04:00
Timothy Flynn
9de6987134
Documentation: Update steps to enable DevTools via the UI
2025-03-15 19:09:40 +01:00
Timothy Flynn
0065dde749
UI/Qt: Add UI components to enable DevTools at runtime
2025-03-15 19:09:40 +01:00
Timothy Flynn
28574e2812
UI/AppKit: Add UI components to enable DevTools at runtime
2025-03-15 19:09:40 +01:00
Timothy Flynn
df7917d705
LibWebView: Change the DevTools server to be a runtime-enabled feature
2025-03-15 19:09:40 +01:00
Timothy Flynn
810d04b3f4
LibWeb+LibWebView+WebContent: Remove the built-in Inspector
2025-03-15 19:09:40 +01:00
Timothy Flynn
1c696e7893
UI/Qt: Remove the built-in Inspector widget
2025-03-15 19:09:40 +01:00
Timothy Flynn
03735cf11d
UI/AppKit: Remove the built-in Inspector widget
2025-03-15 19:09:40 +01:00
Mehran Kamal
bb87de58a0
LibWeb+LibGfx: Paint line_cap, line_join for Canvas Strokes
2025-03-15 14:02:27 +01:00
Mehran Kamal
12968ff025
LibGfx: Move to_skia_cap, to_skia_join to SkiaUtils
2025-03-15 14:02:27 +01:00
Aliaksandr Kalenik
23151de217
LibWeb/Layout: Fix min{max}-content size calculation for grid items
...
Instead of directly invoking `to_px()`,
`calculate_min_content_contribution()` needs to use
`calculate_inner_width()` and `calculate_inner_height()`, which are
aware of how to correctly handle `min-content` and `max-content` values.
Fixes https://github.com/LadybirdBrowser/ladybird/issues/3469
2025-03-15 13:51:16 +01:00
Aliaksandr Kalenik
08c155cd3f
LibWeb: Resolve "height: auto" using preferred aspect ratio if possible
...
Fixes https://github.com/LadybirdBrowser/ladybird/issues/2276
2025-03-15 13:51:16 +01:00
Aliaksandr Kalenik
227b4c38b7
LibWeb: Use parent's available space for anonymous blocks in BFC
...
Height resolution assumes that when available space is definite, it
matches the size of non-anonymous containing block. With this change, we
correctly maintain this assumption when box is wrapped in anonymous
node.
Fixes https://github.com/LadybirdBrowser/ladybird/issues/3422
2025-03-15 13:31:07 +01:00
Aliaksandr Kalenik
9e287465b9
LibWeb: Fix CSS transform invalidation when transitioning to none
...
Fixes https://github.com/LadybirdBrowser/ladybird/issues/2707
2025-03-15 13:30:45 +01:00
Shannon Booth
a9e20cb6c3
LibURL/Pattern: Use ConstructorStringParser to construct URLPatternInit
2025-03-15 07:39:03 -04:00
Shannon Booth
e369756e9c
LibURL/Pattern: Implement the constructor string parser
...
This is missing one small bit of functionality where the not-yet
impplemented component compilation is required.
2025-03-15 07:39:03 -04:00
Shannon Booth
f05c0509c3
AK: Add ability to check Optional equality with an OptionalNone
...
While we don't want to be writing this type of code in 'normal'
code this is useful to do in tests as:
EXPECT_EQ(my_optional, OptionalNone {});
Has a much better error on assertion failure when compared with:
EXPECT(!my_optional.has_value());
2025-03-15 07:39:03 -04:00
Shannon Booth
e70272ddef
LibURL/Pattern: Implement URL Pattern canonicalization
...
These are used to normalize URL components.
2025-03-15 07:39:03 -04:00
Shannon Booth
f775ee8a93
LibURL: Rename 'cannot be a base URL' state to 'opaque path' state
...
This follows a rename made in the URL specification.
2025-03-15 07:39:03 -04:00
Shannon Booth
f8f21319f9
LibURL/Pattern: Implement the URL Pattern Tokenizer
...
The tokenizer is used for both pattern string and constructor string
parsing of URL Patterns.
2025-03-15 07:39:03 -04:00
Sam Atkins
70e3a48892
LibWeb: Stub out "focus-without-user-activation" feature policy
...
For now this always returns that focus is allowed, as that matches our
previous behavior.
Corresponds to d7053d86ad
2025-03-14 20:33:25 +00:00
Sam Atkins
7902d13c28
LibWeb/HTML: Add FIXMEs for CanvasTextDrawingStyle lang attribute
...
Corresponds to aa586d0ba9
2025-03-14 20:33:25 +00:00
Sam Atkins
f1c88000da
LibWeb/HTML: Early-out of input activation behavior for immutable inputs
...
The spec text change corresponds to e6e914d086
But while I'm here I might as well just implement it. :^)
2025-03-14 20:33:25 +00:00
Sam Atkins
6b8adb522c
LibWeb: Set iframe border to 0px when frameborder attribute is invalid
...
Corresponds to 6e19cef90e
2025-03-14 20:33:25 +00:00
Sam Atkins
415dd1be06
LibWeb/HTML: Remove "flag" word from usage of "page showing"
...
Corresponds to 30935f3474
2025-03-14 20:33:25 +00:00
Tim Ledbetter
b9ac99d2eb
Revert "LibRegex: Remove orphaned save points in nested LookAhead"
...
This reverts commit f2678bfcb8
.
2025-03-14 19:57:33 +00:00
Timothy Flynn
0a5f68eba6
LibWebView: Disable site isolation and spare processes when debugging
...
These features make it difficult to debug a single WebContent instance.
2025-03-14 18:53:50 +01:00
Sam Atkins
0efd1729af
LibWeb/HTML: Update navigation request's reserved client
...
Fill in a couple of FIXMEs to discard an old reserved client, and/or
create a new one, in `create_navigation_params_by_fetching()`.
2025-03-14 18:05:42 +01:00
Sam Atkins
5a4f15d8f5
LibWeb/HTML: Add environment discarding steps
...
Exactly one place seems to define these at the moment: service worker
clients. Since we don't have a type for these and just use
EnvironmentSettingsObject, I've put it there.
2025-03-14 18:05:42 +01:00
Sam Atkins
a15a55e858
WebWorker: Correct name of inside settings
variable
...
The spec calls this `inside settings` so calling it `inner_settings` was
a bit confusing.
2025-03-14 18:05:42 +01:00
Timothy Flynn
9586a7500c
LibWeb: Protect audio codec callbacks against its own destruction
...
The plugin may go out of scope before the callbacks we've queued have
fired. It is undefined behavior for these callbacks to access the plugin
data after that has occurred.
This patch protects these callbacks with weak pointers. Note that the
plugin is not ref-counted, so we cannot use `strong_ref` here.
2025-03-14 12:02:29 -05:00
Tim Ledbetter
e011ddd368
LibWeb/CSS: Parse border-block-*
properties
...
This doesn't currently honor `writing-mode`, `direction` and
`text-orientation`.
2025-03-14 16:09:10 +00:00
Tim Ledbetter
cd1bba353a
LibWeb/CSS: Parse border-inline-*
properties
...
This doesn't currently honor `writing-mode`, `direction` and
`text-orientation`.
2025-03-14 16:09:10 +00:00
Tim Ledbetter
18cccd7633
LibWeb/CSS: Don't allow negative values in border-radius
property
2025-03-14 15:07:57 +00:00
Tim Ledbetter
632fc73643
LibWeb/CSS: Don't allow negative border radius in box-shadow
property
2025-03-14 15:07:57 +00:00
Tim Ledbetter
dc58c11217
LibWeb: Reject invalid background-position-*
property values
2025-03-14 15:07:57 +00:00
Tim Ledbetter
764b80a1cc
LibWeb/CSS: Reject radial-gradient functions with negative size
2025-03-14 15:07:57 +00:00
mikiubo
f2678bfcb8
LibRegex: Remove orphaned save points in nested LookAhead
2025-03-14 09:41:41 +01:00
Timothy Flynn
80d7350ee5
LibDevTools: Ensure the walker actor only displays nodes it created
...
The NodeIdentifier struct essentially contains the DOM node ID within
its WebContent process. These will repeat across multiple processes,
thus we cannot use them to search for node actors in the global actor
registry.
Instead, we can store a map of all node actors created by the walker
itself. The NodeIdentifier is then appropriate for actor lookups on
that map. This has the added benefit of not needing to search the entire
actor registry many times while forming the DOM node caches.
This fix allows us to inspect multiple tabs at once.
2025-03-14 09:04:03 +01:00
stelar7
664c57af16
LibWeb/IDB: Implement IDBFactory::databases()
2025-03-14 08:54:39 +01:00
Tim Ledbetter
5559c3cb4f
LibWeb/CSS: Parse <single-transition-property>
as a <custom-ident>
...
The specification also treats a transition name of `none` as invalid.
2025-03-14 08:52:25 +01:00
Tim Ledbetter
6298ec6be4
LibWeb: Validate time values when parsing transition value
2025-03-14 08:52:25 +01:00
Tim Ledbetter
37eb2be348
LibWeb/CSS: Disallow negative time values for transition-duration
2025-03-14 08:52:25 +01:00
Tim Ledbetter
b80c0d2114
LibWeb/CSS: Reject invalid grid track placement property values
2025-03-14 08:50:04 +01:00
Tim Ledbetter
411cafa2a9
LibMedia: Add formatter for decoder errors
...
This is useful for print debugging.
2025-03-14 08:48:01 +01:00
Tim Ledbetter
c270241b09
LibMedia: Propagate errors if demuxer creation fails
...
Previously, the browser would crash if demuxer creation failed.
2025-03-14 08:48:01 +01:00