mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
AK+LibWeb: Do not percent encode/decode in URL fragment setter/getters
The web specs do not expect decoding or decoding to happen when calling these helpers. This allows us to remove the raw_fragment helper function from the URL class.
This commit is contained in:
parent
c25485700a
commit
5663a2d3b4
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/shannonbooth
Commit: 5663a2d3b4
Pull-request: https://github.com/SerenityOS/serenity/pull/20510
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 3 additions and 11 deletions
2
AK/URL.h
2
AK/URL.h
|
@ -83,9 +83,7 @@ public:
|
|||
ErrorOr<String> serialized_host() const;
|
||||
DeprecatedString basename() const;
|
||||
Optional<String> const& query() const { return m_query; }
|
||||
// NOTE: fragment() is percent-decoded, raw_fragment() is not.
|
||||
DeprecatedString fragment() const;
|
||||
DeprecatedString raw_fragment() const;
|
||||
Optional<u16> port() const { return m_port; }
|
||||
DeprecatedString path_segment_at_index(size_t index) const;
|
||||
size_t path_segment_count() const { return m_paths.size(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue