mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix devtools timeout with Firefox 133 (#34602)
Signed-off-by: Jay Oster <jay@kodewerx.org>
This commit is contained in:
parent
f7e2ec3a0f
commit
53612dab90
1 changed files with 20 additions and 1 deletions
|
@ -115,6 +115,13 @@ struct GetProcessResponse {
|
|||
process_descriptor: ProcessActorMsg,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct ErrorResponse {
|
||||
from: String,
|
||||
error: String,
|
||||
message: String,
|
||||
}
|
||||
|
||||
pub struct RootActor {
|
||||
pub tabs: Vec<String>,
|
||||
pub workers: Vec<String>,
|
||||
|
@ -249,7 +256,19 @@ impl Actor for RootActor {
|
|||
ActorMessageStatus::Processed
|
||||
},
|
||||
|
||||
_ => ActorMessageStatus::Ignored,
|
||||
_ => {
|
||||
let reply = ErrorResponse {
|
||||
from: self.name(),
|
||||
error: "unrecognizedPacketType".to_owned(),
|
||||
message: format!(
|
||||
"Actor {} does not recognize the packet type '{}'",
|
||||
self.name(),
|
||||
msg_type,
|
||||
),
|
||||
};
|
||||
let _ = stream.write_json_packet(&reply);
|
||||
ActorMessageStatus::Ignored
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue