Compare commits

...

18 Commits

Author SHA1 Message Date
wukko e68b57dfe6 revision: bump to 3 2025-09-12 22:05:12 +06:00
wukko 45bb2e7044 helium/core/spellcheck: update toggle description 2025-09-12 22:04:51 +06:00
wukko 1c903792d3 downloads: update onboarding 2025-09-12 21:50:52 +06:00
jj f72d8b763b downloads: drop extras.ini
i dont remember why i made it lol
2025-09-11 17:46:14 +00:00
jj d0c67ff7a3 patches/ublock: enable in incognito by default 2025-09-11 17:46:14 +00:00
wukko 22c8e702bb helium/core: fix eu search feature enforcement 2025-09-11 23:22:13 +06:00
wukko fe05e0c361 patches: refresh for 140.0.7339.132 2025-09-11 20:47:39 +06:00
wukko 2a3b46b1d8 merge: update to ungoogled-chromium 140.0.7339.132 2025-09-11 20:47:39 +06:00
wukko c62576f910 helium/settings/appearance-page: remove one more linux exclusion flag
oh my god bruh
2025-09-11 20:42:42 +06:00
jj 9247351f2a ci/bump-platform: download and unpack platform-specific downloads (#58) 2025-09-11 14:27:15 +00:00
wukko 0caf5fe713 revision: bump to 2 2025-09-11 19:43:49 +06:00
wukko 66e9d195b2 helium/settings/fix-appearance-page: add a missing string to linux build
fixes the settings page crash (oops)
2025-09-11 19:42:31 +06:00
wukko 4acf516bbb helium/split-view: reduce drop target area, increase delay, fix colors 2025-09-11 13:08:33 +06:00
jj 18bc8e75e5 patches/core: disable unsupported importer services 2025-09-10 20:20:19 +00:00
jj 7df2e17c45 patches/core: add zen importer 2025-09-10 19:02:39 +00:00
wukko 6888497c4f readme: add info about linux and windows, remove general wip phrase 2025-09-11 00:10:30 +06:00
networkException 3cf2a3b65c Update to Chromium 140.0.7339.132 2025-09-10 01:45:26 +02:00
networkException 82e76623df Update to Chromium 140.0.7339.127 2025-09-10 01:37:35 +02:00
26 changed files with 694 additions and 51 deletions
+8 -5
View File
@@ -59,12 +59,15 @@ runs:
mkdir -p build/{src,download_cache}
# fetch soures, expect that patches apply cleanly (or die)
run_upstream utils/downloads.py retrieve \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache
for file in "$HELIUM_DIR/downloads.ini" "$PLATFORM_DIR/downloads.ini"; do
if ! [ -f "$file" ]; then continue; fi
run_upstream utils/downloads.py unpack \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache build/src
run_upstream utils/downloads.py retrieve \
-i "$file" -c build/download_cache
run_upstream utils/downloads.py unpack \
-i "$file" -c build/download_cache build/src
done
run_upstream utils/patches.py apply \
--no-fuzz build/src "$HELIUM_DIR/patches"
+5 -4
View File
@@ -1,8 +1,6 @@
# Helium
Bullshit-free web browser, based on Chromium. Follows [imput](https://github.com/imputnet)'s ethics and norms.
Very WIP, not meant for public/end user consumption, etc.
First and foremost, we're making a good browser for ourselves.
We don't intend to reinvent the wheel or target everyone, it isn't Helium's goal.
The main goal is to provide an honest, comfortable, privacy-respecting, and non-invasive experience.
@@ -12,8 +10,11 @@ There's a lot more to Helium, but we don't have a complete set of features yet.
We'll update the documentation when we're closer to a public release!
## Platform-specific packaging
At the moment, we're only working on [Helium for macOS](https://github.com/imputnet/helium-macos).
We plan to create packaging for Windows & Linux systems in the future, but that's over the horizon for now.
At the moment, only [Helium for macOS](https://github.com/imputnet/helium-macos) is polished and ready for daily use.
We also have packaging for Linux and Windows, but both of them are WIP:
- [Helium for Linux](https://github.com/imputnet/helium-linux) (AppImage)
- [Helium for Windows](https://github.com/imputnet/helium-windows) (no auto-updates yet)
## Credits
### ungoogled-chromium
+1 -1
View File
@@ -1 +1 @@
140.0.7339.80
140.0.7339.132
+1
View File
@@ -850,6 +850,7 @@ chrome/browser/ash/wallpaper_handlers/google_photos_wallpaper_handlers_unittest.
chrome/browser/ash/wallpaper_handlers/sea_pen_fetcher.cc
chrome/browser/ash/wallpaper_handlers/wallpaper_handlers.cc
chrome/browser/autocomplete/autocomplete_browsertest.cc
chrome/browser/autocomplete/chrome_aim_eligibility_service_browsertest.cc
chrome/browser/autocomplete/chrome_autocomplete_provider_client_browsertest.cc
chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier_unittest.cc
chrome/browser/autocomplete/search_provider_unittest.cc
+13
View File
@@ -6,3 +6,16 @@ download_filename = chromium-%(_chromium_version)s-lite.tar.xz
hash_url = chromium|chromium-%(_chromium_version)s-lite.tar.xz.hashes|https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%(_chromium_version)s-lite.tar.xz.hashes
output_path = ./
strip_leading_dirs = chromium-%(_chromium_version)s
[search_engines_data]
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
download_filename = nonfree-search-engines-data.tar.gz
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202509121547
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = 4b44ba5d434f1925bc45ed2eb966d8d00398513bf56ff3598ea39335a6d9af9c
output_path = ./components/helium_onboarding
-12
View File
@@ -1,12 +0,0 @@
[search_engines_data]
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
download_filename = nonfree-search-engines-data.tar.gz
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202509081820
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = 4eb5fba49c3ef63af2d9a163cfbff1ccc081e0713034587656aed277544cf35d
output_path = ./components/helium_onboarding
@@ -237,7 +237,7 @@
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/chrome_browser_interface_binders_webui.cc
+++ b/chrome/browser/chrome_browser_interface_binders_webui.cc
@@ -802,8 +802,6 @@ void PopulateChromeWebUIFrameBinders(
@@ -803,8 +803,6 @@ void PopulateChromeWebUIFrameBinders(
::mojom::app_service_internals::AppServiceInternalsPageHandler,
AppServiceInternalsUI>(map);
@@ -952,7 +952,7 @@
"//services/service_manager/public/cpp",
"//services/strings",
"//services/test/echo/public/mojom",
@@ -8441,7 +8436,6 @@ test("unit_tests") {
@@ -8444,7 +8439,6 @@ test("unit_tests") {
#
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
deps += [
@@ -960,7 +960,7 @@
"//chrome:packed_resources_integrity_header",
"//chrome/browser/apps:icon_standardizer",
"//chrome/browser/apps/app_service",
@@ -8474,7 +8468,6 @@ test("unit_tests") {
@@ -8477,7 +8471,6 @@ test("unit_tests") {
"//chrome/browser/profile_resetter:fake_profile_resetter",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
@@ -1830,7 +1830,7 @@
"//components/safe_browsing/content/browser:safe_browsing_service",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:test_support",
@@ -7112,7 +7111,6 @@ test("unit_tests") {
@@ -7114,7 +7113,6 @@ test("unit_tests") {
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
@@ -3934,7 +3934,7 @@
#include "components/signin/public/base/signin_switches.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/tribool.h"
@@ -350,8 +349,7 @@ void ManagedUserProfileNoticeUI::Initial
@@ -351,8 +350,7 @@ void ManagedUserProfileNoticeUI::Initial
// Change the text so that the "(Recommended)" label is not shown when the
// admin has set merging data as the default option.
bool profile_separation_data_migration_settings_optout =
@@ -9,7 +9,7 @@
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_prefs.h"
@@ -2179,6 +2180,7 @@ void RenderViewContextMenu::AppendPageIt
@@ -2183,6 +2184,7 @@ void RenderViewContextMenu::AppendPageIt
}
if (CanTranslate(/*menu_logging=*/true)) {
+4 -4
View File
@@ -212,12 +212,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_EDGE)
+ user_data_importer::TYPE_BRAVE)
+ user_data_importer::TYPE_PERPLEXITY_COMET)
#else
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_BOOKMARKS_FILE)
+ user_data_importer::TYPE_BRAVE)
+ user_data_importer::TYPE_PERPLEXITY_COMET)
#endif
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
@@ -588,13 +588,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</message>
</if>
+ <message name="IDS_IMPORTED_FROM_BOOKMARK_FOLDER" desc="Name for bookmark panel folder imported from another browser">
+ Imported from <ph name="BROWSER_NAME">$1<ex>Chrome</ex></ph>.
+ Imported from <ph name="BROWSER_NAME">$1<ex>Chrome</ex></ph>
+ </message>
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TITLE" desc="Dialog title for importer lock dialog">
+ Import profile still in use
+ </message>
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TEXT" desc="The message to be displayed in the importer-lock dialog">
+ To import extensions or other settings, please first close the browser you're importing from.
+ To continue importing data, first close the browser you're importing from.
+ </message>
<message name="IDS_IMPORT_FROM_FIREFOX" desc="browser combo box: Mozilla Firefox">
Mozilla Firefox
@@ -41,7 +41,7 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
@@ -568,6 +569,15 @@ AutocompleteController::AutocompleteCont
@@ -570,6 +571,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -196,7 +196,7 @@
// already owned by the TemplateURLService.
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
@@ -27,23 +27,27 @@ KeywordEditorController::KeywordEditorCo
@@ -28,23 +28,27 @@ KeywordEditorController::KeywordEditorCo
KeywordEditorController::~KeywordEditorController() = default;
@@ -232,7 +232,7 @@
DCHECK(!url.empty());
const std::optional<size_t> index =
table_model_->IndexOfTemplateURL(template_url);
@@ -55,11 +59,13 @@ void KeywordEditorController::ModifyTemp
@@ -56,11 +60,13 @@ void KeywordEditorController::ModifyTemp
// Don't do anything if the entry didn't change.
if ((template_url->short_name() == title) &&
@@ -30,7 +30,7 @@
--- a/components/omnibox/browser/featured_search_provider.cc
+++ b/components/omnibox/browser/featured_search_provider.cc
@@ -290,20 +290,10 @@ void FeaturedSearchProvider::AddFeatured
@@ -290,21 +290,10 @@ void FeaturedSearchProvider::AddFeatured
for (TemplateURL* turl : turls) {
if (turl->starter_pack_id() > 0 &&
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
@@ -47,6 +47,7 @@
- // Skip @aimode if feature disabled.
- if (turl->starter_pack_id() == template_url_starter_pack_data::kAiMode &&
- (!omnibox_feature_configs::Toolbelt::Get().enabled ||
- !client_->GetAimEligibilityService() ||
- !client_->GetAimEligibilityService()->IsAimEligible())) {
+ // Disable all Google AI starter pack options
+ if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini ||
@@ -138,7 +138,7 @@ TODO: guard services_page.html with is_mac
+++ b/chrome/app/settings_strings.grdp
@@ -1951,6 +1951,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
When enabled, Helium will fetch dictionary files used for spell checking when requested.
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
+ Allow automatic browser updates
+496
View File
@@ -0,0 +1,496 @@
--- a/chrome/browser/importer/external_process_importer_host.cc
+++ b/chrome/browser/importer/external_process_importer_host.cc
@@ -133,7 +133,7 @@ void ExternalProcessImporterHost::OnTemp
void ExternalProcessImporterHost::ShowWarningDialog() {
DCHECK(!headless_);
importer::ShowImportLockDialog(
- parent_window_,
+ parent_view_, parent_window_,
base::BindOnce(&ExternalProcessImporterHost::OnImportLockDialogEnd,
weak_ptr_factory_.GetWeakPtr()));
}
@@ -157,7 +157,8 @@ void ExternalProcessImporterHost::OnImpo
bool ExternalProcessImporterHost::CheckForFirefoxLock(
const user_data_importer::SourceProfile& source_profile) {
- if (source_profile.importer_type != user_data_importer::TYPE_FIREFOX) {
+ if (source_profile.importer_type != user_data_importer::TYPE_FIREFOX
+ && source_profile.importer_type != user_data_importer::TYPE_ZEN) {
return true;
}
--- a/chrome/browser/importer/importer_list.cc
+++ b/chrome/browser/importer/importer_list.cc
@@ -92,6 +92,51 @@ void DetectSafariProfiles(
}
#endif // BUILDFLAG(IS_MAC)
+void DetectZenProfiles(
+ const std::string locale,
+ std::vector<user_data_importer::SourceProfile>* profiles) {
+ base::ScopedBlockingCall scoped_blocking_call(FROM_HERE,
+ base::BlockingType::MAY_BLOCK);
+#if BUILDFLAG(IS_WIN)
+ // zen uses the same prefix as firefox, which is very convenient for us
+ const std::string zen_install_id =
+ shell_integration::GetFirefoxProgIdSuffix();
+#else
+ const std::string zen_install_id;
+#endif // BUILDFLAG(IS_WIN)
+ std::vector<FirefoxDetail> details = GetZenDetails(zen_install_id);
+
+ for (const auto& detail : details) {
+ base::FilePath app_path;
+ if (detail.path.empty())
+ continue;
+
+ int version;
+ GetFirefoxVersionAndPathFromProfile(detail.path, &version, &app_path);
+
+ user_data_importer::SourceProfile zen;
+ zen.importer_name = u"Zen";
+ zen.profile = detail.name;
+ zen.importer_type = user_data_importer::TYPE_ZEN;
+ zen.source_path = detail.path;
+#if BUILDFLAG(IS_WIN)
+ zen.app_path = GetFirefoxInstallPathFromRegistry();
+#endif
+ if (zen.app_path.empty()) {
+ if (app_path.empty()) {
+ continue;
+ }
+
+ zen.app_path = app_path;
+ }
+
+ zen.services_supported = user_data_importer::HISTORY
+ | user_data_importer::FAVORITES;
+ zen.locale = locale;
+ profiles->push_back(zen);
+ }
+}
+
// |locale|: The application locale used for lookups in Firefox's
// locale-specific search engines feature (see firefox_importer.cc for
// details).
@@ -157,6 +202,8 @@ void DetectFirefoxProfiles(
firefox.locale = locale;
profiles->push_back(firefox);
}
+
+ DetectZenProfiles(locale, profiles);
}
std::vector<user_data_importer::SourceProfile> DetectSourceProfilesWorker(
--- a/chrome/common/importer/firefox_importer_utils_linux.cc
+++ b/chrome/common/importer/firefox_importer_utils_linux.cc
@@ -9,17 +9,26 @@
#include "base/files/file_util.h"
#include "base/path_service.h"
-base::FilePath GetProfilesINI() {
+base::FilePath _GetProfilesINI(const char* folder) {
base::FilePath ini_file;
// The default location of the profile folder containing user data is
// under user HOME directory in .mozilla/firefox folder on Linux.
base::FilePath home;
base::PathService::Get(base::DIR_HOME, &home);
if (!home.empty()) {
- ini_file = home.Append(".mozilla/firefox/profiles.ini");
+ ini_file = home.Append(folder)
+ .Append("profiles.ini");
}
if (base::PathExists(ini_file))
return ini_file;
return base::FilePath();
}
+
+base::FilePath GetProfilesINI() {
+ return _GetProfilesINI(".mozilla/firefox");
+}
+
+base::FilePath GetZenProfilesINI() {
+ return _GetProfilesINI(".zen");
+}
--- a/chrome/common/importer/firefox_importer_utils_mac.mm
+++ b/chrome/common/importer/firefox_importer_utils_mac.mm
@@ -7,15 +7,23 @@
#include "base/files/file_util.h"
#include "base/path_service.h"
-base::FilePath GetProfilesINI() {
+base::FilePath _GetProfilesINI(const char* folder) {
base::FilePath app_data_path;
if (!base::PathService::Get(base::DIR_APP_DATA, &app_data_path)) {
return base::FilePath();
}
base::FilePath ini_file =
- app_data_path.Append("Firefox").Append("profiles.ini");
+ app_data_path.Append(folder).Append("profiles.ini");
if (!base::PathExists(ini_file)) {
return base::FilePath();
}
return ini_file;
}
+
+base::FilePath GetProfilesINI() {
+ return _GetProfilesINI("Firefox");
+}
+
+base::FilePath GetZenProfilesINI() {
+ return _GetProfilesINI("zen");
+}
--- a/chrome/common/importer/firefox_importer_utils_win.cc
+++ b/chrome/common/importer/firefox_importer_utils_win.cc
@@ -68,16 +68,23 @@ base::FilePath GetFirefoxInstallPathFrom
return (result != ERROR_SUCCESS) ? base::FilePath() : base::FilePath(buffer);
}
-base::FilePath GetProfilesINI() {
+base::FilePath _GetProfilesINI(const char* folder) {
base::FilePath ini_file;
// The default location of the profile folder containing user data is
// under the "Application Data" folder in Windows XP, Vista, and 7.
if (!base::PathService::Get(base::DIR_ROAMING_APP_DATA, &ini_file))
return base::FilePath();
- ini_file = ini_file.AppendASCII("Mozilla");
- ini_file = ini_file.AppendASCII("Firefox");
+ ini_file = ini_file.AppendASCII(folder);
ini_file = ini_file.AppendASCII("profiles.ini");
return base::PathExists(ini_file) ? ini_file : base::FilePath();
}
+
+base::FilePath GetProfilesINI() {
+ return _GetProfilesINI("Mozilla\\Firefox");
+}
+
+base::FilePath GetZenProfilesINI() {
+ return _GetProfilesINI("zen");
+}
--- a/chrome/common/importer/firefox_importer_utils.cc
+++ b/chrome/common/importer/firefox_importer_utils.cc
@@ -29,7 +29,8 @@ namespace {
// Retrieves the file system path of the profile name.
base::FilePath GetProfilePath(const base::Value::Dict& root,
- const std::string& profile_name) {
+ const std::string& profile_name,
+ const base::FilePath& base_dir) {
std::string path_str;
const std::string* is_relative =
root.FindStringByDottedPath(profile_name + ".IsRelative");
@@ -50,26 +51,41 @@ base::FilePath GetProfilePath(const base
// path of profiles.ini. IsRelative=0 refers to a custom profile
// location.
if (*is_relative == "1")
- path = GetProfilesINI().DirName().Append(path);
+ path = base_dir.Append(path);
return path;
}
} // namespace
-std::vector<FirefoxDetail> GetFirefoxDetails(
- const std::string& firefox_install_id) {
- base::FilePath ini_file = GetProfilesINI();
+std::vector<FirefoxDetail> _GetFirefoxDetails(
+ const std::string& firefox_install_id,
+ base::FilePath ini_file) {
std::string content;
base::ReadFileToString(ini_file, &content);
DictionaryValueINIParser ini_parser;
ini_parser.Parse(content);
- return GetFirefoxDetailsFromDictionary(ini_parser.root(), firefox_install_id);
+ return GetFirefoxDetailsFromDictionary(
+ ini_parser.root(), firefox_install_id, ini_file.DirName());
+}
+
+std::vector<FirefoxDetail> GetFirefoxDetails(
+ const std::string& firefox_install_id) {
+ base::FilePath ini_file = GetProfilesINI();
+ return _GetFirefoxDetails(firefox_install_id, ini_file);
+}
+
+std::vector<FirefoxDetail> GetZenDetails(
+ const std::string& zen_install_id) {
+ base::FilePath ini_file = GetZenProfilesINI();
+ return _GetFirefoxDetails(zen_install_id, ini_file);
}
+
std::vector<FirefoxDetail> GetFirefoxDetailsFromDictionary(
const base::Value::Dict& root,
- const std::string& firefox_install_id) {
+ const std::string& firefox_install_id,
+ const base::FilePath& base_dir) {
std::vector<FirefoxDetail> profile_details;
for (int i = 0; ; ++i) {
@@ -84,7 +100,7 @@ std::vector<FirefoxDetail> GetFirefoxDet
continue;
FirefoxDetail details;
- details.path = GetProfilePath(root, current_profile);
+ details.path = GetProfilePath(root, current_profile, base_dir);
std::u16string name;
if (const std::string* name_utf8 =
root.FindStringByDottedPath(current_profile + ".Name")) {
--- a/chrome/common/importer/firefox_importer_utils.h
+++ b/chrome/common/importer/firefox_importer_utils.h
@@ -45,13 +45,17 @@ struct FirefoxDetail {
std::vector<FirefoxDetail> GetFirefoxDetails(
const std::string& firefox_install_id);
+std::vector<FirefoxDetail> GetZenDetails(
+ const std::string& zen_install_id);
+
// Returns the path to the Firefox profile, using a custom dictionary.
// If |firefox_install_id| is not empty returns the default profile associated
// with that id.
// Exposed for testing.
std::vector<FirefoxDetail> GetFirefoxDetailsFromDictionary(
const base::Value::Dict& root,
- const std::string& firefox_install_id);
+ const std::string& firefox_install_id,
+ const base::FilePath& base_dir);
// Detects version of Firefox and installation path for the given Firefox
// profile.
@@ -62,6 +66,7 @@ bool GetFirefoxVersionAndPathFromProfile
// Gets the full path of the profiles.ini file. This file records the profiles
// that can be used by Firefox. Returns an empty path if failed.
base::FilePath GetProfilesINI();
+base::FilePath GetZenProfilesINI();
// Returns the home page set in Firefox in a particular profile.
GURL GetHomepage(const base::FilePath& profile_path);
--- a/chrome/utility/importer/importer_creator.cc
+++ b/chrome/utility/importer/importer_creator.cc
@@ -38,6 +38,7 @@ scoped_refptr<Importer> CreateImporterBy
return new BookmarksFileImporter();
#if !BUILDFLAG(IS_CHROMEOS)
case user_data_importer::TYPE_FIREFOX:
+ case user_data_importer::TYPE_ZEN:
return new FirefoxImporter();
#endif
#if BUILDFLAG(IS_MAC)
--- a/components/user_data_importer/common/importer_type.h
+++ b/components/user_data_importer/common/importer_type.h
@@ -38,6 +38,7 @@ enum ImporterType {
TYPE_BRAVE = 71,
TYPE_DIA = 72,
TYPE_PERPLEXITY_COMET = 73,
+ TYPE_ZEN = 74,
};
} // namespace user_data_importer
--- a/chrome/browser/ui/webui/settings/import_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/import_data_handler.cc
@@ -106,6 +106,12 @@ void ImportDataHandler::StartImport(
importer_host_ = new ExternalProcessImporterHost();
importer_host_->set_observer(this);
Profile* profile = Profile::FromWebUI(web_ui());
+
+ importer_host_->set_parent_window(
+ web_ui()->GetWebContents()->GetTopLevelNativeWindow());
+ importer_host_->set_parent_view(
+ web_ui()->GetWebContents()->GetNativeView());
+
importer_host_->StartImportSettings(source_profile, profile, imported_items,
new ProfileWriter(profile));
--- a/chrome/utility/importer/firefox_importer.cc
+++ b/chrome/utility/importer/firefox_importer.cc
@@ -28,6 +28,7 @@
#include "components/user_data_importer/utility/bookmark_parser.h"
#include "sql/database.h"
#include "sql/statement.h"
+#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
#if !BUILDFLAG(IS_MAC)
@@ -115,6 +116,7 @@ void FirefoxImporter::StartImport(
bridge_ = bridge;
source_path_ = source_profile.source_path;
app_path_ = source_profile.app_path;
+ browser_name_ = source_profile.importer_name;
#if BUILDFLAG(IS_POSIX)
locale_ = source_profile.locale;
@@ -375,10 +377,12 @@ void FirefoxImporter::ImportBookmarks()
}
}
+ ImportZenPins(db, bookmarks);
+
// Write into profile.
if (!bookmarks.empty() && !cancelled()) {
- const std::u16string& first_folder_name =
- bridge_->GetLocalizedString(IDS_BOOKMARK_GROUP_FROM_FIREFOX);
+ std::u16string first_folder_name = l10n_util::GetStringFUTF16(
+ IDS_IMPORTED_FROM_BOOKMARK_FOLDER, browser_name_);
bridge_->AddBookmarks(bookmarks, first_folder_name);
}
if (!search_engines.empty() && !cancelled()) {
@@ -399,6 +403,81 @@ void FirefoxImporter::ImportBookmarks()
}
}
+constexpr char kZenPinQuery[] = "SELECT uuid, title, url, is_group, created_at, "
+ " is_essential, folder_parent_uuid FROM zen_pins";
+
+using user_data_importer::ImportedBookmarkEntry;
+void FirefoxImporter::ImportZenPins(sql::Database& db,
+ std::vector<ImportedBookmarkEntry>& bookmarks_out) {
+ sql::Statement s(db.GetUniqueStatement(kZenPinQuery));
+
+ if (!s.is_valid()) {
+ return;
+ }
+
+ std::map<std::string, std::string> parents;
+ std::map<std::string, ImportedBookmarkEntry> entries;
+
+ // first, we need to pull out all pins from the DB
+ while (s.Step() && !cancelled()) {
+ bool is_folder = s.ColumnBool(3); /* is_group */
+
+ std::string uuid = s.ColumnString(0); /* uuid */
+ std::string parent = s.ColumnString(6); /* folder_parent_uuid */
+
+ if (!parent.empty()) {
+ parents[uuid] = std::move(parent);
+ }
+
+ ImportedBookmarkEntry entry;
+ entry.creation_time = base::Time::FromTimeT(
+ s.ColumnInt64(4) / 1000); /* created_at */
+
+ entry.title = s.ColumnString16(1); /* title */
+ if (entry.title.ends_with(u'/')) {
+ entry.title = u"";
+ }
+
+ entry.url = GURL(s.ColumnStringView(2)); /* url */
+ entry.path = {};
+ entry.in_toolbar = s.ColumnBool(5); /* is_essential */
+ entry.is_folder = is_folder;
+
+ entries[uuid] = std::move(entry);
+ }
+
+ // compute the folder hierarchy
+ for (auto& [ uuid, entry ] : entries) {
+ std::vector<std::u16string> path;
+ std::string current = uuid;
+
+ while (true) {
+ auto query = parents.find(current);
+
+ if (query == parents.end()) {
+ break;
+ }
+
+ current = query->second;
+ path.insert(path.begin(),
+ entries.find(current)->second.title);
+ }
+
+ entry.path = std::move(path);
+
+ // Folders are ad-hoc constructed based on the .path
+ // attribute that we defined just before this.
+ // `is_folder` makes empty folders, which we don't
+ // really care about when importing pins.
+ // If you use empty folders for something, sorry I guess?
+ if (entry.is_folder) {
+ continue;
+ }
+
+ bookmarks_out.push_back(std::move(entry));
+ }
+}
+
#if !BUILDFLAG(IS_MAC)
void FirefoxImporter::ImportPasswords() {
// Initializes NSS3.
--- a/chrome/utility/importer/firefox_importer.h
+++ b/chrome/utility/importer/firefox_importer.h
@@ -63,6 +63,8 @@ class FirefoxImporter : public Importer
FRIEND_TEST_ALL_PREFIXES(FirefoxImporterTest, ImportBookmarksV25);
void ImportBookmarks();
+ void ImportZenPins(sql::Database& db,
+ std::vector<user_data_importer::ImportedBookmarkEntry>& bookmarks_out);
#if !BUILDFLAG(IS_MAC)
void ImportPasswords();
@@ -125,6 +127,8 @@ class FirefoxImporter : public Importer
std::string locale_;
#endif
+ std::u16string browser_name_;
+
base::WeakPtrFactory<FirefoxImporter> weak_ptr_factory_{this};
};
--- a/chrome/browser/importer/importer_lock_dialog.h
+++ b/chrome/browser/importer/importer_lock_dialog.h
@@ -19,13 +19,13 @@ namespace importer {
// with the message either to skip the import, or to continue the process.
void ShowImportLockDialog(gfx::NativeWindow parent,
base::OnceCallback<void(bool)> callback,
- int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
- int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ int importer_lock_title_id = IDS_EXTENSIONS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_EXTENSIONS_IMPORTER_LOCK_TEXT);
void ShowImportLockDialog(gfx::NativeView parent_view,
gfx::NativeWindow parent,
base::OnceCallback<void(bool)> callback,
- int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
- int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ int importer_lock_title_id = IDS_EXTENSIONS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_EXTENSIONS_IMPORTER_LOCK_TEXT);
} // namespace importer
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.h
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.h
@@ -21,13 +21,13 @@ class ImportLockDialogView : public view
static void Show(gfx::NativeWindow parent,
base::OnceCallback<void(bool)> callback,
- int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
- int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ int importer_lock_title_id = IDS_EXTENSIONS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_EXTENSIONS_IMPORTER_LOCK_TEXT);
static void Show(gfx::NativeView parent_view,
gfx::NativeWindow parent,
base::OnceCallback<void(bool)> callback,
- int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
- int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ int importer_lock_title_id = IDS_EXTENSIONS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_EXTENSIONS_IMPORTER_LOCK_TEXT);
ui::mojom::ModalType GetModalType() const override;
private:
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
@@ -20,11 +20,11 @@
#if BUILDFLAG(IS_WIN)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_PERPLEXITY_COMET)
+ user_data_importer::TYPE_ZEN)
#else
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_PERPLEXITY_COMET)
+ user_data_importer::TYPE_ZEN)
#endif
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
+4 -4
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -2153,7 +2153,6 @@ void RenderViewContextMenu::AppendPageIt
@@ -2157,7 +2157,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
AppendLiveCaptionItem();
@@ -8,7 +8,7 @@
if (IsRegionSearchEnabled()) {
AppendRegionSearchItem();
}
@@ -2282,8 +2281,7 @@ void RenderViewContextMenu::AppendMediaR
@@ -2286,8 +2285,7 @@ void RenderViewContextMenu::AppendMediaR
void RenderViewContextMenu::AppendReadingModeItem() {
// Show Read Anything option if it's not already open in the side panel.
@@ -18,7 +18,7 @@
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
IDS_CONTENT_CONTEXT_READING_MODE);
}
@@ -3550,10 +3548,12 @@ void RenderViewContextMenu::ExecuteComma
@@ -3554,10 +3552,12 @@ void RenderViewContextMenu::ExecuteComma
}
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
@@ -31,7 +31,7 @@
if (is_checked) {
menu_model_.AddCheckItemWithStringId(
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
@@ -3930,6 +3930,8 @@ bool RenderViewContextMenu::IsVideoFrame
@@ -3934,6 +3934,8 @@ bool RenderViewContextMenu::IsVideoFrame
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
bool draw_icon,
bool add_separator) {
@@ -0,0 +1,14 @@
--- a/chrome/browser/importer/importer_list.cc
+++ b/chrome/browser/importer/importer_list.cc
@@ -254,6 +254,11 @@ std::vector<user_data_importer::SourcePr
profiles.push_back(bookmarks_profile);
}
+ for (auto& profile : profiles) {
+ profile.services_supported &= ~(user_data_importer::PASSWORDS
+ | user_data_importer::AUTOFILL_FORM_DATA);
+ }
+
return profiles;
}
@@ -32,6 +32,16 @@
html_source->AddLocalizedString(
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
--- a/components/regional_capabilities/regional_capabilities_service.cc
+++ b/components/regional_capabilities/regional_capabilities_service.cc
@@ -258,6 +258,7 @@ bool RegionalCapabilitiesService::IsInSe
}
bool RegionalCapabilitiesService::IsInEeaCountry() {
+ return true;
// Feature behaviour was directly based on the current country, as a
// decentralised way to express a concept we are now framing as "program
// settings". Here we check for the program reference directly as command line
--- a/components/regional_capabilities/regional_capabilities_utils.cc
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
@@ -55,7 +55,7 @@ void ShufflePrepopulatedEngines(std::vec
@@ -152,7 +152,7 @@
+ Allow downloading dictionary files for spell checking
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
+ When enabled, Helium will fetch dictionary files used for spell checking when requested.
+ Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
+ </message>
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
Use your own instance of Helium services
+44 -3
View File
@@ -9,15 +9,33 @@
// The delay before showing the drop target for the side-by-side drag-and-drop
// entrypoint.
@@ -128,7 +128,7 @@ BASE_FEATURE_PARAM(base::TimeDelta,
@@ -128,22 +128,22 @@ BASE_FEATURE_PARAM(base::TimeDelta,
kSideBySideShowDropTargetDelay,
&kSideBySide,
"drop_target_show_delay",
- base::Milliseconds(500));
+ base::Milliseconds(200));
+ base::Milliseconds(250));
BASE_FEATURE_PARAM(int,
kSideBySideDropTargetMinWidth,
&kSideBySide,
"drop_target_min_width",
- 120);
+ 50);
BASE_FEATURE_PARAM(int,
kSideBySideDropTargetMaxWidth,
&kSideBySide,
"drop_target_max_width",
- 360);
+ 80);
BASE_FEATURE_PARAM(int,
kSideBySideDropTargetTargetWidthPercentage,
&kSideBySide,
"drop_target_width_percentage",
- 30);
+ 5);
constexpr base::FeatureParam<MiniToolbarActiveConfiguration>::Option
kMiniToolbarActiveConfigurationOptions[] = {
@@ -169,7 +169,7 @@ BASE_FEATURE_PARAM(int,
// startup.
BASE_FEATURE(kSideBySideSessionRestore,
@@ -364,10 +382,33 @@
+constexpr int kOuterPadding = 0;
constexpr int kIconSize = 24;
-constexpr int kAnimationDurationMs = 450;
+constexpr int kAnimationDurationMs = 250;
+constexpr int kAnimationDurationMs = 300;
} // namespace
@@ -60,13 +60,8 @@ MultiContentsDropTargetView::MultiConten
views::FlexSpecification(views::MinimumFlexSizeRule::kScaleToZero,
views::MaximumFlexSizeRule::kUnbounded));
- SetBackground(views::CreateSolidBackground(ui::kColorPrimaryBackground));
-
auto inner_container = std::make_unique<views::View>();
- inner_container->SetBackground(views::CreateRoundedRectBackground(
- ui::kColorSysSurface3, kInnerCornerRadius));
-
inner_container->SetLayoutManager(std::make_unique<views::FlexLayout>())
->SetOrientation(views::LayoutOrientation::kVertical)
.SetMainAxisAlignment(views::LayoutAlignment::kCenter)
@@ -169,7 +164,7 @@ bool MultiContentsDropTargetView::Should
void MultiContentsDropTargetView::OnThemeChanged() {
views::View::OnThemeChanged();
- SkColor primary_color = GetColorProvider()->GetColor(ui::kColorSysPrimary);
+ SkColor primary_color = GetColorProvider()->GetColor(ui::kColorMenuIcon);
ui::ImageModel icon_image_model =
ui::ImageModel::FromVectorIcon(kAddCircleIcon, primary_color, kIconSize);
icon_view_->SetImage(icon_image_model);
--- a/components/omnibox/common/omnibox_features.cc
+++ b/components/omnibox/common/omnibox_features.cc
@@ -380,7 +380,7 @@ BASE_FEATURE(kPreconnectNonSearchOmnibox
@@ -1,14 +1,68 @@
--- a/components/policy/core/common/helium_opinionated_policy_provider.cc
+++ b/components/policy/core/common/helium_opinionated_policy_provider.cc
@@ -25,6 +25,11 @@ void HopProvider::RefreshPolicies(Policy
@@ -12,6 +12,7 @@
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
+#include "components/helium_services/extension_ids.h"
namespace policy {
void Set(PolicyMap& map, const std::string& name, PolicyLevel level, base::Value value) {
@@ -25,6 +26,11 @@ void HopProvider::RefreshPolicies(Policy
Set(policy_map, policy::key::kPasswordManagerEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
Set(policy_map, policy::key::kPasswordManagerPasskeysEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
+ base::Value::List preinstalled_extensions;
+ preinstalled_extensions.Append("cjpalhdlnbpafiamejdnhcphjbkeiagm"); // uBlock Origin
+ preinstalled_extensions.Append(kUBlockOriginId); // uBlock Origin
+ Set(policy_map, key::kExtensionInstallForcelist, POLICY_LEVEL_RECOMMENDED,
+ base::Value(std::move(preinstalled_extensions)));
+
UpdatePolicy(std::move(bundle));
}
--- /dev/null
+++ b/components/helium_services/extension_ids.h
@@ -0,0 +1,11 @@
+// Copyright 2025 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
+
+#ifndef COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
+#define COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
+
+inline constexpr char kUBlockOriginId[] =
+ "cjpalhdlnbpafiamejdnhcphjbkeiagm";
+
+#endif /* COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_ */
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -30,6 +30,7 @@
#include "build/build_config.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/crx_file/id_util.h"
+#include "components/helium_services/extension_ids.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/common/buildflags.h"
@@ -707,11 +708,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
std::string_view pref_key,
bool* out_value) const {
const base::Value::Dict* ext = GetExtensionPref(extension_id);
- if (!ext) {
- return false;
+ std::optional<bool> value;
+
+ if (ext) {
+ value = ext->FindBoolByDottedPath(pref_key);
+ }
+
+ if (!value.has_value()
+ && extension_id == kUBlockOriginId
+ && pref_key == kPrefIncognitoEnabled) {
+ value = true;
}
- std::optional<bool> value = ext->FindBoolByDottedPath(pref_key);
if (!value) {
return false;
}
@@ -1,5 +1,14 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -240,7 +240,7 @@
<message name="IDS_SETTINGS_RESET_TO_DEFAULT" desc="Name of the control which resets a browser setting back to the default value">
Reset to default
</message>
- <if expr="not is_linux">
+ <if expr="True">
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
Reset to default theme
</message>
@@ -269,6 +269,9 @@
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
Automatically pin new tab groups created on any device to the bookmarks bar
@@ -21,6 +30,16 @@
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
@@ -553,9 +553,7 @@ void AddAppearanceStrings(content::WebUI
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
#endif
-#if !BUILDFLAG(IS_LINUX)
{"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME},
-#endif
{"resetToolbarToDefault", IDS_SETTINGS_RESET_TOOLBAR_TO_DEFAULT},
#if BUILDFLAG(IS_LINUX)
{"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS},
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
@@ -46,7 +46,6 @@
+3 -3
View File
@@ -40,7 +40,7 @@
#include "third_party/omnibox_proto/types.pb.h"
class ClipboardProvider;
@@ -551,6 +552,8 @@ class AutocompleteController : public Au
@@ -553,6 +554,8 @@ class AutocompleteController : public Au
// A list of all providers.
Providers providers_;
@@ -51,7 +51,7 @@
raw_ptr<HistoryQuickProvider> history_quick_provider_;
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -92,6 +92,7 @@
@@ -94,6 +94,7 @@
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
#include "components/search_engines/search_engine_type.h"
#include "components/search_engines/template_url.h"
@@ -59,7 +59,7 @@
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "components/strings/grit/components_strings.h"
@@ -1914,7 +1915,21 @@ void AutocompleteController::UpdateKeywo
@@ -1916,7 +1917,21 @@ void AutocompleteController::UpdateKeywo
// - For contextual search matches, the description indicates the
// alternative UX because they're opened in the side panel.
i->description = template_url->AdjustedShortNameForLocaleDirection();
+2
View File
@@ -108,6 +108,8 @@ extra/ungoogled-chromium/disable-ai-search-shortcuts.patch
extra/brave/chrome-importer-files.patch
extra/brave/custom-importer.patch
helium/core/add-zen-importer.patch
helium/core/disable-unsupported-importers.patch
helium/core/fix-building-without-safebrowsing.patch
helium/core/services-prefs.patch
helium/core/override-chrome-protocol.patch
+1 -1
View File
@@ -1 +1 @@
1
3