1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

LibWeb: Update Document::unload() to match latest spec

This commit is contained in:
Aliaksandr Kalenik 2023-04-11 19:40:11 +03:00 committed by Andreas Kling
parent 359d8a3dc2
commit e5302e0f56
2 changed files with 64 additions and 71 deletions

View file

@ -484,8 +484,8 @@ 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/document-lifecycle.html#unload-a-document
void unload(JS::GCPtr<Document> new_document = nullptr);
// https://html.spec.whatwg.org/multipage/dom.html#active-parser
JS::GCPtr<HTML::HTMLParser> active_parser();