Compare commits

...

11 Commits

Author SHA1 Message Date
wukko 241320ecf8 revision: bump to 12 2025-09-24 20:06:12 +03:00
wukko 53fb10ad9f extras: update onboarding 2025-09-24 20:05:43 +03:00
wukko 35a97e939a merge: update to ungoogled-chromium 140.0.7339.207 2025-09-24 20:03:26 +03:00
jj 63a7f2a8f6 patches/licenses: fix typo'd helium url in credits
wishful thinking i guess
2025-09-24 09:15:32 +00:00
jj ec1d464f81 patches/ublock-sources: enable use_brotli
let's see if this does anything for release size
2025-09-24 09:15:27 +00:00
jj c0be4cb6f6 patches/ublock-sources: fix building on windows
hopefully
2025-09-24 09:15:17 +00:00
jj 643d756f99 patches/hop/setup: drop special handling for recommended extensions
we no longer use/need this since ublock is componentized
2025-09-24 09:15:08 +00:00
Blaise f4bff59760 Update to Chromium 140.0.7339.207 2025-09-23 16:12:47 -05:00
jj 65b83952ab revision: bump to 11 2025-09-23 10:16:39 +00:00
jj f222e11317 patches/l10n: fix building on windows 2025-09-23 10:13:23 +00:00
jj 0fb8ca5007 ci: add extras to download list (#80) 2025-09-22 22:09:32 +00:00
8 changed files with 13 additions and 99 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ runs:
mkdir -p build/{src,download_cache}
for file in "$HELIUM_DIR/downloads.ini" "$PLATFORM_DIR/downloads.ini"; do
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/extras.ini" "$PLATFORM_DIR/downloads.ini"; do
if ! [ -f "$file" ]; then continue; fi
run_upstream utils/downloads.py retrieve \
+1 -1
View File
@@ -1 +1 @@
140.0.7339.185
140.0.7339.207
+2 -2
View File
@@ -7,10 +7,10 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202509221633
version = 202509241653
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 = a32a0f55a0d8157e50613c1dc16bba16940d3610c1a7bb90a9d5e08dac4e6483
sha256 = fb23110d391419fbbbe2c8f7c3d96765b9b50aa1c20025343ab7f8bd59f9e7ab
output_path = ./components/helium_onboarding
# If you are bumping this, you *NEED* to re-strip the assets.json
@@ -110,7 +110,7 @@
+ for (const auto& fallback_locale : all_fallback_locales) {
+ base::FilePath this_locale_path =
+ locale_path.AppendASCII(fallback_locale)
+ .AppendASCII(extensions::kMessagesFilename);
+ .Append(extensions::kMessagesFilename);
+ int resource_id = 0;
+
+ if (!manager->IsComponentExtensionResource(
@@ -17,7 +17,7 @@
+Patched out remote URLs from assets.json, patched in public key into manifest
--- /dev/null
+++ b/third_party/ublock/BUILD.gn
@@ -0,0 +1,50 @@
@@ -0,0 +1,51 @@
+# 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.
@@ -56,6 +56,7 @@
+
+ # Required because the .grd is generated.
+ enable_input_discovery_for_gn_analyze = false
+ use_brotli = true
+
+ output_dir = "$target_gen_dir/resources"
+
@@ -79,14 +80,14 @@
+from sys import argv
+from pathlib import Path
+
+ublock_src = argv[1]
+ublock_src = Path(argv[1])
+out_file = argv[2]
+
+with open(out_file, 'w') as f:
+ f.write(json.dumps(
+ { "base_dir": ublock_src,
+ "files": [ str((root / file).relative_to(ublock_src))
+ for root, _, files in Path(ublock_src).walk()
+ { "base_dir": ublock_src.as_posix(),
+ "files": [ (root / file).relative_to(ublock_src).as_posix()
+ for root, _, files in ublock_src.walk()
+ for file in files ]
+ }
+ ))
-87
View File
@@ -217,90 +217,3 @@
<message name="IDS_POLICY_SOURCE_ACTIVE_DIRECTORY" desc="Indicates that the policy originates from a local server, e.g. Samba or Active Directory.">
<ph name="MICROSOFT_ACTIVE_DIRECTORY">Local Server</ph>
</message>
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -640,7 +640,7 @@ void ExtensionManagement::Refresh() {
const base::Value::List* denied_list_pref =
LoadListPreference(pref_names::kInstallDenyList, false);
const base::Value::Dict* forced_list_pref =
- LoadDictPreference(pref_names::kInstallForceList, true);
+ LoadDictPreference(pref_names::kInstallForceList, false);
const base::Value::List* install_sources_pref =
LoadListPreference(pref_names::kAllowedInstallSites, true);
const base::Value::List* allowed_types_pref =
@@ -657,6 +657,8 @@ void ExtensionManagement::Refresh() {
LoadPreference(pref_names::kExtensionUnpublishedAvailability,
/*force_managed=*/true, base::Value::Type::INTEGER);
+ bool forcelist_is_forced = IsPreferenceManaged(pref_names::kInstallForceList);
+
// Reset all settings.
global_settings_ = std::make_unique<internal::GlobalSettings>();
settings_by_id_.clear();
@@ -707,7 +709,7 @@ void ExtensionManagement::Refresh() {
}
}
- UpdateForcedExtensions(forced_list_pref);
+ UpdateForcedExtensions(forced_list_pref, forcelist_is_forced);
if (install_sources_pref) {
global_settings_->install_sources = URLPatternSet();
@@ -902,6 +904,16 @@ void ExtensionManagement::LoadDeferredEx
DCHECK(found) << "Couldn't find dictionary for extension in deferred_ids_.";
}
+bool ExtensionManagement::IsPreferenceManaged(const char* pref_name) const {
+ if (!pref_service_)
+ return false;
+
+ const PrefService::Preference* pref =
+ pref_service_->FindPreference(pref_name);
+
+ return pref && pref->IsManaged();
+}
+
const base::Value* ExtensionManagement::LoadPreference(
const char* pref_name,
bool force_managed,
@@ -983,7 +995,7 @@ base::Value::Dict ExtensionManagement::G
}
void ExtensionManagement::UpdateForcedExtensions(
- const base::Value::Dict* extension_dict) {
+ const base::Value::Dict* extension_dict, bool is_forced) {
if (!extension_dict)
return;
@@ -1009,7 +1021,7 @@ void ExtensionManagement::UpdateForcedEx
continue;
}
internal::IndividualSettings* by_id = AccessById(it.first);
- by_id->installation_mode = ManagedInstallationMode::kForced;
+ by_id->installation_mode = is_forced ? ManagedInstallationMode::kForced : ManagedInstallationMode::kRecommended;
by_id->update_url = *update_url;
install_stage_tracker->ReportInstallationStage(
it.first, InstallStageTracker::Stage::CREATED);
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -263,6 +263,9 @@ class ExtensionManagement : public Keyed
// Loads the deferred settings information for `extension_id`.
void LoadDeferredExtensionSetting(const std::string& extension_id);
+ // Checks whether a preference is managed.
+ bool IsPreferenceManaged(const char* pref_name) const;
+
// Loads preference with name `pref_name` and expected type `expected_type`.
// If `force_managed` is true, only loading from the managed preference store
// is allowed. Returns NULL if the preference is not present, not allowed to
@@ -298,7 +301,9 @@ class ExtensionManagement : public Keyed
ManagedInstallationMode installation_mode) const;
// Helper to update `extension_dict` for forced installs.
- void UpdateForcedExtensions(const base::Value::Dict* extension_dict);
+ void UpdateForcedExtensions(
+ const base::Value::Dict* extension_dict,
+ bool is_forced);
// Helper function to access `settings_by_id_` with `id` as key.
// Adds a new IndividualSettings entry to `settings_by_id_` if none exists for
+1 -1
View File
@@ -3,7 +3,7 @@
@@ -0,0 +1,14 @@
+Name: Helium
+Short Name: helium
+URL: https://github.com/imput/helium
+URL: https://github.com/imputnet/helium
+License: GPL-3.0-only
+License File: ../../components/helium_onboarding/LICENSE
+Shipped: yes
+1 -1
View File
@@ -1 +1 @@
10
12