mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
DevTools: Fix console in Firefox 131 (#33661)
* feat: remove deprecated resource-available-form Signed-off-by: eri <epazos@igalia.com> * chore: update targeted firefox version Signed-off-by: eri <epazos@igalia.com> --------- Signed-off-by: eri <epazos@igalia.com>
This commit is contained in:
parent
a6da1daa12
commit
af61b1a107
4 changed files with 48 additions and 98 deletions
|
@ -119,6 +119,12 @@ struct SetPreferencesReply {
|
|||
updated: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct PageErrorWrapper {
|
||||
page_error: PageError,
|
||||
}
|
||||
|
||||
pub(crate) enum Root {
|
||||
BrowsingContext(String),
|
||||
DedicatedWorker(String),
|
||||
|
@ -255,7 +261,7 @@ impl ConsoleActor {
|
|||
if let Root::BrowsingContext(bc) = &self.root {
|
||||
registry
|
||||
.find::<BrowsingContextActor>(bc)
|
||||
.page_error(page_error)
|
||||
.resource_available(PageErrorWrapper { page_error }, "error-message".into())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +303,7 @@ impl ConsoleActor {
|
|||
if let Root::BrowsingContext(bc) = &self.root {
|
||||
registry
|
||||
.find::<BrowsingContextActor>(bc)
|
||||
.console_message(console_api)
|
||||
.resource_available(console_api, "console-message".into())
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue