mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
devtools: Fix inspector on Firefox 139 (#37247)
Added a `target_type` field so that Firefox 139 is happy with showing the inspector. In the future, this should probably include other `TARGET_TYPES` like watcher and process. Testing: Manually tested the inspector in Firefox 139 (not sure if we have automatic devtools tests now). Fixes: #37242 Signed-off-by: eri <eri@inventati.org>
This commit is contained in:
parent
aff38cdbd0
commit
9083d58061
1 changed files with 9 additions and 0 deletions
|
@ -81,6 +81,13 @@ struct BrowsingContextTraits {
|
||||||
watchpoints: bool,
|
watchpoints: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize)]
|
||||||
|
#[serde(rename_all = "lowercase")]
|
||||||
|
enum TargetType {
|
||||||
|
Frame,
|
||||||
|
// Other target types not implemented yet.
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct BrowsingContextActorMsg {
|
pub struct BrowsingContextActorMsg {
|
||||||
|
@ -104,6 +111,7 @@ pub struct BrowsingContextActorMsg {
|
||||||
reflow_actor: String,
|
reflow_actor: String,
|
||||||
style_sheets_actor: String,
|
style_sheets_actor: String,
|
||||||
thread_actor: String,
|
thread_actor: String,
|
||||||
|
target_type: TargetType,
|
||||||
// Part of the official protocol, but not yet implemented.
|
// Part of the official protocol, but not yet implemented.
|
||||||
// animations_actor: String,
|
// animations_actor: String,
|
||||||
// changes_actor: String,
|
// changes_actor: String,
|
||||||
|
@ -302,6 +310,7 @@ impl BrowsingContextActor {
|
||||||
reflow_actor: self.reflow.clone(),
|
reflow_actor: self.reflow.clone(),
|
||||||
style_sheets_actor: self.style_sheets.clone(),
|
style_sheets_actor: self.style_sheets.clone(),
|
||||||
thread_actor: self.thread.clone(),
|
thread_actor: self.thread.clone(),
|
||||||
|
target_type: TargetType::Frame,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue