mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Remove unused BrowsingContext::close()
Was replaced by close_top_level_traversable()
This commit is contained in:
parent
d17b1d6b1f
commit
180c3e2fef
2 changed files with 0 additions and 21 deletions
|
@ -880,24 +880,6 @@ void BrowsingContext::discard()
|
||||||
parent()->remove_child(*this);
|
parent()->remove_child(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/window-object.html#close-a-browsing-context
|
|
||||||
void BrowsingContext::close()
|
|
||||||
{
|
|
||||||
VERIFY(active_document());
|
|
||||||
|
|
||||||
// FIXME: 1. If the result of calling prompt to unload with browsingContext's active document is "refuse", then return.
|
|
||||||
|
|
||||||
// 2. Unload browsingContext's active document.
|
|
||||||
active_document()->unload();
|
|
||||||
|
|
||||||
// 3. Remove browsingContext from the user interface (e.g., close or hide its tab in a tabbed browser).
|
|
||||||
if (m_page)
|
|
||||||
m_page->client().page_did_close_browsing_context(*this);
|
|
||||||
|
|
||||||
// 4. Discard browsingContext.
|
|
||||||
discard();
|
|
||||||
}
|
|
||||||
|
|
||||||
void BrowsingContext::append_child(JS::NonnullGCPtr<BrowsingContext> child)
|
void BrowsingContext::append_child(JS::NonnullGCPtr<BrowsingContext> child)
|
||||||
{
|
{
|
||||||
VERIFY(!child->m_parent);
|
VERIFY(!child->m_parent);
|
||||||
|
|
|
@ -212,9 +212,6 @@ public:
|
||||||
void discard();
|
void discard();
|
||||||
bool has_been_discarded() const { return m_has_been_discarded; }
|
bool has_been_discarded() const { return m_has_been_discarded; }
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/window-object.html#close-a-browsing-context
|
|
||||||
void close();
|
|
||||||
|
|
||||||
Optional<AK::URL> const& creator_url() const { return m_creator_url; }
|
Optional<AK::URL> const& creator_url() const { return m_creator_url; }
|
||||||
|
|
||||||
virtual String const& window_handle() const override { return m_window_handle; }
|
virtual String const& window_handle() const override { return m_window_handle; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue