Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion patches/expose-flags.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 9d0181f447a1a..8e10017c678f9 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4220,6 +4220,36 @@ const FeatureEntry kFeatureEntries[] = {
@@ -4220,6 +4220,40 @@ const FeatureEntry kFeatureEntries[] = {
// //tools/flags/generate_unexpire_flags.py.
#include "build/chromeos_buildflags.h"
#include "chrome/browser/unexpire_flags_gen.inc"
Expand All @@ -23,6 +23,10 @@ index 9d0181f447a1a..8e10017c678f9 100644
+ "Defaults to enabled. This feature is exposed by hardened-chromium.",
+ kOsAll,
+ FEATURE_VALUE_TYPE(net::features::kCapReferrerToOriginOnCrossOrigin)},
+ {"strict-popup-blocking", "Strict Popup Blocking",
+ "Controls the strictness of the popup blocker. This switch is provided "
+ "by hardened-chromium.", kOsAll,
+ SINGLE_DISABLE_VALUE_TYPE("disable-strict-popup-blocking"},
+ {"hide-profile-icon", "Hide profile icon in toolbar",
+ "Hides the profile icon in the toolbar in regular profiles. Defaults "
+ "to enabled. This feature is provided by hardened-chromium." , kOsAll,
Expand Down
18 changes: 18 additions & 0 deletions patches/strict-popup-blocking.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/components/blocked_content/popup_blocker.cc b/components/blocked_content/popup_blocker.cc
index 8b12c7dd441f3..9c13ac10a6f1a 100644
--- a/components/blocked_content/popup_blocker.cc
+++ b/components/blocked_content/popup_blocker.cc
@@ -81,11 +81,8 @@ PopupBlockType ShouldBlockPopup(content::WebContents* web_contents,
return PopupBlockType::kNotBlocked;
}

- auto* safe_browsing_blocker =
- SafeBrowsingTriggeredPopupBlocker::FromWebContents(web_contents);
- if (safe_browsing_blocker &&
- safe_browsing_blocker->ShouldApplyAbusivePopupBlocker(
- GetSourcePageForPopup(open_url_params, web_contents))) {
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ "disable-strict-popup-blocking")) {
return PopupBlockType::kAbusive;
}
return PopupBlockType::kNotBlocked;