1
Fork 0
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:
Andreas Kling 2022-12-16 23:26:17 +01:00
parent 7af09481f5
commit 1b78e0f059
2 changed files with 36 additions and 0 deletions

View file

@ -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();