mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibWeb: Implement "destroy" operation for documents
This is basically the old "discard" updated for the world of navigables. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
7af09481f5
commit
1b78e0f059
2 changed files with 36 additions and 0 deletions
|
@ -448,6 +448,8 @@ public:
|
|||
Vector<JS::Handle<HTML::Navigable>> descendant_navigables();
|
||||
Vector<JS::Handle<HTML::Navigable>> inclusive_descendant_navigables();
|
||||
|
||||
void destroy();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#discard-a-document
|
||||
void discard();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue