summaryrefslogtreecommitdiff
path: root/Ladybird
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-05-13 06:55:34 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-13 07:52:22 +0200
commit0db94daf5e7f6b95a93fd878880d86d3baf6dd7f (patch)
treeeeaac865e254b53a15a22e3312db484c267341ce /Ladybird
parentc8cf599c4412885f1b59fe75902a9df4e14d1a89 (diff)
downloadserenity-0db94daf5e7f6b95a93fd878880d86d3baf6dd7f.zip
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.
Diffstat (limited to 'Ladybird')
-rw-r--r--Ladybird/main.cpp6
1 files changed, 3 insertions, 3 deletions
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<int> 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<URL> {
@@ -90,7 +90,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
RefPtr<Browser::Database> 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)));