mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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
Notes:
sideshowbarker
2024-07-18 04:04:04 +09:00
Author: https://github.com/IdanHo
Commit: 4629f2e4ad
Pull-request: https://github.com/SerenityOS/serenity/pull/10010
54 changed files with 236 additions and 225 deletions
|
@ -304,7 +304,7 @@ void HTMLScriptElement::prepare_script()
|
|||
document().interpreter();
|
||||
|
||||
// FIXME: This is all ad-hoc and needs work.
|
||||
auto script = ClassicScript::create(url.to_string(), data, document().interpreter().realm(), URL());
|
||||
auto script = ClassicScript::create(url.to_string(), data, document().interpreter().realm(), AK::URL());
|
||||
|
||||
// When the chosen algorithm asynchronously completes, set the script's script to the result. At that time, the script is ready.
|
||||
m_script = script;
|
||||
|
@ -331,7 +331,7 @@ void HTMLScriptElement::prepare_script()
|
|||
document().interpreter();
|
||||
|
||||
// FIXME: Pass settings, base URL and options.
|
||||
auto script = ClassicScript::create(m_document->url().to_string(), source_text, document().interpreter().realm(), URL());
|
||||
auto script = ClassicScript::create(m_document->url().to_string(), source_text, document().interpreter().realm(), AK::URL());
|
||||
|
||||
// 2. Set the script's script to script.
|
||||
m_script = script;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue