From ae6dce0674c203a3162b0b8ebe2f962a233de994 Mon Sep 17 00:00:00 2001 From: eri Date: Wed, 4 Jun 2025 13:29:54 +0200 Subject: [PATCH] devtools: fix firefox 139 Signed-off-by: eri --- components/devtools/actors/browsing_context.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/devtools/actors/browsing_context.rs b/components/devtools/actors/browsing_context.rs index 81a00e82d47..fc5116131a0 100644 --- a/components/devtools/actors/browsing_context.rs +++ b/components/devtools/actors/browsing_context.rs @@ -81,6 +81,13 @@ struct BrowsingContextTraits { watchpoints: bool, } +#[derive(Serialize)] +#[serde(rename_all = "lowercase")] +enum TargetType { + Frame, + // Other target types not implemented yet. +} + #[derive(Serialize)] #[serde(rename_all = "camelCase")] pub struct BrowsingContextActorMsg { @@ -104,6 +111,7 @@ pub struct BrowsingContextActorMsg { reflow_actor: String, style_sheets_actor: String, thread_actor: String, + target_type: TargetType, // Part of the official protocol, but not yet implemented. // animations_actor: String, // changes_actor: String, @@ -302,6 +310,7 @@ impl BrowsingContextActor { reflow_actor: self.reflow.clone(), style_sheets_actor: self.style_sheets.clone(), thread_actor: self.thread.clone(), + target_type: TargetType::Frame, } }