Skip to content

Commit

Permalink
Update to ungoogled-chromium 118.0.5993.88 (#129)
Browse files Browse the repository at this point in the history
* Update to ungoogled-chromium 118.0.5993.88

* Skip unused dirs and do verbose patch validation
  • Loading branch information
hlgsdx authored Oct 19, 2023
1 parent 873bcba commit 3cd7942
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ validate_with_source_task:
- mkdir chromium_download_cache
- ./ungoogled-chromium/utils/downloads.py retrieve -i ungoogled-chromium/downloads.ini -c chromium_download_cache
unpack_source_script:
- ./ungoogled-chromium/utils/downloads.py unpack -i ungoogled-chromium/downloads.ini -c chromium_download_cache chromium_src
- ./ungoogled-chromium/utils/downloads.py unpack --skip-unused -i ungoogled-chromium/downloads.ini -c chromium_download_cache chromium_src
validate_patches_script:
- ./ungoogled-chromium/devutils/validate_patches.py -l chromium_src -p patches -s patches/series
- ./ungoogled-chromium/devutils/validate_patches.py -l chromium_src -v -p patches -s patches/series

# vim: set expandtab shiftwidth=4 softtabstop=4:
8 changes: 4 additions & 4 deletions downloads.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ output_path = third_party/google_toolbox_for_mac/src

# Pre-built LLVM toolchain for convenience
[llvm]
version = 17.0.0
url = https://github.com/hlgsdx/llvm-macos-buildbot/releases/download/%(version)s-rc4/clang+llvm-%(version)s-x86-64-apple-darwin22.0.tar.gz
download_filename = clang+llvm-%(version)s-x86-64-apple-darwin22.0.tar.gz
version = 17.0.2
url = https://github.com/hlgsdx/llvm-macos-buildbot/releases/download/%(version)s/clang+llvm-%(version)s-x86-64-apple-darwin22.0.tar.xz
download_filename = clang+llvm-%(version)s-x86-64-apple-darwin22.0.tar.xz
strip_leading_dirs = clang+llvm-%(version)s-x86-64-apple-darwin22.0
sha512 = 238a3a6f8e38950251d674e11c5b88bf4b6a21c2a8eab30b8fccea4130b9238157279fb4fb7d8bc2ca356559589178aad28f579d2f96d0b2c62419d1ebf9b175
sha512 = b0482b7fd2004ac7c09bf18026b786e0f366984fa70efa84a88568a16b414dd6cc7329ce10d96b3df6d6da7edd75ca5a2b310d2878ca1b30054707a61010f6f2
output_path = third_party/llvm-build/Release+Asserts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1510,7 +1510,7 @@ config("compiler_deterministic") {
@@ -1514,7 +1514,7 @@ config("compiler_deterministic") {
}

config("clang_revision") {
Expand All @@ -11,12 +11,12 @@
"--verify-version=$clang_version",
--- a/build/toolchain/toolchain.gni
+++ b/build/toolchain/toolchain.gni
@@ -38,7 +38,7 @@ if (generate_linker_map) {
}
@@ -39,7 +39,7 @@ if (generate_linker_map) {

declare_args() {
- clang_version = "18"
+ clang_version = "17"
}

# Extension for shared library files (including leading dot).
if (llvm_force_head_revision) {
- clang_version = "18"
+ clang_version = "17"
} else {
# TODO(crbug.com/1467585): Remove in the next clang roll
clang_version = "17"
14 changes: 7 additions & 7 deletions patches/ungoogled-chromium/macos/disable-crashpad-handler.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
const std::map<std::string, std::string>& annotations,
const std::vector<std::string>& arguments,
bool restartable) {
- base::mac::ScopedMachReceiveRight receive_right(
- base::apple::ScopedMachReceiveRight receive_right(
- NewMachPort(MACH_PORT_RIGHT_RECEIVE));
- if (!receive_right.is_valid()) {
- return base::mac::ScopedMachSendRight();
- return base::apple::ScopedMachSendRight();
- }
-
- mach_port_t port;
Expand All @@ -21,9 +21,9 @@
- &right_type);
- if (kr != KERN_SUCCESS) {
- MACH_LOG(ERROR, kr) << "mach_port_extract_right";
- return base::mac::ScopedMachSendRight();
- return base::apple::ScopedMachSendRight();
- }
- base::mac::ScopedMachSendRight send_right(port);
- base::apple::ScopedMachSendRight send_right(port);
- DCHECK_EQ(port, receive_right.get());
- DCHECK_EQ(right_type,
- implicit_cast<mach_msg_type_name_t>(MACH_MSG_TYPE_PORT_SEND));
Expand All @@ -47,7 +47,7 @@
- std::move(receive_right),
- handler_restarter.get(),
- false)) {
- return base::mac::ScopedMachSendRight();
- return base::apple::ScopedMachSendRight();
- }
-
- if (handler_restarter &&
Expand All @@ -61,7 +61,7 @@
- // handler_restarter will be released when this function returns.
-
- return send_right;
+ return base::mac::ScopedMachSendRight();
+ return base::apple::ScopedMachSendRight();
}

// NotifyServer::DefaultInterface:
Expand All @@ -72,7 +72,7 @@
- // The “restartable” behavior can only be selected on OS X 10.10 and later. In
- // previous OS versions, if the initial client were to crash while attempting
- // to restart the handler, it would become an unkillable process.
- base::mac::ScopedMachSendRight exception_port(HandlerStarter::InitialStart(
- base::apple::ScopedMachSendRight exception_port(HandlerStarter::InitialStart(
- handler,
- database,
- metrics_dir,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -1298,7 +1298,7 @@ if (is_win) {
@@ -1294,7 +1294,7 @@ if (is_win) {

# TOOD(crbug/1163903#c8) - thakis@ look into why profile and coverage
# instrumentation adds these symbols in different orders
Expand Down
35 changes: 18 additions & 17 deletions patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1907,10 +1907,6 @@ static_library("browser") {
@@ -1923,10 +1923,6 @@ static_library("browser") {
"//chrome/browser/ui",
"//chrome/browser/storage_access_api",
"//chrome/browser/top_level_storage_access_api:permissions",
Expand All @@ -13,7 +13,7 @@

# TODO(crbug.com/1030821): Eliminate usages of browser.h from Media Router.
"//chrome/browser/media/router",
@@ -2022,7 +2018,6 @@ static_library("browser") {
@@ -2039,7 +2035,6 @@ static_library("browser") {
"//chrome/browser/resource_coordinator:mojo_bindings",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/accessibility:resources",
Expand All @@ -23,7 +23,7 @@
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -746,9 +746,6 @@ static_library("extensions") {
@@ -759,9 +759,6 @@ static_library("extensions") {

# TODO(crbug.com/1065748): Remove this circular dependency.
"//chrome/browser/web_applications/extensions",
Expand All @@ -33,7 +33,7 @@
]

# Since browser and browser_extensions actually depend on each other,
@@ -761,8 +758,6 @@ static_library("extensions") {
@@ -774,8 +771,6 @@ static_library("extensions") {
"//chrome/common",
"//chrome/common/extensions/api",
"//components/omnibox/browser",
Expand All @@ -42,15 +42,15 @@
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/signin/core/browser",
"//components/translate/content/browser",
@@ -803,7 +798,6 @@ static_library("extensions") {
@@ -816,7 +811,6 @@ static_library("extensions") {
"//chrome/browser/profiles:profile",
"//chrome/browser/resource_coordinator:intervention_policy_database_proto",
"//chrome/browser/resource_coordinator:mojo_bindings",
- "//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:metrics_collector",
"//chrome/browser/ui/tabs:tab_enums",
"//chrome/browser/web_applications",
@@ -884,12 +878,6 @@ static_library("extensions") {
@@ -898,12 +892,6 @@ static_library("extensions") {
"//components/proxy_config",
"//components/reading_list/core",
"//components/resources",
Expand All @@ -65,23 +65,23 @@
"//components/services/patch/content",
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -389,7 +389,6 @@ static_library("ui") {
"//chrome/browser/headless",
@@ -392,7 +392,6 @@ static_library("ui") {
"//components/cross_device/logging",
"//components/dom_distiller/core",
"//components/paint_preview/buildflags",
- "//components/safe_browsing:buildflags",
"//components/sync",
"//components/sync_user_events",
"//components/translate/content/browser",
@@ -434,7 +433,6 @@ static_library("ui") {
@@ -436,7 +435,6 @@ static_library("ui") {
"//chrome/browser/profiling_host",
"//chrome/browser/resources:dev_ui_resources",
"//chrome/browser/resources:resources",
- "//chrome/browser/safe_browsing",
"//chrome/browser/share",
"//chrome/browser/storage_access_api",
"//chrome/browser/ui/side_panel:side_panel_enums",
@@ -571,16 +569,7 @@ static_library("ui") {
@@ -574,17 +572,8 @@ static_library("ui") {
"//components/reading_list/features:flags",
"//components/renderer_context_menu",
"//components/resources",
Expand All @@ -90,6 +90,7 @@
"//components/safe_browsing/content/browser/web_ui",
- "//components/safe_browsing/core/browser/db:database_manager",
- "//components/safe_browsing/core/browser/db:util",
"//components/safe_browsing/core/browser/hashprefix_realtime:hash_realtime_utils",
- "//components/safe_browsing/core/browser/password_protection:password_protection_metrics_util",
- "//components/safe_browsing/core/browser/tailored_security_service",
- "//components/safe_browsing/core/common",
Expand All @@ -98,15 +99,15 @@
"//components/schema_org/common:improved_mojom",
"//components/search",
"//components/search_engines",
@@ -689,7 +678,6 @@ static_library("ui") {
@@ -693,7 +682,6 @@ static_library("ui") {
# TODO(crbug.com/1158905): Remove this circular dependency.
"//chrome/browser/devtools",
"//chrome/browser/favicon",
- "//chrome/browser/safe_browsing",
"//chrome/browser/profiling_host",
"//chrome/browser/ui/webui:configs",
]
@@ -1882,8 +1870,6 @@ static_library("ui") {
@@ -1887,8 +1875,6 @@ static_library("ui") {
"//chrome/browser/new_tab_page/modules/recipes:mojo_bindings",
"//chrome/browser/new_tab_page/modules/v2/history_clusters:mojo_bindings",
"//chrome/browser/profile_resetter:profile_reset_report_proto",
Expand All @@ -115,15 +116,15 @@
"//chrome/browser/support_tool:support_tool_proto",
"//chrome/browser/ui/color:color_headers",
"//chrome/browser/ui/color:mixers",
@@ -4268,7 +4254,6 @@ static_library("ui") {
@@ -4316,7 +4302,6 @@ static_library("ui") {
]
deps += [
"//chrome/browser:titlebar_config",
- "//chrome/browser/safe_browsing/chrome_cleaner:public",
"//chrome/browser/ui/startup:buildflags",
"//chrome/browser/win/conflicts:module_info",
"//chrome/credential_provider/common:common_constants",
@@ -6277,26 +6262,6 @@ static_library("ui") {
@@ -6330,26 +6315,6 @@ static_library("ui") {
}
}

Expand Down Expand Up @@ -152,7 +153,7 @@
}
--- a/chrome/browser/safe_browsing/download_protection/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection/download_protection_service.cc
@@ -428,8 +428,12 @@ void DownloadProtectionService::ShowDeta
@@ -434,8 +434,12 @@ void DownloadProtectionService::ShowDeta
Profile* profile = Profile::FromBrowserContext(
content::DownloadItemUtils::GetBrowserContext(item));
if (profile &&
Expand All @@ -167,7 +168,7 @@
learn_more_url = GURL(chrome::kAdvancedProtectionDownloadLearnMoreURL);
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -983,9 +983,13 @@ std::u16string DownloadItemNotification:
@@ -996,9 +996,13 @@ std::u16string DownloadItemNotification:
}
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT: {
bool requests_ap_verdicts =
Expand Down Expand Up @@ -247,7 +248,7 @@
case download::DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST:
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -6873,13 +6873,9 @@ test("unit_tests") {
@@ -6944,13 +6944,9 @@ test("unit_tests") {
"//chrome/browser/renderer_host:history_swiper",
"//chrome/browser/updater:browser_updater_client",
"//chrome/common/notifications",
Expand Down
2 changes: 1 addition & 1 deletion ungoogled-chromium
Submodule ungoogled-chromium updated 67 files
+2 −2 .cirrus.yml
+3 −3 .github/workflows/new_version_check.yml
+1 −1 chromium_version.txt
+266 −102 domain_substitution.list
+48 −42 patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch
+1 −1 patches/core/inox-patchset/0003-disable-autofill-download-manager.patch
+1 −1 patches/core/inox-patchset/0005-disable-default-extensions.patch
+1 −1 patches/core/inox-patchset/0021-disable-rlz.patch
+4 −9 patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch
+1 −1 patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch
+2 −2 patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch
+3 −3 patches/core/ungoogled-chromium/block-trk-and-subdomains.patch
+3 −3 patches/core/ungoogled-chromium/disable-crash-reporter.patch
+2 −2 patches/core/ungoogled-chromium/disable-mei-preload.patch
+6 −6 patches/core/ungoogled-chromium/disable-privacy-sandbox.patch
+1 −1 patches/core/ungoogled-chromium/disable-untraceable-urls.patch
+18 −18 patches/core/ungoogled-chromium/disable-web-environment-integrity.patch
+1 −1 patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch
+25 −25 patches/core/ungoogled-chromium/disable-webstore-urls.patch
+1 −1 patches/core/ungoogled-chromium/doh-changes.patch
+155 −3 patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch
+208 −187 patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch
+359 −203 patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch
+2 −2 patches/core/ungoogled-chromium/toggle-translation-via-switch.patch
+40 −23 patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
+6 −6 patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch
+6 −6 patches/extra/bromite/flag-max-connections-per-host.patch
+9 −14 patches/extra/inox-patchset/0006-modify-default-prefs.patch
+6 −4 patches/extra/inox-patchset/0008-restore-classic-ntp.patch
+1 −1 patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
+1 −1 patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
+1 −1 patches/extra/iridium-browser/updater-disable-auto-update.patch
+9 −9 patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch
+2 −2 patches/extra/ungoogled-chromium/add-flag-for-disabling-link-drag.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-incognito-themes.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch
+8 −8 patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch
+5 −5 patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-to-disable-tls-grease.patch
+2 −2 patches/extra/ungoogled-chromium/add-flag-to-hide-extensions-menu.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-to-hide-fullscreen-exit-ui.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-to-hide-side-panel-button.patch
+2 −2 patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
+1 −1 patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
+1 −1 patches/extra/ungoogled-chromium/add-flags-for-existing-switches.patch
+11 −11 patches/extra/ungoogled-chromium/add-flags-for-referrer-customization.patch
+3 −3 patches/extra/ungoogled-chromium/add-suggestions-url-field.patch
+1 −1 patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch
+1 −1 patches/extra/ungoogled-chromium/default-webrtc-ip-handling-policy.patch
+1 −1 patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch
+2 −2 patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch
+3 −3 patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch
+2 −2 patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch
+3 −3 patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
+3 −3 patches/extra/ungoogled-chromium/first-run-page.patch
+1 −1 patches/extra/ungoogled-chromium/prepopulated-search-engines.patch
+1 −1 patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
+71 −10 patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
+206 −8 pruning.list
+32 −9 utils/_extraction.py
+7 −2 utils/downloads.py

0 comments on commit 3cd7942

Please sign in to comment.