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:
eri 2024-10-09 13:09:06 +01:00 committed by GitHub
parent a6da1daa12
commit af61b1a107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 48 additions and 98 deletions

View file

@ -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())
};
}
}