Skip to content

Commit

Permalink
Merge pull request #57 from Zoraver/master
Browse files Browse the repository at this point in the history
Update to ungoogled-chromium 85.0.4183.83-1
  • Loading branch information
Eloston authored Sep 5, 2020
2 parents 4f2df43 + 9c5350b commit 31fdc19
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 55 deletions.
1 change: 1 addition & 0 deletions flags.macos.gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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
@@ -384,7 +384,7 @@ config("compiler") {
@@ -392,7 +392,7 @@ config("compiler") {
if (!using_sanitizer) {
ldflags += [
"-Wl,-z,defs",
Expand Down
2 changes: 1 addition & 1 deletion patches/debian_buster/fixes/mojo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>

--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -435,8 +435,6 @@ static_library("content_shell_lib") {
@@ -429,8 +429,6 @@ static_library("content_shell_lib") {
"//content/public/common",
"//content/public/common:service_names",
"//content/test:blink_test_browser_support",
Expand Down
6 changes: 3 additions & 3 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
@@ -16388,7 +16388,8 @@ bool GLES2DecoderImpl::GetUniformSetup(G
@@ -16419,7 +16419,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
@@ -311,15 +311,16 @@ void RenderWidgetHostViewBase::SetBackgr
@@ -318,15 +318,16 @@ void RenderWidgetHostViewBase::SetBackgr
if (default_background_color_ == color)
return;

Expand All @@ -51,7 +51,7 @@ author: Michael Gilbert <mgilbert@debian.org>
}
--- a/third_party/blink/renderer/core/html/parser/html_tree_builder.cc
+++ b/third_party/blink/renderer/core/html/parser/html_tree_builder.cc
@@ -1041,7 +1041,7 @@ void HTMLTreeBuilder::ProcessStartTagFor
@@ -1047,7 +1047,7 @@ void HTMLTreeBuilder::ProcessStartTagFor
}
if (token->GetName() == html_names::kColTag) {
ProcessFakeStartTag(html_names::kColgroupTag);
Expand Down
2 changes: 1 addition & 1 deletion patches/debian_buster/warnings/printf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ author: Michael Gilbert <mgilbert@debian.org>
error_message =
--- a/third_party/blink/renderer/modules/cache_storage/inspector_cache_storage_agent.cc
+++ b/third_party/blink/renderer/modules/cache_storage/inspector_cache_storage_agent.cc
@@ -456,7 +456,7 @@ class CachedResponseFileReaderLoaderClie
@@ -457,7 +457,7 @@ class CachedResponseFileReaderLoaderClie
void DidFail(FileErrorCode error) override {
callback_->sendFailure(ProtocolResponse::ServerError(
String::Format("Unable to read the cached response, error code: %d",
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
@@ -1014,7 +1014,7 @@ if (is_win) {
@@ -1029,7 +1029,7 @@ if (is_win) {
assert(_framework_binary_path != "",
"Ignore configuration-dependent unused variable warning")

Expand Down
119 changes: 74 additions & 45 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
@@ -1928,7 +1928,6 @@ static_library("browser") {
@@ -1802,7 +1802,6 @@ static_library("browser") {
allow_circular_includes_from = [
"//chrome/browser/ui",
"//chrome/browser/ui/webui/bluetooth_internals",
- "//chrome/browser/safe_browsing",
]

public_deps = [
@@ -1989,7 +1988,6 @@ static_library("browser") {
@@ -1863,7 +1862,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",
@@ -4437,13 +4435,6 @@ static_library("browser") {
@@ -4595,13 +4593,6 @@ static_library("browser") {
]
}

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

# TODO(loyso): Remove this circular dependency. http://crbug.com/876576.
# TODO(crbug.com/1065748): Remove this circular dependency.
"//chrome/browser/web_applications/extensions",
-
- # TODO(crbug/925153): Remove this circular dependency.
- "//chrome/browser/safe_browsing",
]

# Since browser and browser_extensions actually depend on each other,
@@ -767,9 +764,7 @@ static_library("extensions") {
@@ -771,9 +768,7 @@ static_library("extensions") {
"//chrome/browser/extensions/api:api_registration",
"//chrome/common",
"//chrome/common/extensions/api",
Expand All @@ -54,15 +54,15 @@
"//components/signin/core/browser",
"//content/public/browser",
"//mojo/public/cpp/bindings",
@@ -795,7 +790,6 @@ static_library("extensions") {
@@ -799,7 +794,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",
"//chrome/browser/web_applications/extensions",
"//chrome/common/extensions/api:extensions_features",
@@ -846,12 +840,6 @@ static_library("extensions") {

@@ -852,12 +846,6 @@ static_library("extensions") {
"//components/proxy_config",
"//components/rappor",
"//components/resources",
Expand All @@ -73,12 +73,12 @@
- "//components/safe_browsing/core/common:safe_browsing_prefs",
- "//components/safe_browsing/core/db:database_manager",
"//components/search_engines",
"//components/services/app_service/public/mojom",
"//components/services/patch/content",
"//components/services/unzip/content",
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -341,15 +341,9 @@ static_library("ui") {
}
@@ -320,15 +320,9 @@ static_library("ui") {
]
}

- if (safe_browsing_mode == 1) {
Expand All @@ -94,23 +94,23 @@
defines = []
libs = []

@@ -366,7 +360,6 @@ static_library("ui") {
@@ -344,7 +338,6 @@ static_library("ui") {
# browser, then we can clean up these dependencies.
public_deps = [
"//chrome/common/string_matching",
"//components/dom_distiller/core",
- "//components/safe_browsing:buildflags",
"//components/sync",
"//components/sync_user_events",
"//components/translate/content/browser",
@@ -404,7 +397,6 @@ static_library("ui") {
@@ -382,7 +375,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",
@@ -498,17 +490,7 @@ static_library("ui") {
@@ -478,17 +470,7 @@ static_library("ui") {
"//components/rappor",
"//components/renderer_context_menu",
"//components/resources",
Expand All @@ -128,23 +128,23 @@
"//components/schema_org/common:improved_mojom",
"//components/search",
"//components/search_engines",
@@ -1476,7 +1458,6 @@ static_library("ui") {
@@ -1461,7 +1443,6 @@ static_library("ui") {
"//chrome/browser/profile_resetter:profile_reset_report_proto",
"//chrome/browser/resource_coordinator:tab_metrics_event_proto",
"//chrome/browser/resource_coordinator/tab_ranker",
- "//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/ui/color:color_headers",
"//chrome/browser/ui/color:mixers",
"//chrome/browser/ui/webui/app_management:mojo_bindings",
@@ -2644,7 +2625,6 @@ static_library("ui") {
@@ -2983,7 +2964,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",
@@ -4297,15 +4277,6 @@ static_library("ui") {
@@ -4279,15 +4259,6 @@ static_library("ui") {
}
}

Expand All @@ -160,29 +160,9 @@
if (use_dbus) {
deps += [ "//dbus" ]
}
--- a/chrome/browser/ui/blocked_content/popup_blocker.cc
+++ b/chrome/browser/ui/blocked_content/popup_blocker.cc
@@ -122,11 +122,11 @@ bool MaybeBlockPopup(content::WebContent
return false;

popup_blocker->AddBlockedPopup(params, window_features, block_type);
- auto* trigger = safe_browsing::AdPopupTrigger::FromWebContents(web_contents);
- if (trigger) {
- content::RenderFrameHost* source_frame =
- GetSourceFrameForPopup(params, open_url_params, web_contents);
- trigger->PopupWasBlocked(source_frame);
- }
+// auto* trigger = safe_browsing::AdPopupTrigger::FromWebContents(web_contents);
+// if (trigger) {
+// content::RenderFrameHost* source_frame =
+// GetSourceFrameForPopup(params, open_url_params, web_contents);
+// trigger->PopupWasBlocked(source_frame);
+// }
return true;
}
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1490,10 +1490,10 @@ void Browser::OnDidBlockNavigation(
@@ -1463,10 +1463,10 @@ void Browser::OnDidBlockNavigation(
framebust_helper->AddBlockedUrl(blocked_url, base::BindOnce(on_click));
}
}
Expand All @@ -199,7 +179,7 @@
content::PictureInPictureResult Browser::EnterPictureInPicture(
--- a/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc
+++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc
@@ -163,8 +163,12 @@ CheckClientDownloadRequestBase::CheckCli
@@ -162,8 +162,12 @@ CheckClientDownloadRequestBase::CheckCli
is_incognito_ = browser_context->IsOffTheRecord();
is_under_advanced_protection_ =
profile &&
Expand Down Expand Up @@ -229,7 +209,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
@@ -835,9 +835,13 @@ base::string16 DownloadItemNotification:
@@ -841,9 +841,13 @@ base::string16 DownloadItemNotification:
}
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT: {
bool requests_ap_verdicts =
Expand Down Expand Up @@ -293,19 +273,68 @@
return l10n_util::GetStringFUTF16(
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -1213,6 +1213,7 @@ void DownloadItemView::ShowWarningDialog
@@ -1240,6 +1240,7 @@ void DownloadItemView::ShowDeepScanningD
gfx::ImageSkia DownloadItemView::GetWarningIcon() {
switch (model_->GetDangerType()) {
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT:
+#if BUILDFLAG(FULL_SAFE_BROWSING)
if (safe_browsing::AdvancedProtectionStatusManagerFactory::GetForProfile(
model()->profile())
->IsUnderAdvancedProtection()) {
@@ -1221,6 +1222,7 @@ gfx::ImageSkia DownloadItemView::GetWarn
@@ -1248,6 +1249,7 @@ gfx::ImageSkia DownloadItemView::GetWarn
GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_AlertSeverityMedium));
}
+#endif
FALLTHROUGH;

case download::DOWNLOAD_DANGER_TYPE_DANGEROUS_URL:
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -5114,10 +5114,12 @@ ChromeContentBrowserClient::GetUrlLookup
}
#endif

+#if BUILDFLAG(FULL_SAFE_BROWSING)
if (is_consumer_lookup_enabled) {
return safe_browsing::RealTimeUrlLookupServiceFactory::GetForProfile(
profile);
}
+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
return nullptr;
}

--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc
+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc
@@ -465,6 +465,7 @@ void SafeBrowsingPrivateEventRouter::OnS
if (!IsRealtimeReportingEnabled())
return;

+#if BUILDFLAG(FULL_SAFE_BROWSING)
ReportRealtimeEvent(
kKeySensitiveDataEvent,
base::BindOnce(
@@ -495,6 +496,7 @@ void SafeBrowsingPrivateEventRouter::OnS
},
result, url.spec(), file_name, download_digest_sha256,
GetProfileUserName(), mime_type, trigger, content_size));
+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
}

void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorWarningBypassed(
@@ -511,6 +513,7 @@ void SafeBrowsingPrivateEventRouter::OnA

DCHECK_EQ("dlp", result.tag);

+#if BUILDFLAG(FULL_SAFE_BROWSING)
ReportRealtimeEvent(
kKeySensitiveDataEvent,
base::BindOnce(
@@ -544,6 +547,7 @@ void SafeBrowsingPrivateEventRouter::OnA
result, url.spec(), file_name, download_digest_sha256,
GetProfileUserName(), mime_type, trigger, access_point,
content_size));
+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
}

void SafeBrowsingPrivateEventRouter::OnUnscannedFileEvent(
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1480,10 +1480,6 @@ config("default_warnings") {
@@ -1497,10 +1497,6 @@ config("default_warnings") {
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
Expand All @@ -13,7 +13,7 @@
# TODO(https://crbug.com/989932): Evaluate and possibly enable.
"-Wno-implicit-int-float-conversion",

@@ -1495,9 +1491,6 @@ config("default_warnings") {
@@ -1512,9 +1508,6 @@ config("default_warnings") {

# TODO(https://crbug.com/1028110): Evaluate and possible enable.
"-Wno-deprecated-copy",
Expand Down
2 changes: 1 addition & 1 deletion ungoogled-chromium

0 comments on commit 31fdc19

Please sign in to comment.