Skip to content

Truly independent web browser

LibWebView+UI/Qt: Disable the ad block counter badge by default

Timothy Flynn9c07cbe19d04
diff --git a/Libraries/LibWebView/Settings.h b/Libraries/LibWebView/Settings.h
index 97f872769df..d95d8125529 100644
--- a/Libraries/LibWebView/Settings.h
+++ b/Libraries/LibWebView/Settings.h
@@ -276,7 +276,7 @@ private:
bool m_background_networking_enabled { true };
bool m_filter_list_updates_enabled { false };
bool m_content_blocker_enabled { false };
- bool m_show_content_blocker_count { true };
+ bool m_show_content_blocker_count { false };
HashTable<String> m_content_blocker_disabled_sites;
Vector<ContentBlockerList> m_content_blocker_lists;
String m_custom_content_blocker_filters;
diff --git a/Tests/LibWebView/test-webdriver-content-blockers.py b/Tests/LibWebView/test-webdriver-content-blockers.py
index cba1b7330d9..319656a2895 100755
--- a/Tests/LibWebView/test-webdriver-content-blockers.py
+++ b/Tests/LibWebView/test-webdriver-content-blockers.py
@@ -141,7 +141,7 @@ with tempfile.TemporaryDirectory() as directory:
assert command("execute/sync", {"script": "return location.href", "args": []}) == "about:about"
command("url", {"url": "about:blocking"})
state = settings()
- assert state["contentBlockers"]["showBlockedCount"] is True
+ assert state["contentBlockers"]["showBlockedCount"] is False
features = command(
"execute/async",
{
diff --git a/UI/Qt/ContentBlockingButton.h b/UI/Qt/ContentBlockingButton.h
index a64043fb022..de29dd673c5 100644
--- a/UI/Qt/ContentBlockingButton.h
+++ b/UI/Qt/ContentBlockingButton.h
@@ -31,7 +31,7 @@ private:
QIcon m_logo { ":/Icons/ladybird.png" };
WebView::ContentBlockingSnapshot m_snapshot;
- bool m_show_count_badge { true };
+ bool m_show_count_badge { false };
};
}