mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibWeb: Implement the "close" algorithm for browsing contexts
This is used by window.close() programmatically, but of course the user can also decide to close a top-level browsing context at any time by closing the tab.
This commit is contained in:
parent
0c7ab663c1
commit
6c33dea6a6
3 changed files with 22 additions and 0 deletions
|
@ -110,6 +110,7 @@ public:
|
|||
virtual String page_did_request_cookie(const AK::URL&, Cookie::Source) { return {}; }
|
||||
virtual void page_did_set_cookie(const AK::URL&, Cookie::ParsedCookie const&, Cookie::Source) { }
|
||||
virtual void page_did_update_resource_count(i32) { }
|
||||
virtual void page_did_close_browsing_context(HTML::BrowsingContext const&) { }
|
||||
|
||||
virtual void request_file(NonnullRefPtr<FileRequest>&) = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue