servo/components
Tony 5a76906d64
Allow setting userscripts directly without the need of files (#35388)
* Allow settings userscripts through preferences

Signed-off-by: Tony <legendmastertony@gmail.com>

* mach fmt instead of cargo fmt

Signed-off-by: Tony <legendmastertony@gmail.com>

* Fix pref loading not working for array values

Signed-off-by: Tony <legendmastertony@gmail.com>

* Use pref! in userscripts instead

Signed-off-by: Tony <legendmastertony@gmail.com>

* Implement the model jdm suggested
- Remove userscripts from all places and move it to servoshell
- Add in `UserContentManager` struct and passing it through `Servo::new`
all the way down to script thread

Signed-off-by: Tony <legendmastertony@gmail.com>

* Apply suggestions from code review and format

Signed-off-by: Tony <legendmastertony@gmail.com>

* Revert unrelated change

Signed-off-by: Tony <legendmastertony@gmail.com>

---------

Signed-off-by: Tony <legendmastertony@gmail.com>
Signed-off-by: Tony <68118705+Legend-Master@users.noreply.github.com>
2025-03-27 03:00:08 +00:00
..
allocator chore: Move unsafe operations in unsafe functions to unsafe blocks (#36017) 2025-03-18 06:19:35 +00:00
background_hang_monitor chore: Move unsafe operations in unsafe functions to unsafe blocks (#36017) 2025-03-18 06:19:35 +00:00
bluetooth Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
canvas Add Path2D (#35783) 2025-03-26 12:12:44 +00:00
compositing compositor: Remove the script channel from the compositor (#36089) 2025-03-23 11:19:27 +00:00
config Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
constellation Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
deny_public_fields Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
devtools devtools: refactor network related (#36093) 2025-03-22 14:46:57 +00:00
dom_struct script: Feature-gate all crown support. (#35055) 2025-01-18 21:36:15 +00:00
domobject_derive Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fonts Upgrade to Stylo e941241 (#36120) 2025-03-25 10:45:40 +00:00
geometry servoshell: Allow overriding screen resolution with a command-line argument (#34038) 2024-10-30 11:54:13 +00:00
hyper_serde Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
jstraceable_derive Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
layout_2020 script: Eliminate PseudoElementType (#36146) 2025-03-26 08:33:12 +00:00
layout_thread_2020 chore: Remove unused generation counter field from LayoutThread (#36172) 2025-03-26 21:57:39 +00:00
malloc_size_of Cleanup Stylo dependencies (#36046) 2025-03-19 08:53:26 +00:00
media Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
metrics metrics: Simplify ProgressiveWebMetrics (#35985) 2025-03-21 14:55:00 +00:00
net fix: does_settings_prohibit_mixed_security_contexts typo (#36135) 2025-03-24 18:39:45 +00:00
pixels pixels: Extend Image to allow for multiple frames (#36058) 2025-03-21 10:32:14 +00:00
profile Use strum to iterate through enum variants and get their names (#35933) 2025-03-13 12:00:31 +00:00
rand Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
range Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
script Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
script_bindings script: Expose new methods for obtaining a global that require a realm. (#36116) 2025-03-26 23:27:25 +00:00
servo Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
shared Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
timers Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
url Eliminate to_shmem dependency from servo_url (#35897) 2025-03-11 00:33:39 +00:00
webdriver_server Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
webgpu webgpu: leverage routed_promise in calls returning promises (#35859) 2025-03-23 18:52:46 +00:00
webxr Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00