mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:07:47 +00:00
LibWebView: Protect URL highlighting against partially-typed URLs
The current helpers assume that a valid URL is a full URL (i.e. contains the "://" separator between the scheme and domain). This isn't true, as "file:" alone is parsed as a valid URL. We must also avoid simply searching for the parsed public suffix in the original URL string. For example, "com" is a public suffix. If we search for that in the URL "com.com", we will think the public suffix starts at index 0.
This commit is contained in:
parent
194bf5a677
commit
8dc25dffc2
5 changed files with 113 additions and 15 deletions
|
@ -26,6 +26,7 @@ add_subdirectory(LibUnicode)
|
|||
add_subdirectory(LibVideo)
|
||||
add_subdirectory(LibWasm)
|
||||
add_subdirectory(LibWeb)
|
||||
add_subdirectory(LibWebView)
|
||||
add_subdirectory(LibXML)
|
||||
add_subdirectory(LibCrypto)
|
||||
add_subdirectory(LibTLS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue