1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibWeb: Flesh out most of the "unload" algorithm for documents

Yet another small steps towards spec-compliant document lifecycles.
This commit is contained in:
Andreas Kling 2022-09-21 01:06:47 +02:00
parent 797d28adca
commit 0c7ab663c1
3 changed files with 103 additions and 0 deletions

View file

@ -420,6 +420,9 @@ public:
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#abort-a-document
void abort();
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#unload-a-document
void unload(bool recursive_flag = false, Optional<DocumentUnloadTimingInfo> = {});
// https://html.spec.whatwg.org/multipage/dom.html#active-parser
RefPtr<HTML::HTMLParser> active_parser();