mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb+WebContent: Remove "chrome" from generated page template strings
This commit is contained in:
parent
9de6987134
commit
6078143241
Notes:
github-actions[bot]
2025-03-15 23:59:04 +00:00
Author: https://github.com/trflynn89
Commit: 6078143241
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3959
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 15 additions and 15 deletions
|
@ -16,14 +16,17 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
void set_chrome_process_command_line(StringView command_line)
|
||||
static String s_browser_process_command_line;
|
||||
static String s_browser_process_executable_path;
|
||||
|
||||
void set_browser_process_command_line(StringView command_line)
|
||||
{
|
||||
s_chrome_process_command_line = MUST(String::from_utf8(command_line));
|
||||
s_browser_process_command_line = MUST(String::from_utf8(command_line));
|
||||
}
|
||||
|
||||
void set_chrome_process_executable_path(StringView executable_path)
|
||||
void set_browser_process_executable_path(StringView executable_path)
|
||||
{
|
||||
s_chrome_process_executable_path = MUST(String::from_utf8(executable_path));
|
||||
s_browser_process_executable_path = MUST(String::from_utf8(executable_path));
|
||||
}
|
||||
|
||||
ErrorOr<String> load_error_page(URL::URL const& url, StringView error_message)
|
||||
|
@ -92,8 +95,8 @@ ErrorOr<String> load_about_version_page()
|
|||
generator.set("arch_name", CPU_STRING);
|
||||
generator.set("os_name", OS_STRING);
|
||||
generator.set("user_agent", default_user_agent);
|
||||
generator.set("command_line", s_chrome_process_command_line);
|
||||
generator.set("executable_path", s_chrome_process_executable_path);
|
||||
generator.set("command_line", s_browser_process_command_line);
|
||||
generator.set("executable_path", s_browser_process_executable_path);
|
||||
generator.append(template_file->data());
|
||||
return TRY(String::from_utf8(generator.as_string_view()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue