mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02: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:
committed by
Andreas Kling
parent
2b78e227f2
commit
4629f2e4ad
Notes:
sideshowbarker
2024-07-18 04:04:04 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/4629f2e4ad0 Pull-request: https://github.com/SerenityOS/serenity/pull/10010
@@ -20,7 +20,7 @@ public:
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
static NonnullRefPtr<ClassicScript> create(String filename, StringView source, JS::Realm&, URL base_url, MutedErrors = MutedErrors::No);
|
||||
static NonnullRefPtr<ClassicScript> create(String filename, StringView source, JS::Realm&, AK::URL base_url, MutedErrors = MutedErrors::No);
|
||||
|
||||
JS::Script* script_record() { return m_script_record; }
|
||||
JS::Script const* script_record() const { return m_script_record; }
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
JS::Value run(RethrowErrors = RethrowErrors::No);
|
||||
|
||||
private:
|
||||
ClassicScript(URL base_url, String filename);
|
||||
ClassicScript(AK::URL base_url, String filename);
|
||||
|
||||
RefPtr<JS::Script> m_script_record;
|
||||
MutedErrors m_muted_errors { MutedErrors::No };
|
||||
|
||||
Reference in New Issue
Block a user