From 0db94daf5e7f6b95a93fd878880d86d3baf6dd7f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 13 May 2023 06:55:34 +0200 Subject: Ladybird: Disable SQL database by default (until we can trust it) The asynchronous query execution keeps causing bugs with document.cookie so let's make the SQL database backend default off until we can trust it to do what we need. --- Ladybird/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Ladybird') diff --git a/Ladybird/main.cpp b/Ladybird/main.cpp index 2b1f802d88..0c1bb0a4e9 100644 --- a/Ladybird/main.cpp +++ b/Ladybird/main.cpp @@ -69,14 +69,14 @@ ErrorOr serenity_main(Main::Arguments arguments) StringView raw_url; StringView webdriver_content_ipc_path; bool enable_callgrind_profiling = false; - bool disable_sql_database = false; + bool enable_sql_database = false; Core::ArgsParser args_parser; args_parser.set_general_help("The Ladybird web browser :^)"); args_parser.add_positional_argument(raw_url, "URL to open", "url", Core::ArgsParser::Required::No); args_parser.add_option(webdriver_content_ipc_path, "Path to WebDriver IPC for WebContent", "webdriver-content-path", 0, "path"); args_parser.add_option(enable_callgrind_profiling, "Enable Callgrind profiling", "enable-callgrind-profiling", 'P'); - args_parser.add_option(disable_sql_database, "Disable SQL database", "disable-sql-database", 0); + args_parser.add_option(enable_sql_database, "Enable SQL database", "enable-sql-database", 0); args_parser.parse(arguments); auto get_formatted_url = [&](StringView const& raw_url) -> ErrorOr { @@ -90,7 +90,7 @@ ErrorOr serenity_main(Main::Arguments arguments) RefPtr database; - if (!disable_sql_database) { + if (enable_sql_database) { auto sql_server_paths = TRY(get_paths_for_helper_process("SQLServer"sv)); auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client(move(sql_server_paths))); database = TRY(Browser::Database::create(move(sql_client))); -- cgit v1.2.3