Skip to content

Commit

Permalink
Merge pull request #67 from Zoraver/master
Browse files Browse the repository at this point in the history
Upgrade to ungoogled-chromium 87.0.4280.67-1
  • Loading branch information
Eloston authored Nov 28, 2020
2 parents 57ee158 + b9a1758 commit b7c5983
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 65 deletions.
1 change: 0 additions & 1 deletion flags.macos.gn
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
blink_symbol_level=0
chrome_pgo_phase=0
enable_iterator_debugging=false
enable_swiftshader=true
fatal_linker_warnings=false
Expand Down
2 changes: 1 addition & 1 deletion patches/debian_buster/fixes/as-needed.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>

--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -396,7 +396,7 @@ config("compiler") {
@@ -392,7 +392,7 @@ config("compiler") {
if (!using_sanitizer) {
ldflags += [
"-Wl,-z,defs",
Expand Down
10 changes: 1 addition & 9 deletions patches/debian_buster/fixes/mojo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>

--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -185,7 +185,6 @@ if (support_web_tests) {
"//content/browser:for_content_tests", # For non-component builds.
"//content/public/browser", # For component builds.
"//content/test:blink_test_browser_support",
- "//content/test:mojo_web_test_bindings",
"//content/test:test_support",
"//device/bluetooth:fake_bluetooth",
"//device/bluetooth:mocks",
@@ -505,7 +504,6 @@ static_library("content_shell_lib") {
@@ -226,7 +226,6 @@ static_library("content_shell_lib") {
"//content/app/resources",
"//content/public/common",
"//content/public/common:service_names",
Expand Down
4 changes: 2 additions & 2 deletions patches/debian_buster/warnings/int-in-bool-context.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ author: Michael Gilbert <mgilbert@debian.org>
filter_->CopyMem16x16(mb_src, stride_src, mb_dst, stride_dst);
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -16520,7 +16520,8 @@ bool GLES2DecoderImpl::GetUniformSetup(G
@@ -16519,7 +16519,8 @@ bool GLES2DecoderImpl::GetUniformSetup(G
}
uint32_t checked_size = 0;
if (!SizedResult<T>::ComputeSize(num_elements).AssignIfValid(&checked_size)) {
Expand All @@ -26,7 +26,7 @@ author: Michael Gilbert <mgilbert@debian.org>
if (!result) {
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
@@ -318,15 +318,16 @@ void RenderWidgetHostViewBase::SetBackgr
@@ -294,15 +294,16 @@ void RenderWidgetHostViewBase::SetBackgr
if (default_background_color_ == color)
return;

Expand Down
1 change: 0 additions & 1 deletion patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ungoogled-chromium/macos/disable-symbol-order-verification.patch
ungoogled-chromium/macos/disable-crashpad-handler.patch
ungoogled-chromium/macos/fix-disabling-safebrowsing.patch
ungoogled-chromium/macos/fix-visibility.patch
ungoogled-chromium/macos/suppress-newer-clang-warning-flags.patch
ungoogled-chromium/macos/fix-dsymutil.patch
ungoogled-chromium/macos/fix-clang-format-path.patch
ungoogled-chromium/fix-node-path.patch
21 changes: 11 additions & 10 deletions patches/ungoogled-chromium/macos/disable-crashpad-handler.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/third_party/crashpad/crashpad/client/crashpad_client_mac.cc
+++ b/third_party/crashpad/crashpad/client/crashpad_client_mac.cc
@@ -124,61 +124,7 @@ class HandlerStarter final : public Noti
@@ -125,61 +125,7 @@ class HandlerStarter final : public Noti
const std::map<std::string, std::string>& annotations,
const std::vector<std::string>& arguments,
bool restartable) {
Expand Down Expand Up @@ -65,21 +65,22 @@
}

// NotifyServer::DefaultInterface:
@@ -451,23 +397,7 @@ bool CrashpadClient::StartHandler(
@@ -452,24 +398,7 @@ bool CrashpadClient::StartHandler(
// Attachments are not implemented on MacOS yet.
DCHECK(attachments.empty());

- // 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(handler,
- database,
- metrics_dir,
- url,
- annotations,
- arguments,
- restartable && MacOSXMinorVersion() >= 10));
- base::mac::ScopedMachSendRight exception_port(HandlerStarter::InitialStart(
- handler,
- database,
- metrics_dir,
- url,
- annotations,
- arguments,
- restartable && (__MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_10 ||
- MacOSVersionNumber() >= 10'10'00)));
- if (!exception_port.is_valid()) {
- return false;
- }
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
@@ -1031,7 +1031,7 @@ if (is_win) {
@@ -1044,7 +1044,7 @@ if (is_win) {
assert(_framework_binary_path != "",
"Ignore configuration-dependent unused variable warning")

Expand Down
48 changes: 24 additions & 24 deletions patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1827,7 +1827,6 @@ static_library("browser") {
@@ -1838,7 +1838,6 @@ static_library("browser") {
allow_circular_includes_from = [
"//chrome/browser/ui",
"//chrome/browser/ui/webui/bluetooth_internals",
- "//chrome/browser/safe_browsing",
]

public_deps = [
@@ -1892,7 +1891,6 @@ static_library("browser") {
@@ -1913,7 +1912,6 @@ static_library("browser") {
"//chrome/browser/reputation:proto",
"//chrome/browser/resource_coordinator:mojo_bindings",
"//chrome/browser/resource_coordinator:tab_manager_features",
- "//chrome/browser/safe_browsing",
"//chrome/browser/sharing:buildflags",
"//chrome/browser/sharing/proto",
"//chrome/browser/storage_access_api:permissions",
@@ -4709,13 +4707,6 @@ static_library("browser") {
"//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/safe_browsing:url_lookup_service_factory",
"//chrome/browser/search/shopping_tasks:mojo_bindings",
@@ -5012,13 +5010,6 @@ static_library("browser") {
]
}

Expand All @@ -34,7 +34,7 @@
"crash_upload_list/crash_upload_list_crashpad.cc",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -733,9 +733,6 @@ static_library("extensions") {
@@ -728,9 +728,6 @@ static_library("extensions") {

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

# Since browser and browser_extensions actually depend on each other,
@@ -747,9 +744,7 @@ static_library("extensions") {
"//chrome/browser/extensions/api:api_registration",
@@ -743,9 +740,7 @@ static_library("extensions") {
"//chrome/common",
"//chrome/common/extensions/api",
"//components/omnibox/browser",
- "//components/safe_browsing/core:csd_proto",
"//components/safe_browsing/core:webprotect_proto",
- "//components/safe_browsing/core/db:util",
"//components/signin/core/browser",
"//components/translate/content/browser",
"//content/public/browser",
"//mojo/public/cpp/bindings",
@@ -777,7 +772,6 @@ static_library("extensions") {
"//chrome/browser/nearby_sharing/common",
@@ -773,7 +768,6 @@ static_library("extensions") {
"//chrome/browser/media/router/discovery",
"//chrome/browser/resource_coordinator:intervention_policy_database_proto",
"//chrome/browser/resource_coordinator:mojo_bindings",
- "//chrome/browser/safe_browsing",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications/components",

@@ -832,12 +826,6 @@ static_library("extensions") {
@@ -827,12 +821,6 @@ static_library("extensions") {
"//components/proxy_config",
"//components/rappor",
"//components/resources",
Expand All @@ -77,7 +77,7 @@
"//components/services/patch/content",
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -317,15 +317,9 @@ static_library("ui") {
@@ -313,15 +313,9 @@ static_library("ui") {
]
}

Expand All @@ -94,23 +94,23 @@
defines = []
libs = []

@@ -342,7 +336,6 @@ static_library("ui") {
@@ -338,7 +332,6 @@ static_library("ui") {
public_deps = [
"//chrome/services/machine_learning:machine_learning_tflite_buildflags",
"//components/dom_distiller/core",
- "//components/safe_browsing:buildflags",
"//components/sync",
"//components/sync_user_events",
"//components/translate/content/browser",
@@ -380,7 +373,6 @@ static_library("ui") {
@@ -375,7 +368,6 @@ static_library("ui") {
"//chrome/browser/resources/omnibox:resources",
"//chrome/browser/resources/quota_internals:quota_internals_resources",
"//chrome/browser/resources/usb_internals:resources",
- "//chrome/browser/safe_browsing",
"//chrome/browser/ui/webui/bluetooth_internals",
"//chrome/browser/ui/webui/downloads:mojo_bindings",
"//chrome/browser/ui/webui/interventions_internals:mojo_bindings",
@@ -482,17 +474,7 @@ static_library("ui") {
@@ -477,17 +469,7 @@ static_library("ui") {
"//components/reading_list/core",
"//components/renderer_context_menu",
"//components/resources",
Expand All @@ -128,23 +128,23 @@
"//components/schema_org/common:improved_mojom",
"//components/search",
"//components/search_engines",
@@ -1515,7 +1497,6 @@ static_library("ui") {
@@ -1510,7 +1492,6 @@ static_library("ui") {
"//chrome/browser/promo_browser_command:mojo_bindings",
"//chrome/browser/resource_coordinator:tab_metrics_event_proto",
"//chrome/browser/resource_coordinator/tab_ranker",
- "//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/search/shopping_tasks:mojo_bindings",
"//chrome/browser/ui/color:color_headers",
"//chrome/browser/ui/color:mixers",
"//chrome/browser/ui/webui/app_management:mojo_bindings",
@@ -3067,7 +3048,6 @@ static_library("ui") {
@@ -3142,7 +3123,6 @@ static_library("ui") {
"//ui/views/controls/webview",
]
deps += [
- "//chrome/browser/safe_browsing/chrome_cleaner:public",
"//chrome/browser/ui/startup:buildflags",
"//chrome/browser/win/conflicts:module_info",
"//chrome/credential_provider/common:common_constants",
@@ -4392,15 +4372,6 @@ static_library("ui") {
@@ -4462,15 +4442,6 @@ static_library("ui") {
}
}

Expand All @@ -162,7 +162,7 @@
}
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1467,10 +1467,10 @@ void Browser::OnDidBlockNavigation(
@@ -1475,10 +1475,10 @@ void Browser::OnDidBlockNavigation(
framebust_helper->AddBlockedUrl(blocked_url, base::BindOnce(on_click));
}
}
Expand Down Expand Up @@ -273,7 +273,7 @@
return l10n_util::GetStringFUTF16(
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -998,11 +998,13 @@ ui::ImageModel DownloadItemView::GetIcon
@@ -975,11 +975,13 @@ ui::ImageModel DownloadItemView::GetIcon
const auto danger_type = model_->GetDangerType();
switch (danger_type) {
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT:
Expand All @@ -289,7 +289,7 @@
case download::DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST:
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -5177,10 +5177,12 @@ ChromeContentBrowserClient::GetUrlLookup
@@ -5197,10 +5197,12 @@ ChromeContentBrowserClient::GetUrlLookup
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion patches/ungoogled-chromium/macos/fix-dsymutil.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
file_match = dsymutil_file_re.search(line)
--- a/build/toolchain/mac/BUILD.gn
+++ b/build/toolchain/mac/BUILD.gn
@@ -185,8 +185,7 @@ template("mac_toolchain") {
@@ -198,8 +198,7 @@ template("mac_toolchain") {
if (_enable_dsyms) {
dsym_switch = " -Wcrl,dsym,{{root_out_dir}} "
dsym_switch += "-Wcrl,dsymutilpath," +
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion ungoogled-chromium

0 comments on commit b7c5983

Please sign in to comment.