mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
LibWeb: Add the Web::URL namespace and move URLEncoder to it
This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
This commit is contained in:
parent
2b78e227f2
commit
4629f2e4ad
54 changed files with 236 additions and 225 deletions
|
@ -311,12 +311,12 @@ void BrowsingContext::unregister_viewport_client(ViewportClient& client)
|
|||
VERIFY(was_removed);
|
||||
}
|
||||
|
||||
void BrowsingContext::register_frame_nesting(URL const& url)
|
||||
void BrowsingContext::register_frame_nesting(AK::URL const& url)
|
||||
{
|
||||
m_frame_nesting_levels.ensure(url)++;
|
||||
}
|
||||
|
||||
bool BrowsingContext::is_frame_nesting_allowed(URL const& url) const
|
||||
bool BrowsingContext::is_frame_nesting_allowed(AK::URL const& url) const
|
||||
{
|
||||
return m_frame_nesting_levels.get(url).value_or(0) < 3;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue