mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Start implementing the URLPattern
API (#36144)
* Start working on a basic URLPattern implementation This is API part of Interop 2025, so we should definitely support it! This change implements the basic workflow for parsing and compiling URL patterns. Parts of it are stubbed out and will be implemented later. For now the API is preference-gated behind "dom_urlpattern_enabled". Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Preference-gate the URLPattern API Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix full wildcard value (Should be ".*" not "*") Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
e4efdfe668
commit
517f99e067
14 changed files with 906 additions and 189 deletions
|
@ -114,6 +114,10 @@ pub struct Preferences {
|
|||
pub dom_testing_element_activation_enabled: bool,
|
||||
pub dom_testing_html_input_element_select_files_enabled: bool,
|
||||
pub dom_testperf_enabled: bool,
|
||||
/// Enable the [URLPattern] API.
|
||||
///
|
||||
/// [URLPattern]: https://developer.mozilla.org/en-US/docs/Web/API/URLPattern
|
||||
pub dom_urlpattern_enabled: bool,
|
||||
pub dom_xpath_enabled: bool,
|
||||
/// Enable WebGL2 APIs.
|
||||
pub dom_webgl2_enabled: bool,
|
||||
|
@ -280,6 +284,7 @@ impl Preferences {
|
|||
dom_testing_element_activation_enabled: false,
|
||||
dom_testing_html_input_element_select_files_enabled: false,
|
||||
dom_testperf_enabled: false,
|
||||
dom_urlpattern_enabled: false,
|
||||
dom_webgl2_enabled: false,
|
||||
dom_webgpu_enabled: false,
|
||||
dom_webgpu_wgpu_backend: String::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue