servo/components/servo
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
..
examples Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
build.rs Don't generate gstreamer data when dummy media backend enabled. (#35056) 2025-01-18 14:14:45 +00:00
Cargo.toml Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
clipboard_delegate.rs libservo: Add a ClipboardDelegate and a default implementation (#35297) 2025-02-07 10:43:46 +00:00
lib.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
proxies.rs Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
responders.rs libservo: Notify delegates of send errors in request objects (#35668) 2025-03-19 06:41:14 +00:00
servo_delegate.rs feat(notification): add EmbedderMsg::ShowNotification (#36055) 2025-03-24 13:01:36 +00:00
webview.rs Create a constellation_traits crate (#36088) 2025-03-22 15:49:08 +00:00
webview_delegate.rs feat(notification): add EmbedderMsg::ShowNotification (#36055) 2025-03-24 13:01:36 +00:00