servo/ports/servoshell/egl
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
..
android Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
ohos Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
android.rs Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
app_state.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
host_trait.rs libservo: Clean up interfaces for alert()/confirm()/prompt() (#35579) 2025-02-27 02:49:08 +00:00
log.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
mod.rs Migrate Android and OHOS ports to the delegate API (#35315) 2025-02-06 14:21:29 +00:00
ohos.rs Create config_dir if none exist for caching (#35761) 2025-03-18 18:36:33 +00:00