summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-06-01 11:11:05 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 12:23:16 +0200
commit33396494f66d0c292b8625575d784dfb44792c1b (patch)
treee1c5deea2daa0706014576992a67e5a8484515fb /Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
parenta9114be1b8a468f8d2b30dfa382fe142e0c5e450 (diff)
downloadserenity-33396494f66d0c292b8625575d784dfb44792c1b.zip
AK+LibWeb: Remove URL::to_string_encoded()
This replaces URL::to_string_encoded() with to_string() and removes the former, since they are now equivalent.
Diffstat (limited to 'Userland/Libraries/LibWeb/OutOfProcessWebView.cpp')
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
index 81b878099d..0aa99e4f57 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
@@ -52,7 +52,8 @@ void OutOfProcessWebView::handle_web_content_process_crash()
builder.appendff(" on {}", escape_html_entities(m_url.host()));
}
builder.append("</h1>");
- builder.appendff("The web page <a href=\"{}\">{}</a> has crashed.<br><br>You can reload the page to try again.", escape_html_entities(m_url.to_string_encoded()), escape_html_entities(m_url.to_string()));
+ auto escaped_url = escape_html_entities(m_url.to_string());
+ builder.appendff("The web page <a href=\"{}\">{}</a> has crashed.<br><br>You can reload the page to try again.", escaped_url, escaped_url);
builder.append("</body></html>");
load_html(builder.to_string(), m_url);
}