Compare commits

...

15 Commits

Author SHA1 Message Date
wukko 851ffe6c62 revision: bump to 13 2025-09-26 13:41:19 +03:00
wukko c7434cb02e merge: update to ungoogled-chromium 140.0.7339.213 2025-09-26 11:14:35 +03:00
Blaise 62c15e6720 Update to Chromium 140.0.7339.213 2025-09-25 16:22:07 -05:00
jj a6c3e9365c repo: add issue and pr templates (#84) 2025-09-25 09:30:14 +02:00
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
13 changed files with 175 additions and 99 deletions
+77
View File
@@ -0,0 +1,77 @@
name: Bug Report
description: Report a bug building or running Helium
labels: ["bug"]
title: "[Bug]: "
body:
- type: markdown
attributes:
value: |
Before submitting this bug report, please search existing issues and make sure it's unique.
If you ignore this text, and create this one, you will be permanently banned from
interacting with the entire organization.
If you suspect your bug might be specific to a certain platform (e.g. macOS),
please submit it to the relevant repository instead of the root "helium" repo.
- type: dropdown
id: os
attributes:
label: Operating system
description: The OS you are running Helium on
options:
- macOS
- Linux
- Windows
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: Can be copied from helium://settings/help
validations:
required: true
- type: checkboxes
attributes:
label: Have you tested that this is not an upstream issue or an issue with your configuration?
options:
- label: I have tried reproducing this issue in Chrome and it could not be reproduced there
- label: I have tried reproducing this issue in ungoogled-chromium and it could not be reproduced there
- label: I have tried reproducing this issue in Helium with a new and empty profile using `--user-data-dir` command line argument and it could not be reproduced there
- type: input
id: description
attributes:
label: Description
description: A clear and concise description (in one line) of what the bug is.
validations:
required: true
- type: textarea
id: repro
attributes:
label: How to Reproduce?
description: Steps to reproduce the behavior
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual behavior
description: A clear and concise description of what actually happened
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
+1
View File
@@ -0,0 +1 @@
blank_issues_enabled: false
@@ -0,0 +1,49 @@
name: Feature request
description: Suggest an idea
labels: ["feat", "pending"]
title: "[FR]: "
body:
- type: markdown
attributes:
value: |
Before submitting this request, please search existing issues and make sure it's unique.
If you ignore this text, and create this one, you will be permanently banned from
interacting with the entire organization.
Please do not use AI for writing your request's description, no one wishes
to read that and thus your request will be closed.
If your request is for a platform-specific feature (e.g. for macOS), please
submit it to the relevant platform repo instead of the generic "helium" repo.
- type: input
id: description
attributes:
label: Description
description: A clear and concise description (in one line) of what your suggestion is
validations:
required: true
- type: checkboxes
attributes:
label: Who's implementing?
options:
- label: I'm willing to implement this feature myself
- type: textarea
id: prob
attributes:
label: The problem
description: Please describe the problem you are solving or new feature you're suggesting
placeholder: I'm always frustrated when [...] happens
validations:
required: true
- type: textarea
id: sol
attributes:
label: Possible solutions
description: Please describe possible solution(-s) to your problem
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the feature request here
+17
View File
@@ -0,0 +1,17 @@
---
name: Blank issue
about: Create a new issue from scratch
---
For your issue to not get closed without review, please confirm that:
- [ ] This issue does not fit into any of the predefined categories, which is
why I am making a blank issue from scratch.
- [ ] I am not reporting a security vulnerability through this issue, because
I am aware that there is an appropriate channel for that.
- [x] I understand that I will be permanently banned from interacting with this
organization if I lied by checking any of these checkboxes.
---
[your issue text goes here]
+18
View File
@@ -0,0 +1,18 @@
For your pull request to not get closed without review, please confirm that:
- [ ] An issue exists where the maintainers agreed that this should be implemented.
If such issue did not exist before, I opened one.
- [ ] I tested that my contribution works locally, and does not break anything,
otherwise I have marked my PR as draft.
- [ ] If my contribution is non-trivial, I did not use AI to write most of it.
- [x] I understand that I will be permanently banned from interacting with this
organization if I lied by checking any of these checkboxes.
Tested on (check one or more):
- [ ] Windows
- [ ] macOS
- [ ] Linux
---
[short description of your PR goes here]
+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.213
+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
13