diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index 2607de5492..0491ba0ea4 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -489,16 +489,6 @@ void BrowsingContext::select_all() (void)selection->select_all_children(*document->body()); } -void BrowsingContext::register_frame_nesting(AK::URL const& url) -{ - m_frame_nesting_levels.ensure(url)++; -} - -bool BrowsingContext::is_frame_nesting_allowed(AK::URL const& url) const -{ - return m_frame_nesting_levels.get(url).value_or(0) < 3; -} - bool BrowsingContext::increment_cursor_position_offset() { if (!m_cursor_position.increment_offset()) diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h index df497a8043..b042edadd6 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h @@ -171,12 +171,6 @@ public: void did_edit(Badge); - void register_frame_nesting(AK::URL const&); - bool is_frame_nesting_allowed(AK::URL const&) const; - - void set_frame_nesting_levels(HashMap frame_nesting_levels) { m_frame_nesting_levels = move(frame_nesting_levels); } - HashMap const& frame_nesting_levels() const { return m_frame_nesting_levels; } - bool has_a_rendering_opportunity() const; JS::GCPtr currently_focused_area(); @@ -255,7 +249,6 @@ private: RefPtr m_cursor_blink_timer; bool m_cursor_blink_state { false }; - HashMap m_frame_nesting_levels; DeprecatedString m_name; // https://html.spec.whatwg.org/multipage/browsers.html#tlbc-group