devtools: Fix getBreakpointListActor handler in watcher actor (#38624)

the Firefox devtools client often sends multiple
`getBreakpointListActor` requests to the watcher actor when connecting,
and the Firefox devtools server returns the same breakpoint list actor
every time, but Servo returns a new breakpoint list actor each time.
this patch aligns Servo’s behaviour with Firefox.

Testing: this patch adds a devtools test

Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
shuppy 2025-08-12 20:26:59 +08:00 committed by GitHub
parent b3978439ad
commit 319f4f0e38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 15 deletions

View file

@ -52,4 +52,8 @@ impl BreakpointListActor {
pub fn new(name: String) -> Self {
Self { name }
}
pub fn encodable(&self) -> BreakpointListActorMsg {
BreakpointListActorMsg { actor: self.name() }
}
}