mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
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:
parent
b3978439ad
commit
319f4f0e38
3 changed files with 22 additions and 15 deletions
|
@ -52,4 +52,8 @@ impl BreakpointListActor {
|
|||
pub fn new(name: String) -> Self {
|
||||
Self { name }
|
||||
}
|
||||
|
||||
pub fn encodable(&self) -> BreakpointListActorMsg {
|
||||
BreakpointListActorMsg { actor: self.name() }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue