AK+Everywhere: Store JSON strings as String

This commit is contained in:
Timothy Flynn
2025-02-17 13:21:07 -05:00
committed by Tim Flynn
parent e591636419
commit bc54c0cdfb
33 changed files with 163 additions and 152 deletions

View File

@@ -132,7 +132,7 @@ JsonObject web_element_reference_object(HTML::BrowsingContext const& browsing_co
// 3. Return a JSON Object initialized with a property with name identifier and value reference.
JsonObject object;
object.set(identifier, reference);
object.set(identifier, MUST(String::from_byte_string(reference)));
return object;
}
@@ -422,7 +422,7 @@ JsonObject shadow_root_reference_object(HTML::BrowsingContext const& browsing_co
// 3. Return a JSON Object initialized with a property with name identifier and value reference.
JsonObject object;
object.set(identifier, reference);
object.set(identifier, MUST(String::from_byte_string(reference)));
return object;
}