mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Remove superfluous check for file state in URL basic parse
The spec does not mention any of the other checks we were doing.
This commit is contained in:
parent
b76972ff32
commit
dc27d19b21
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/dc27d19b21 Pull-request: https://github.com/SerenityOS/serenity/pull/19787
1 changed files with 2 additions and 2 deletions
|
@ -947,8 +947,8 @@ URL URLParser::parse(StringView raw_input, Optional<URL> const& base_url, Option
|
|||
|
||||
// 2. If buffer is a double-dot URL path segment, then:
|
||||
if (is_double_dot_path_segment(buffer.string_view())) {
|
||||
// FIXME: 1. Shorten url’s path.
|
||||
if (!url->m_paths.is_empty() && !(url->m_scheme == "file" && url->m_paths.size() == 1 && is_normalized_windows_drive_letter(url->m_paths[0])))
|
||||
// 1. Shorten url’s path.
|
||||
if (!url->m_paths.is_empty())
|
||||
url->m_paths.remove(url->m_paths.size() - 1);
|
||||
|
||||
// 2. If neither c is U+002F (/), nor url is special and c is U+005C (\), append the empty string to url’s path.
|
||||
|
|
Loading…
Reference in a new issue