mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibDevTools+LibWebView: Port DevTools to String
This commit is contained in:
parent
9879ac0893
commit
4791ec35bf
Notes:
github-actions[bot]
2025-02-21 00:29:06 +00:00
Author: https://github.com/trflynn89
Commit: 4791ec35bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
35 changed files with 99 additions and 98 deletions
|
@ -18,12 +18,12 @@
|
|||
|
||||
namespace DevTools {
|
||||
|
||||
NonnullRefPtr<WatcherActor> WatcherActor::create(DevToolsServer& devtools, ByteString name, WeakPtr<TabActor> tab)
|
||||
NonnullRefPtr<WatcherActor> WatcherActor::create(DevToolsServer& devtools, String name, WeakPtr<TabActor> tab)
|
||||
{
|
||||
return adopt_ref(*new WatcherActor(devtools, move(name), move(tab)));
|
||||
}
|
||||
|
||||
WatcherActor::WatcherActor(DevToolsServer& devtools, ByteString name, WeakPtr<TabActor> tab)
|
||||
WatcherActor::WatcherActor(DevToolsServer& devtools, String name, WeakPtr<TabActor> tab)
|
||||
: Actor(devtools, move(name))
|
||||
, m_tab(move(tab))
|
||||
{
|
||||
|
@ -67,7 +67,7 @@ void WatcherActor::handle_message(StringView type, JsonObject const& message)
|
|||
}
|
||||
|
||||
if (type == "watchTargets"sv) {
|
||||
auto target_type = message.get_byte_string("targetType"sv);
|
||||
auto target_type = message.get_string("targetType"sv);
|
||||
if (!target_type.has_value()) {
|
||||
send_missing_parameter_error("targetType"sv);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue