mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-07 00:29:47 +00:00
LibWeb: Stub WebSerial API
This commit is contained in:
parent
34ec33d71c
commit
1be31c103f
Notes:
github-actions[bot]
2025-08-08 08:24:30 +00:00
Author: https://github.com/EdwinHoksberg
Commit: 1be31c103f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5740
Reviewed-by: https://github.com/gmta ✅
19 changed files with 715 additions and 0 deletions
|
@ -69,6 +69,7 @@ void Navigator::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_plugin_array);
|
||||
visitor.visit(m_clipboard);
|
||||
visitor.visit(m_geolocation);
|
||||
visitor.visit(m_serial);
|
||||
visitor.visit(m_user_activation);
|
||||
visitor.visit(m_service_worker_container);
|
||||
visitor.visit(m_media_capabilities);
|
||||
|
@ -103,6 +104,13 @@ GC::Ref<Geolocation::Geolocation> Navigator::geolocation()
|
|||
return *m_geolocation;
|
||||
}
|
||||
|
||||
GC::Ref<Serial::Serial> Navigator::serial()
|
||||
{
|
||||
if (!m_serial)
|
||||
m_serial = realm().create<Serial::Serial>(realm());
|
||||
return *m_serial;
|
||||
}
|
||||
|
||||
GC::Ref<UserActivation> Navigator::user_activation()
|
||||
{
|
||||
if (!m_user_activation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue