diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
index 0fa704b614..17498cb0ad 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
@@ -731,14 +731,6 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex
return { chosen.ptr(), window_type };
}
-// https://html.spec.whatwg.org/multipage/browsers.html#child-browsing-context
-bool BrowsingContext::is_child_of(BrowsingContext const& parent) const
-{
- // A browsing context child is said to be a child browsing context of another browsing context parent,
- // if child's container document is non-null and child's container document's browsing context is parent.
- return container_document() && container_document()->browsing_context() == &parent;
-}
-
// https://html.spec.whatwg.org/multipage/dom.html#still-on-its-initial-about:blank-document
bool BrowsingContext::still_on_its_initial_about_blank_document() const
{
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
index 360ad4c95b..39d92bd4f8 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
@@ -157,8 +157,6 @@ public:
ChosenBrowsingContext choose_a_browsing_context(StringView name, TokenizedFeature::NoOpener no_opener, ActivateTab = ActivateTab::Yes);
- bool is_child_of(BrowsingContext const&) const;
-
HTML::NavigableContainer* container() { return m_container; }
HTML::NavigableContainer const* container() const { return m_container; }