From b691269912bcc08e43007d03c04e784b6b4974a8 Mon Sep 17 00:00:00 2001
From: Xexxa <93391300+Xexxa@users.noreply.github.com>
Date: Sun, 26 Jun 2022 18:35:06 +0200
Subject: [PATCH] Base+Browser+BrowserSettings: Add default page for new tab
---
Base/res/html/misc/new-tab.html | 97 +++++++++++++++++++
Userland/Applications/Browser/main.cpp | 2 +-
.../BrowserSettings/BrowserSettingsWidget.cpp | 2 +-
3 files changed, 99 insertions(+), 2 deletions(-)
create mode 100644 Base/res/html/misc/new-tab.html
diff --git a/Base/res/html/misc/new-tab.html b/Base/res/html/misc/new-tab.html
new file mode 100644
index 0000000000..44c183cf10
--- /dev/null
+++ b/Base/res/html/misc/new-tab.html
@@ -0,0 +1,97 @@
+
+
+
+
+ New Tab
+
+
+
+
+
+ 
+
+
+ Your user agent is:
+ This page loaded in ms
+
+
+
+
+
diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp
index afcad266db..cd437eb5ab 100644
--- a/Userland/Applications/Browser/main.cpp
+++ b/Userland/Applications/Browser/main.cpp
@@ -95,7 +95,7 @@ ErrorOr serenity_main(Main::Arguments arguments)
auto app_icon = GUI::Icon::default_icon("app-browser");
Browser::g_home_url = Config::read_string("Browser", "Preferences", "Home", "file:///res/html/misc/welcome.html");
- Browser::g_new_tab_url = Config::read_string("Browser", "Preferences", "NewTab", "file:///res/html/misc/welcome.html");
+ Browser::g_new_tab_url = Config::read_string("Browser", "Preferences", "NewTab", "file:///res/html/misc/new-tab.html");
Browser::g_search_engine = Config::read_string("Browser", "Preferences", "SearchEngine", {});
Browser::g_content_filters_enabled = Config::read_bool("Browser", "Preferences", "EnableContentFilters", true);
diff --git a/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp b/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp
index fdffade119..fc739bb803 100644
--- a/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp
+++ b/Userland/Applications/BrowserSettings/BrowserSettingsWidget.cpp
@@ -13,7 +13,7 @@
#include
static String default_homepage_url = "file:///res/html/misc/welcome.html";
-static String default_new_tab_url = "file:///res/html/misc/welcome.html";
+static String default_new_tab_url = "file:///res/html/misc/new-tab.html";
static String default_search_engine = "";
static String default_color_scheme = "auto";
static bool default_show_bookmarks_bar = true;