mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +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
|
@ -168,6 +168,9 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/window-object.html#a-browsing-context-is-discarded
|
||||
void discard();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#close-a-browsing-context
|
||||
void close();
|
||||
|
||||
private:
|
||||
explicit BrowsingContext(Page&, HTML::BrowsingContextContainer*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue