servo/components/config
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
..
macro api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
Cargo.toml Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
lib.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
opts.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
pref_util.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
prefs.rs Hide servo internal shadow roots from the inspector by default (#35958) 2025-03-13 13:08:24 +00:00