mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibWeb: Add methods to Window that must do nothing
This change adds the `captureEvents()` and `releaseEvents()` methods to the window object. These methods are obsolete, but are still included in the HTML specification, which says they must do nothing.
This commit is contained in:
committed by
Andreas Kling
parent
0564e06f10
commit
88f3145f8a
@@ -1600,6 +1600,18 @@ JS::NonnullGCPtr<Crypto::Crypto> Window::crypto()
|
||||
return JS::NonnullGCPtr { *m_crypto };
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/obsolete.html#dom-window-captureevents
|
||||
void Window::capture_events()
|
||||
{
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/obsolete.html#dom-document-releaseevents
|
||||
void Window::release_events()
|
||||
{
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation
|
||||
JS::NonnullGCPtr<Navigation> Window::navigation()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user