servo/components/constellation
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
..
browsingcontext.rs base: Finish rename of TopLevelBrowsingContextId to WebViewId (#35896) 2025-03-11 10:56:10 +00:00
Cargo.toml Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
constellation.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
event_loop.rs compositor: Remove the script channel from the compositor (#36089) 2025-03-23 11:19:27 +00:00
lib.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
logging.rs Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
pipeline.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
sandboxing.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
serviceworker.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
session_history.rs Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
tracing.rs feat(notification): add EmbedderMsg::ShowNotification (#36055) 2025-03-24 13:01:36 +00:00
webview.rs base: Finish rename of TopLevelBrowsingContextId to WebViewId (#35896) 2025-03-11 10:56:10 +00:00