mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
servoshell: Actually set the Servo delegate in servoshell (#35502)
This was implemented, but unset. Fixes #35481. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
966888615f
commit
a17b2e0cb2
3 changed files with 13 additions and 8 deletions
|
@ -89,6 +89,7 @@ impl RunningAppState {
|
|||
window: Rc<dyn WindowPortsMethods>,
|
||||
headless: bool,
|
||||
) -> RunningAppState {
|
||||
servo.set_delegate(Rc::new(ServoShellServoDelegate));
|
||||
RunningAppState {
|
||||
servo,
|
||||
inner: RefCell::new(RunningAppStateInner {
|
||||
|
@ -315,7 +316,8 @@ impl RunningAppState {
|
|||
}
|
||||
}
|
||||
|
||||
impl ServoDelegate for RunningAppState {
|
||||
struct ServoShellServoDelegate;
|
||||
impl ServoDelegate for ServoShellServoDelegate {
|
||||
fn notify_devtools_server_started(&self, _servo: &Servo, port: u16, _token: String) {
|
||||
info!("Devtools Server running on port {port}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue