summaryrefslogtreecommitdiff
path: root/Applications/Browser
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-01 19:07:38 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-01 19:08:31 +0200
commit8766e49a7c3a28f2851bcc84b5532e26b14f2db0 (patch)
treea76b6f8855f52a2725e6c27f730260c97467057a /Applications/Browser
parent517cf65c998b63eb9c9c40e5128e896569e8a4ab (diff)
downloadserenity-8766e49a7c3a28f2851bcc84b5532e26b14f2db0.zip
LibWeb+Browser: Use the new HTML parser by default
You can still run the old parser with "br -O", but the new one is good enough to be the default parser now. We'll fix issues as we go and eventually remove the old one completely. :^)
Diffstat (limited to 'Applications/Browser')
-rw-r--r--Applications/Browser/Tab.cpp4
-rw-r--r--Applications/Browser/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp
index b404fe846c..73d8506211 100644
--- a/Applications/Browser/Tab.cpp
+++ b/Applications/Browser/Tab.cpp
@@ -59,7 +59,7 @@
namespace Browser {
-extern bool g_use_new_html_parser;
+extern bool g_use_old_html_parser;
extern String g_home_url;
Tab::Tab()
@@ -71,7 +71,7 @@ Tab::Tab()
auto& toolbar = m_toolbar_container->add<GUI::ToolBar>();
m_page_view = widget.add<Web::PageView>();
- m_page_view->set_use_new_parser(g_use_new_html_parser);
+ m_page_view->set_use_old_parser(g_use_old_html_parser);
m_go_back_action = GUI::CommonActions::make_go_back_action([this](auto&) {
m_history.go_back();
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp
index 50257828d3..35f3c166b8 100644
--- a/Applications/Browser/main.cpp
+++ b/Applications/Browser/main.cpp
@@ -45,7 +45,7 @@ namespace Browser {
static const char* bookmarks_filename = "/home/anon/bookmarks.json";
String g_home_url;
-bool g_use_new_html_parser = false;
+bool g_use_old_html_parser = false;
}
@@ -64,7 +64,7 @@ int main(int argc, char** argv)
const char* specified_url = nullptr;
Core::ArgsParser args_parser;
- args_parser.add_option(Browser::g_use_new_html_parser, "Use new HTML parser", "new-parser", 'n');
+ args_parser.add_option(Browser::g_use_old_html_parser, "Use old HTML parser", "old-parser", 'O');
args_parser.add_positional_argument(specified_url, "URL to open", "url", Core::ArgsParser::Required::No);
args_parser.parse(argc, argv);