diff --git a/patches/BRM000_disable-the-ad-promo-system-by-default.patch b/patches/BRM000_Disable-the-ad-promo-system-by-default.patch similarity index 67% rename from patches/BRM000_disable-the-ad-promo-system-by-default.patch rename to patches/BRM000_Disable-the-ad-promo-system-by-default.patch index bc4fa6b2..e181b933 100644 --- a/patches/BRM000_disable-the-ad-promo-system-by-default.patch +++ b/patches/BRM000_Disable-the-ad-promo-system-by-default.patch @@ -1,9 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 22:47:49 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 22:47:49 +0200 +Subject: Disable the ad promo system by default - Disable the ad promo system by default - author: Michael Gilbert - bug-debian: http://bugs.debian.org/634101 +author: Michael Gilbert +bug-debian: http://bugs.debian.org/634101 +--- + chrome/browser/ui/app_list/app_list_service.cc | 4 ++++ + 1 file changed, 4 insertions(+) diff --git a/chrome/browser/ui/app_list/app_list_service.cc b/chrome/browser/ui/app_list/app_list_service.cc --- a/chrome/browser/ui/app_list/app_list_service.cc @@ -19,3 +22,6 @@ diff --git a/chrome/browser/ui/app_list/app_list_service.cc b/chrome/browser/ui/ } // static +-- +2.7.4 + diff --git a/patches/BRM001_disable-third-party-cookies-by-default.patch b/patches/BRM001_Disable-third-party-cookies-by-default.patch similarity index 65% rename from patches/BRM001_disable-third-party-cookies-by-default.patch rename to patches/BRM001_Disable-third-party-cookies-by-default.patch index 6de61a17..1d8f76ce 100644 --- a/patches/BRM001_disable-third-party-cookies-by-default.patch +++ b/patches/BRM001_Disable-third-party-cookies-by-default.patch @@ -1,8 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 22:50:10 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 22:50:10 +0200 +Subject: Disable third-party cookies by default - Disable third-party cookies by default - author: Chad Miller +author: Chad Miller +--- + components/content_settings/core/browser/cookie_settings.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content_settings/core/browser/cookie_settings.cc b/components/content_settings/core/browser/cookie_settings.cc --- a/components/content_settings/core/browser/cookie_settings.cc @@ -16,3 +19,6 @@ diff --git a/components/content_settings/core/browser/cookie_settings.cc b/compo user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); } +-- +2.7.4 + diff --git a/patches/BRM002_restore-classic-new-tab-page.patch b/patches/BRM002_Restore-classic-new-tab-page.patch similarity index 73% rename from patches/BRM002_restore-classic-new-tab-page.patch rename to patches/BRM002_Restore-classic-new-tab-page.patch index 994876e3..6af8494f 100644 --- a/patches/BRM002_restore-classic-new-tab-page.patch +++ b/patches/BRM002_Restore-classic-new-tab-page.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sun Nov 26 11:40:05 2017 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 26 Nov 2017 11:40:05 +0100 +Subject: Restore classic new tab page - Restore classic new tab page +--- + chrome/browser/search/search.cc | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc --- a/chrome/browser/search/search.cc @@ -18,3 +21,6 @@ diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc } bool ShouldDelayRemoteNTP(const GURL& search_provider_url, Profile* profile) { +-- +2.7.4 + diff --git a/patches/BRM003_disable-battery-status-service.patch b/patches/BRM003_Disable-battery-status-service.patch similarity index 78% rename from patches/BRM003_disable-battery-status-service.patch rename to patches/BRM003_Disable-battery-status-service.patch index 61f90f8d..5a1a98fe 100644 --- a/patches/BRM003_disable-battery-status-service.patch +++ b/patches/BRM003_Disable-battery-status-service.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 22:57:29 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 22:57:29 +0200 +Subject: Disable battery status service - Disable battery status service +--- + services/device/battery/battery_status_service.cc | 5 +++++ + 1 file changed, 5 insertions(+) diff --git a/services/device/battery/battery_status_service.cc b/services/device/battery/battery_status_service.cc --- a/services/device/battery/battery_status_service.cc @@ -25,3 +28,6 @@ diff --git a/services/device/battery/battery_status_service.cc b/services/device return callback_list_.Add(callback); } +-- +2.7.4 + diff --git a/patches/BRM004_disable-gcm-status-check.patch b/patches/BRM004_Disable-GCM-status-check.patch similarity index 82% rename from patches/BRM004_disable-gcm-status-check.patch rename to patches/BRM004_Disable-GCM-status-check.patch index d4b3ae13..994d83ae 100644 --- a/patches/BRM004_disable-gcm-status-check.patch +++ b/patches/BRM004_Disable-GCM-status-check.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 22:58:52 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 22:58:52 +0200 +Subject: Disable GCM status check - Disable GCM status check +--- + components/gcm_driver/gcm_channel_status_request.cc | 6 ++++++ + 1 file changed, 6 insertions(+) diff --git a/components/gcm_driver/gcm_channel_status_request.cc b/components/gcm_driver/gcm_channel_status_request.cc --- a/components/gcm_driver/gcm_channel_status_request.cc @@ -35,3 +38,6 @@ diff --git a/components/gcm_driver/gcm_channel_status_request.cc b/components/gc } void GCMChannelStatusRequest::OnURLFetchComplete( +-- +2.7.4 + diff --git a/patches/BRM005_disable-updater-pings.patch b/patches/BRM005_Disable-updater-pings.patch similarity index 87% rename from patches/BRM005_disable-updater-pings.patch rename to patches/BRM005_Disable-updater-pings.patch index 65e0088c..cd28486c 100644 --- a/patches/BRM005_disable-updater-pings.patch +++ b/patches/BRM005_Disable-updater-pings.patch @@ -1,7 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Oct 12 01:35:53 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 12 Oct 2017 01:35:53 +0200 +Subject: Disable updater pings - Disable updater pings +--- + components/component_updater/configurator_impl.cc | 21 +++------------------ + components/component_updater/configurator_impl.h | 1 - + 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc --- a/components/component_updater/configurator_impl.cc @@ -61,3 +65,6 @@ diff --git a/components/component_updater/configurator_impl.h b/components/compo DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); }; +-- +2.7.4 + diff --git a/patches/BRM006_prefs-only-keep-cookies-until-exit.patch b/patches/BRM006_prefs-only-keep-cookies-until-exit.patch index 0178939f..32260198 100644 --- a/patches/BRM006_prefs-only-keep-cookies-until-exit.patch +++ b/patches/BRM006_prefs-only-keep-cookies-until-exit.patch @@ -1,11 +1,13 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 23:19:25 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sat, 13 Sep 2014 17:25:47 +0200 +Subject: prefs: only keep cookies until exit - [PATCH 21/60] prefs: only keep cookies until exit - From: Jan Engelhardt - Date: Sat, 13 Sep 2014 17:25:47 +0200 - - Out with all those tracking cookies! +Out with all those tracking cookies! + +author: Jan Engelhardt +--- + components/content_settings/core/browser/content_settings_registry.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc --- a/components/content_settings/core/browser/content_settings_registry.cc @@ -19,3 +21,6 @@ diff --git a/components/content_settings/core/browser/content_settings_registry. WebsiteSettingsInfo::SYNCABLE, WhitelistedSchemes(kChromeUIScheme, kChromeDevToolsScheme), ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK, +-- +2.7.4 + diff --git a/patches/BRM007_remove-ev-certificates.patch b/patches/BRM007_Remove-EV-certificates.patch similarity index 67% rename from patches/BRM007_remove-ev-certificates.patch rename to patches/BRM007_Remove-EV-certificates.patch index ca41fd1c..2be42b7c 100644 --- a/patches/BRM007_remove-ev-certificates.patch +++ b/patches/BRM007_Remove-EV-certificates.patch @@ -1,14 +1,16 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 23:12:18 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 2 Apr 2015 12:44:23 +0200 +Subject: Remove EV certificates - [PATCH 35/60] Remove EV certificates - From: Jan Engelhardt - Date: Thu, 2 Apr 2015 12:44:23 +0200 - - The team chose to let EV certificates appear just like normal - certificates. The web of trust is considered a failure in itself, so - do not give users a false sense of extra security with EV certs. - Instead, let them appear just like regular ones. +The team chose to let EV certificates appear just like normal +certificates. The web of trust is considered a failure in itself, so +do not give users a false sense of extra security with EV certs. +Instead, let them appear just like regular ones. + +author: Jan Engelhardt +--- + net/cert/ev_root_ca_metadata.cc | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/net/cert/ev_root_ca_metadata.cc b/net/cert/ev_root_ca_metadata.cc --- a/net/cert/ev_root_ca_metadata.cc @@ -41,3 +43,6 @@ diff --git a/net/cert/ev_root_ca_metadata.cc b/net/cert/ev_root_ca_metadata.cc #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA) +-- +2.7.4 + diff --git a/patches/BRM008_promo-disable-Google-promotion-fetching.patch b/patches/BRM008_promo-disable-Google-promotion-fetching.patch new file mode 100644 index 00000000..fb4f8faa --- /dev/null +++ b/patches/BRM008_promo-disable-Google-promotion-fetching.patch @@ -0,0 +1,37 @@ +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 9 Nov 2014 01:54:27 +0100 +Subject: promo: disable Google promotion fetching + +Documentation is scarce, and sprinkled with misleading acronyms. +NTP is not NTP, for example. FWIW: + +// A PromoResourceService fetches data from a web resource server to +// be used to dynamically change the appearance of the New Tab Page. +// For example, it has been used to fetch "tips" to be displayed on +// the NTP, or to display promotional messages to certain groups of +// Chrome users. + +Whatever it is that it downloads, deactivate the one that leads to +Google. + +References: https://github.com/iridium-browser/iridium-browser/issues/33 + +author: Jan Engelhardt +--- + chrome/browser/signin/signin_promo.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/chrome/browser/signin/signin_promo.cc b/chrome/browser/signin/signin_promo.cc +--- a/chrome/browser/signin/signin_promo.cc ++++ b/chrome/browser/signin/signin_promo.cc +@@ -130,6 +130,7 @@ namespace signin { + + bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile) { + DCHECK(profile); ++ return false; + + // Don't show if the profile is an incognito. + if (profile->IsOffTheRecord()) +-- +2.7.4 + diff --git a/patches/BRM008_promo-disable-google-promotion-fetching.patch b/patches/BRM008_promo-disable-google-promotion-fetching.patch deleted file mode 100644 index b1ddeb24..00000000 --- a/patches/BRM008_promo-disable-google-promotion-fetching.patch +++ /dev/null @@ -1,32 +0,0 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 23:22:05 2017 +0200 - - [PATCH 45/60] promo: disable Google promotion fetching - From: Jan Engelhardt - Date: Sun, 9 Nov 2014 01:54:27 +0100 - - Documentation is scarce, and sprinkled with misleading acronyms. - NTP is not NTP, for example. FWIW: - - // A PromoResourceService fetches data from a web resource server to - // be used to dynamically change the appearance of the New Tab Page. - // For example, it has been used to fetch "tips" to be displayed on - // the NTP, or to display promotional messages to certain groups of - // Chrome users. - - Whatever it is that it downloads, deactivate the one that leads to - Google. - - References: https://github.com/iridium-browser/iridium-browser/issues/33 - -diff --git a/chrome/browser/signin/signin_promo.cc b/chrome/browser/signin/signin_promo.cc ---- a/chrome/browser/signin/signin_promo.cc -+++ b/chrome/browser/signin/signin_promo.cc -@@ -130,6 +130,7 @@ namespace signin { - - bool ShouldShowPromoAtStartup(Profile* profile, bool is_new_profile) { - DCHECK(profile); -+ return false; - - // Don't show if the profile is an incognito. - if (profile->IsOffTheRecord()) diff --git a/patches/BRM009_disables-omission-of-url-elements-in-omnibox.patch b/patches/BRM009_Disables-omission-of-URL-elements-in-Omnibox.patch similarity index 78% rename from patches/BRM009_disables-omission-of-url-elements-in-omnibox.patch rename to patches/BRM009_Disables-omission-of-URL-elements-in-Omnibox.patch index 25a5d882..a60e13b4 100644 --- a/patches/BRM009_disables-omission-of-url-elements-in-omnibox.patch +++ b/patches/BRM009_Disables-omission-of-URL-elements-in-Omnibox.patch @@ -1,9 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 23:24:58 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 23:24:58 +0200 +Subject: Disables omission of URL elements in Omnibox - Disables omission of URL elements in Omnibox - - Disable all omissions (already shadowed by first flag) +Disable all omissions (already shadowed by first flag) +--- + components/url_formatter/url_formatter.cc | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatter/url_formatter.cc --- a/components/url_formatter/url_formatter.cc @@ -27,3 +29,6 @@ diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatte const FormatUrlType kFormatUrlOmitDefaults = kFormatUrlOmitUsernamePassword | kFormatUrlOmitHTTP | +-- +2.7.4 + diff --git a/patches/BRM010_modify-default-preferences.patch b/patches/BRM010_Modify-default-preferences.patch similarity index 88% rename from patches/BRM010_modify-default-preferences.patch rename to patches/BRM010_Modify-default-preferences.patch index 758c83f7..cfd264de 100644 --- a/patches/BRM010_modify-default-preferences.patch +++ b/patches/BRM010_Modify-default-preferences.patch @@ -1,7 +1,25 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Oct 12 08:09:24 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 12 Oct 2017 08:09:24 +0200 +Subject: Modify default preferences - Modify default preferences +--- + chrome/browser/background/background_mode_manager.cc | 2 +- + chrome/browser/chrome_content_browser_client.cc | 2 +- + chrome/browser/io_thread.cc | 2 +- + chrome/browser/net/prediction_options.cc | 2 +- + chrome/browser/net/prediction_options.h | 2 +- + chrome/browser/profiles/profile.cc | 2 +- + .../resources/settings/reset_page/reset_profile_dialog.html | 2 +- + chrome/browser/signin/signin_promo.cc | 4 ++-- + chrome/browser/ui/browser_ui_prefs.cc | 4 ++-- + chrome/browser/ui/navigation_correction_tab_observer.cc | 2 +- + chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc | 4 ---- + chrome/service/cloud_print/connector_settings.cc | 2 +- + components/autofill/core/browser/autofill_manager.cc | 2 +- + components/bookmarks/browser/bookmark_utils.cc | 4 ++-- + components/safe_browsing/common/safe_browsing_prefs.cc | 4 ++-- + extensions/common/extension.cc | 8 -------- + 16 files changed, 18 insertions(+), 30 deletions(-) diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc --- a/chrome/browser/background/background_mode_manager.cc @@ -219,3 +237,6 @@ diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc // Unless they are unpacked, never show hosted apps. Note: We intentionally // show packaged apps and platform apps because there are some pieces of // functionality that are only available in chrome://extensions/ but which +-- +2.7.4 + diff --git a/patches/BRM011_do-not-store-passwords-by-default.patch b/patches/BRM011_Do-not-store-passwords-by-default.patch similarity index 78% rename from patches/BRM011_do-not-store-passwords-by-default.patch rename to patches/BRM011_Do-not-store-passwords-by-default.patch index fb7b13e9..cad5b353 100644 --- a/patches/BRM011_do-not-store-passwords-by-default.patch +++ b/patches/BRM011_Do-not-store-passwords-by-default.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 11 23:17:17 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 11 Oct 2017 23:17:17 +0200 +Subject: Do not store passwords by default - Do not store passwords by default +--- + components/password_manager/core/browser/password_manager.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc --- a/components/password_manager/core/browser/password_manager.cc @@ -19,3 +22,6 @@ diff --git a/components/password_manager/core/browser/password_manager.cc b/comp user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); registry->RegisterBooleanPref(prefs::kWasObsoleteHttpDataCleaned, false); registry->RegisterStringPref(prefs::kSyncPasswordHash, std::string(), +-- +2.7.4 + diff --git a/patches/BRM012_disable-ntp-remote-suggestions-by-default.patch b/patches/BRM012_Disable-NTP-remote-suggestions-by-default.patch similarity index 81% rename from patches/BRM012_disable-ntp-remote-suggestions-by-default.patch rename to patches/BRM012_Disable-NTP-remote-suggestions-by-default.patch index fa2a737f..42ed7119 100644 --- a/patches/BRM012_disable-ntp-remote-suggestions-by-default.patch +++ b/patches/BRM012_Disable-NTP-remote-suggestions-by-default.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Oct 12 08:15:17 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 12 Oct 2017 08:15:17 +0200 +Subject: Disable NTP remote suggestions by default - Disable NTP remote suggestions by default +--- + components/ntp_snippets/features.cc | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ntp_snippets/features.cc b/components/ntp_snippets/features.cc --- a/components/ntp_snippets/features.cc @@ -26,3 +29,6 @@ diff --git a/components/ntp_snippets/features.cc b/components/ntp_snippets/featu const base::Feature kPhysicalWebPageSuggestionsFeature{ "NTPPhysicalWebPageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; +-- +2.7.4 + diff --git a/patches/BRM013_disables-references-to-fonts.googleapis.com.patch b/patches/BRM013_Disable-references-to-fonts.googleapis.com.patch similarity index 83% rename from patches/BRM013_disables-references-to-fonts.googleapis.com.patch rename to patches/BRM013_Disable-references-to-fonts.googleapis.com.patch index dfb1db9c..9f8dc2bd 100644 --- a/patches/BRM013_disables-references-to-fonts.googleapis.com.patch +++ b/patches/BRM013_Disable-references-to-fonts.googleapis.com.patch @@ -1,7 +1,13 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sun Oct 15 21:45:46 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 15 Oct 2017 21:45:46 +0200 +Subject: Disable references to fonts.googleapis.com - Disables references to fonts.googleapis.com +--- + .../dom_distiller/content/browser/dom_distiller_viewer_source.cc | 2 +- + components/dom_distiller/core/html/preview.html | 2 +- + components/dom_distiller/core/javascript/dom_distiller_viewer.js | 2 +- + third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css | 3 +-- + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc --- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc @@ -52,3 +58,6 @@ diff --git a/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css b/th body, table, +-- +2.7.4 + diff --git a/patches/BRM014_disable-webrtc-by-default.patch b/patches/BRM014_Disable-WebRTC-by-default.patch similarity index 79% rename from patches/BRM014_disable-webrtc-by-default.patch rename to patches/BRM014_Disable-WebRTC-by-default.patch index 0421d8a0..590a735f 100644 --- a/patches/BRM014_disable-webrtc-by-default.patch +++ b/patches/BRM014_Disable-WebRTC-by-default.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Oct 26 16:59:03 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 26 Oct 2017 16:59:03 +0200 +Subject: Disable WebRTC by default - Disable WebRTC by default +--- + chrome/browser/ui/browser_ui_prefs.cc | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_ui_prefs.cc --- a/chrome/browser/ui/browser_ui_prefs.cc @@ -20,3 +23,6 @@ diff --git a/chrome/browser/ui/browser_ui_prefs.cc b/chrome/browser/ui/browser_u registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string()); #endif +-- +2.7.4 + diff --git a/patches/BRM015_ported-data-reduction-disable-patch.patch b/patches/BRM015_Disable-data-saver.patch similarity index 86% rename from patches/BRM015_ported-data-reduction-disable-patch.patch rename to patches/BRM015_Disable-data-saver.patch index 2ea5a706..ed276d28 100644 --- a/patches/BRM015_ported-data-reduction-disable-patch.patch +++ b/patches/BRM015_Disable-data-saver.patch @@ -1,7 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Fri Oct 27 15:53:37 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Fri, 27 Oct 2017 15:53:37 +0200 +Subject: Disable data saver - Ported data reduction disable patch +--- + .../java/src/org/chromium/chrome/browser/firstrun/FirstRunActivity.java | 1 - + .../chrome/browser/net/spdyproxy/DataReductionProxySettings.java | 2 ++ + .../browser/preferences/datareduction/DataReductionPromoUtils.java | 2 +- + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunActivity.java --- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunActivity.java @@ -45,3 +50,6 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/dat } /** +-- +2.7.4 + diff --git a/patches/BRM016_skip-the-first-run-and-metrics.patch b/patches/BRM016_Skip-the-first-run-and-metrics.patch similarity index 90% rename from patches/BRM016_skip-the-first-run-and-metrics.patch rename to patches/BRM016_Skip-the-first-run-and-metrics.patch index 847806e4..2780a5c8 100644 --- a/patches/BRM016_skip-the-first-run-and-metrics.patch +++ b/patches/BRM016_Skip-the-first-run-and-metrics.patch @@ -1,7 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sun Nov 26 22:51:43 2017 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 26 Nov 2017 22:51:43 +0100 +Subject: Skip the first run and metrics - Skip the first run and metrics +--- + .../chrome/browser/firstrun/FirstRunStatus.java | 11 +++++------ + .../chrome/browser/firstrun/FirstRunUtils.java | 16 ++++++---------- + .../browser/firstrun/ToSAndUMAFirstRunFragment.java | 18 ++++++------------ + 3 files changed, 17 insertions(+), 28 deletions(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java --- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java @@ -86,3 +91,6 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/ToSAnd mTosAndPrivacy.setMovementMethod(LinkMovementMethod.getInstance()); NoUnderlineClickableSpan clickableTermsSpan = new NoUnderlineClickableSpan() { +-- +2.7.4 + diff --git a/patches/BRM017_always-disable-omaha-update-checks.patch b/patches/BRM017_Disable-Omaha-update-checks.patch similarity index 64% rename from patches/BRM017_always-disable-omaha-update-checks.patch rename to patches/BRM017_Disable-Omaha-update-checks.patch index 9d826c5c..37707985 100644 --- a/patches/BRM017_always-disable-omaha-update-checks.patch +++ b/patches/BRM017_Disable-Omaha-update-checks.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sun Nov 26 23:11:56 2017 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 26 Nov 2017 23:11:56 +0100 +Subject: Disable Omaha update checks - Always disable Omaha update checks +--- + .../android/java/src/org/chromium/chrome/browser/omaha/OmahaBase.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaBase.java b/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaBase.java --- a/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaBase.java @@ -15,3 +18,6 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaBase } /** +-- +2.7.4 + diff --git a/patches/BRM018_add-duckduckgo-search-engine-not-enabled-by-default.patch b/patches/BRM018_Add-DuckDuckGo-search-engine.patch similarity index 98% rename from patches/BRM018_add-duckduckgo-search-engine-not-enabled-by-default.patch rename to patches/BRM018_Add-DuckDuckGo-search-engine.patch index b0a9f52c..10d3e3fd 100644 --- a/patches/BRM018_add-duckduckgo-search-engine-not-enabled-by-default.patch +++ b/patches/BRM018_Add-DuckDuckGo-search-engine.patch @@ -1,7 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Oct 12 11:06:18 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 12 Oct 2017 11:06:18 +0200 +Subject: Add DuckDuckGo search engine - Add DuckDuckGo search engine, not enabled by default +--- + .../search_engines/prepopulated_engines.json | 19 ++ + components/search_engines/search_engine_type.h | 2 + + .../template_url_prepopulate_data.cc | 218 ++++++++++----------- + 3 files changed, 130 insertions(+), 109 deletions(-) diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json --- a/components/search_engines/prepopulated_engines.json @@ -705,3 +710,6 @@ diff --git a/components/search_engines/template_url_prepopulate_data.cc b/compon &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio, &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr, +-- +2.7.4 + diff --git a/patches/BRM019_add-startpage-search-engine.patch b/patches/BRM019_Add-StartPage-search-engine.patch similarity index 98% rename from patches/BRM019_add-startpage-search-engine.patch rename to patches/BRM019_Add-StartPage-search-engine.patch index a20565d6..4c5f53b4 100644 --- a/patches/BRM019_add-startpage-search-engine.patch +++ b/patches/BRM019_Add-StartPage-search-engine.patch @@ -1,7 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Oct 18 21:24:05 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 18 Oct 2017 21:24:05 +0200 +Subject: Add StartPage search engine - Add StartPage search engine +--- + .../search_engines/prepopulated_engines.json | 12 +- + components/search_engines/search_engine_type.h | 1 + + .../template_url_prepopulate_data.cc | 218 ++++++++++----------- + 3 files changed, 121 insertions(+), 110 deletions(-) diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json --- a/components/search_engines/prepopulated_engines.json @@ -704,3 +709,6 @@ diff --git a/components/search_engines/template_url_prepopulate_data.cc b/compon &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio, &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr, +-- +2.7.4 + diff --git a/patches/BRM020_added-google-english-only-engine-no-rlz-and-field-experiments.patch b/patches/BRM020_Added-Google-English-only-engine.patch similarity index 98% rename from patches/BRM020_added-google-english-only-engine-no-rlz-and-field-experiments.patch rename to patches/BRM020_Added-Google-English-only-engine.patch index b9bd40d1..77b6fcb0 100644 --- a/patches/BRM020_added-google-english-only-engine-no-rlz-and-field-experiments.patch +++ b/patches/BRM020_Added-Google-English-only-engine.patch @@ -1,7 +1,14 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Dec 11 22:42:11 2017 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 11 Dec 2017 22:42:11 +0100 +Subject: Added Google English-only engine - Added Google English-only engine, no RLZ and field experiments +Add a Google search engine that forces languages to English, +disable from all its searches RLZ and field experiments querystring parameters. +--- + .../search_engines/prepopulated_engines.json | 23 ++- + components/search_engines/search_engine_type.h | 1 + + .../template_url_prepopulate_data.cc | 218 ++++++++++----------- + 3 files changed, 132 insertions(+), 110 deletions(-) diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json --- a/components/search_engines/prepopulated_engines.json @@ -715,3 +722,6 @@ diff --git a/components/search_engines/template_url_prepopulate_data.cc b/compon &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio, &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr, +-- +2.7.4 + diff --git a/patches/BRM021_add-qwant-search-engine.patch b/patches/BRM021_Add-Qwant-search-engine.patch similarity index 98% rename from patches/BRM021_add-qwant-search-engine.patch rename to patches/BRM021_Add-Qwant-search-engine.patch index 378e47d1..f77a8286 100644 --- a/patches/BRM021_add-qwant-search-engine.patch +++ b/patches/BRM021_Add-Qwant-search-engine.patch @@ -1,7 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Mar 12 20:31:44 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Mar 2018 20:31:44 +0100 +Subject: Add Qwant search engine - Add Qwant search engine +--- + .../search_engines/prepopulated_engines.json | 13 +- + components/search_engines/search_engine_type.h | 1 + + .../template_url_prepopulate_data.cc | 218 ++++++++++----------- + 3 files changed, 122 insertions(+), 110 deletions(-) diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json --- a/components/search_engines/prepopulated_engines.json @@ -705,3 +710,6 @@ diff --git a/components/search_engines/template_url_prepopulate_data.cc b/compon &mail_ru, &najdi, &naver, &onet, &seznam, &sogou, &vinden, &virgilio, &yahoo, &yahoo_ar, &yahoo_at, &yahoo_au, &yahoo_br, &yahoo_ca, &yahoo_ch, &yahoo_cl, &yahoo_co, &yahoo_de, &yahoo_dk, &yahoo_es, &yahoo_fi, &yahoo_fr, +-- +2.7.4 + diff --git a/patches/BRM022_fix-crash-when-accessing-page-info-site-settings.patch b/patches/BRM022_Fix-crash-when-accessing-page-info-site-settings.patch similarity index 74% rename from patches/BRM022_fix-crash-when-accessing-page-info-site-settings.patch rename to patches/BRM022_Fix-crash-when-accessing-page-info-site-settings.patch index 6da02d83..d0a8c376 100644 --- a/patches/BRM022_fix-crash-when-accessing-page-info-site-settings.patch +++ b/patches/BRM022_Fix-crash-when-accessing-page-info-site-settings.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sat Jan 20 19:44:43 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sat, 20 Jan 2018 19:44:43 +0100 +Subject: Fix crash when accessing page info / site settings - Fix crash when accessing page info / site settings +--- + chrome/browser/permissions/permission_manager.cc | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/chrome/browser/permissions/permission_manager.cc b/chrome/browser/permissions/permission_manager.cc --- a/chrome/browser/permissions/permission_manager.cc @@ -16,3 +19,6 @@ diff --git a/chrome/browser/permissions/permission_manager.cc b/chrome/browser/p PermissionResult result = context->GetPermissionStatus( render_frame_host, canonical_requesting_origin.GetOrigin(), embedding_origin.GetOrigin()); +-- +2.7.4 + diff --git a/patches/BRM023_compile-with-arm-arm64-optimizations-for-h264.patch b/patches/BRM023_openH264-enable-ARM-ARM64-optimizations.patch similarity index 85% rename from patches/BRM023_compile-with-arm-arm64-optimizations-for-h264.patch rename to patches/BRM023_openH264-enable-ARM-ARM64-optimizations.patch index 4424ea41..64c3ffee 100644 --- a/patches/BRM023_compile-with-arm-arm64-optimizations-for-h264.patch +++ b/patches/BRM023_openH264-enable-ARM-ARM64-optimizations.patch @@ -1,8 +1,13 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sat Jan 20 21:17:27 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sat, 20 Jan 2018 21:17:27 +0100 +Subject: openH264: enable ARM/ARM64 optimizations - Compile with ARM/ARM64 optimizations for H264 - Not only when running ChromeOS but for all compatbile devices +Enable the optimizations not only for ChromeOS but for all compatbile ARM/ARM64 architectures +Limit threads auto-detect only for iOS +--- + content/renderer/media_recorder/h264_encoder.cc | 6 ++-- + third_party/openh264/BUILD.gn | 39 +++++++++++++++++++++++++ + 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/content/renderer/media_recorder/h264_encoder.cc b/content/renderer/media_recorder/h264_encoder.cc --- a/content/renderer/media_recorder/h264_encoder.cc @@ -99,3 +104,6 @@ diff --git a/third_party/openh264/BUILD.gn b/third_party/openh264/BUILD.gn configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] configs += [ ":config" ] +-- +2.7.4 + diff --git a/patches/BRM024_do-not-track-google-search-results-clicks.patch b/patches/BRM024_Cure-AMP-and-tracking-from-search-results.patch similarity index 92% rename from patches/BRM024_do-not-track-google-search-results-clicks.patch rename to patches/BRM024_Cure-AMP-and-tracking-from-search-results.patch index d2a2aca4..a3189417 100644 --- a/patches/BRM024_do-not-track-google-search-results-clicks.patch +++ b/patches/BRM024_Cure-AMP-and-tracking-from-search-results.patch @@ -1,9 +1,13 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sat Oct 28 10:09:41 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sat, 28 Oct 2017 10:09:41 +0200 +Subject: Cure AMP and tracking from search results - Do not track google search results clicks - - Limit AMP cleanup to main search results +--- + third_party/WebKit/Source/core/dom/BUILD.gn | 1 + + third_party/WebKit/Source/core/dom/Document.cpp | 19 ++++++++++++++++++- + .../WebKit/Source/core/dom/extensions/dont-track-me.h | 6 ++++++ + 3 files changed, 25 insertions(+), 1 deletion(-) + create mode 100644 third_party/WebKit/Source/core/dom/extensions/dont-track-me.h diff --git a/third_party/WebKit/Source/core/dom/BUILD.gn b/third_party/WebKit/Source/core/dom/BUILD.gn --- a/third_party/WebKit/Source/core/dom/BUILD.gn @@ -64,3 +68,6 @@ new file mode 100644 +#define DONT_TRACK_ME_JS "/* Bromite click-tracking and AMP removal v0.3.5 */\n\nfunction recreateHyperlink(a) {\n // skip already-sanitized hyperlinks\n if (a.sane) return false;\n\n // create new A element - old one has event listeners attached\n var newA = document.createElement('a');\n newA.referrerPolicy = 'origin';\n // property set when hyperlink has been created by this script\n newA.sane = 1;\n\n // remove AMP class, get actual page URL\n var ampCur = a.getAttribute('data-amp-cur');\n if (ampCur) {\n newA.href = ampCur;\n a.classList.remove('amp_r');\n } else {\n var realLink = getRealLinkFromGoogleUrl(a);\n if (realLink) {\n newA.href = realLink;\n } else {\n // might not be an actual hyperlink, ignore it\n if (!a.href) {\n return false;\n }\n // leave original href unchanged\n newA.href = a.href;\n }\n }\n // copy CSS classes\n newA.className = a.className;\n\n // copy nodes inside the hyperlink\n while (a.firstChild) {\n newA.appendChild(a.lastChild);\n }\n // replace hyperlink\n a.parentNode.replaceChild(newA, a);\n return true;\n}\n\nfunction isResult(a) {\n if (a.getAttribute('data-amp-cur'))\n return true;\n var inlineMousedown = a.getAttribute('onmousedown');\n if (!inlineMousedown)\n\treturn false;\n // return rwt(....); // E.g Google search results.\n // return google.rwt(...); // E.g. sponsored search results\n // return google.arwt(this); // E.g. sponsored search results (dec 2016).\n return /\\ba?rwt\\(/.test(inlineMousedown) || /\\bctpacw\\b/.test(inlineMousedown);\n}\n\n/**\n * @returns {String} the real URL if the given link is a Google redirect URL.\n */\nfunction getRealLinkFromGoogleUrl(a) {\n if ((a.hostname === location.hostname || a.hostname.indexOf('www.google.') == 0) &&\n /^\\/(local_)?url$/.test(a.pathname)) {\n // Google Maps / Dito (/local_url?q=)\n // Mobile (/url?q=)\n var url = /[?&](?:q|url)=((?:https?|ftp)[%:][^&]+)/.exec(a.search);\n if (url) {\n return decodeURIComponent(url[1]);\n }\n // Help pages, e.g. safe browsing (/url?...&q=%2Fsupport%2Fanswer...)\n url = /[?&](?:q|url)=((?:%2[Ff]|\\/)[^&]+)/.exec(a.search);\n if (url) {\n return a.origin + decodeURIComponent(url[1]);\n }\n }\n}\n\nfunction sanitizeAds() {\n // scan all divs\n var div = document.getElementById('tads');\n if (div) {\n div.style.display = 'none';\n\treturn true;\n }\n return false;\n}\n\nfunction sanitizeAll() {\n console.log(\"ads removed: \", sanitizeAds());\n console.log(\"hyperlinks sanitized: \", sanitizeAllHyperlinks());\n}\n\nfunction setMlogoClick() {\n var mlogo = document.getElementById('mlogo');\n if (mlogo) {\n mlogo.removeAttribute(\"href\");\n mlogo.setAttribute(\"onclick\", \"sanitizeAll()\");\n console.log(\"logo link replaced\");\n } else {\n console.log(\"could not replace logo link\");\n }\n}\n\nfunction sanitizeAllHyperlinks() {\n var saned = 0, total = 0;\n document.querySelectorAll('div[data-hveid]:not([data-hveid=\"\"]) a').forEach(function(a) {\n\ttotal++;\n\tvar res = recreateHyperlink(a);\n\tif (res) saned++;\n });\n console.log(\"sanitized \", saned, \"/\", total, \" hyperlinks\");\n\n return saned;\n}\n\n// avoid running cleanup on non-search pages\nif ((document.location.host.indexOf(\"images.google.\") == -1) && (document.location.host.indexOf(\"news.google.\") == -1)) {\n// document.addEventListener('touchstart', handlePointerPress, true);\n sanitizeAll();\n}\nsetMlogoClick();\n" + +#endif // dont_track_me_h +-- +2.7.4 + diff --git a/patches/BRM025_play-videos-in-background.patch b/patches/BRM025_Play-videos-in-background.patch similarity index 85% rename from patches/BRM025_play-videos-in-background.patch rename to patches/BRM025_Play-videos-in-background.patch index 6582ec2b..f9672f63 100644 --- a/patches/BRM025_play-videos-in-background.patch +++ b/patches/BRM025_Play-videos-in-background.patch @@ -1,9 +1,15 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Sun Feb 18 22:15:25 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sun, 18 Feb 2018 22:15:25 +0100 +Subject: Play videos in background - Play videos in background - Break Page Visibility API and Fullscreen API for youtube.com and vimeo.com - Original Javascript code by timdream +Break Page Visibility API and Fullscreen API for youtube.com and vimeo.com +Original Javascript code by timdream +--- + third_party/WebKit/Source/core/dom/BUILD.gn | 1 + + third_party/WebKit/Source/core/dom/Document.cpp | 17 +++++++++++++---- + .../WebKit/Source/core/dom/extensions/video-bg-play.h | 6 ++++++ + 3 files changed, 20 insertions(+), 4 deletions(-) + create mode 100644 third_party/WebKit/Source/core/dom/extensions/video-bg-play.h diff --git a/third_party/WebKit/Source/core/dom/BUILD.gn b/third_party/WebKit/Source/core/dom/BUILD.gn --- a/third_party/WebKit/Source/core/dom/BUILD.gn @@ -68,3 +74,6 @@ new file mode 100644 +#define VIDEO_BG_PLAY_JS "'use strict';\n\n/* video background play fix - original version by timdream */\ndocument.videoBGFix = {};\n\n// Page Visibility API\nObject.defineProperties(document.videoBGFix,\n { 'hidden': {value: false}, 'visibilityState': {value: 'visible'} });\n\nwindow.addEventListener(\n 'visibilitychange', evt => evt.stopImmediatePropagation(), true);\nwindow.addEventListener(\n 'blur', evt => evt.stopImmediatePropagation(), true);\n\n// Fullscreen API\nwindow.addEventListener('fullscreenchange', evt => {\n Object.defineProperties(document.videoBGFix,\n { 'fullscreenEnabled': {value: true},\n 'fullscreen': {value: true},\n 'fullscreenElement': {value: document.fullscreenElement.videoBGFix}});\n window.addEventListener(\n 'fullscreenchange', evt => evt.stopImmediatePropagation(), true);\n}, { capture: true, once: true });\n" + +#endif // video_bg_play_h +-- +2.7.4 + diff --git a/patches/BRM026_never-send-any-crash-upload-data.patch b/patches/BRM026_Never-send-any-crash-upload-data.patch similarity index 69% rename from patches/BRM026_never-send-any-crash-upload-data.patch rename to patches/BRM026_Never-send-any-crash-upload-data.patch index bd71b5c8..be8dda2b 100644 --- a/patches/BRM026_never-send-any-crash-upload-data.patch +++ b/patches/BRM026_Never-send-any-crash-upload-data.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:43:35 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:43:35 +0100 +Subject: Never send any crash upload data - Never send any crash upload data +--- + chrome/browser/tracing/crash_service_uploader.cc | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/chrome/browser/tracing/crash_service_uploader.cc b/chrome/browser/tracing/crash_service_uploader.cc --- a/chrome/browser/tracing/crash_service_uploader.cc @@ -16,3 +19,6 @@ diff --git a/chrome/browser/tracing/crash_service_uploader.cc b/chrome/browser/t DCHECK_CURRENTLY_ON(content::BrowserThread::UI); progress_callback_ = progress_callback; +-- +2.7.4 + diff --git a/patches/BRM027_never-fetch-popular-sites.patch b/patches/BRM027_Never-fetch-popular-sites.patch similarity index 72% rename from patches/BRM027_never-fetch-popular-sites.patch rename to patches/BRM027_Never-fetch-popular-sites.patch index 6c34b303..b4f93be1 100644 --- a/patches/BRM027_never-fetch-popular-sites.patch +++ b/patches/BRM027_Never-fetch-popular-sites.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Feb 14 12:56:01 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 14 Feb 2018 12:56:01 +0100 +Subject: Never fetch popular sites - Never fetch popular sites +--- + components/ntp_tiles/popular_sites_impl.cc | 6 ++++++ + 1 file changed, 6 insertions(+) diff --git a/components/ntp_tiles/popular_sites_impl.cc b/components/ntp_tiles/popular_sites_impl.cc --- a/components/ntp_tiles/popular_sites_impl.cc @@ -19,3 +22,6 @@ diff --git a/components/ntp_tiles/popular_sites_impl.cc b/components/ntp_tiles/p const base::Time last_download_time = base::Time::FromInternalValue( prefs_->GetInt64(prefs::kPopularSitesLastDownloadPref)); const base::TimeDelta time_since_last_download = +-- +2.7.4 + diff --git a/patches/BRM028_ungoogled-chromium-disable-signin.patch b/patches/BRM028_ungoogled-chromium-Disable-signin.patch similarity index 85% rename from patches/BRM028_ungoogled-chromium-disable-signin.patch rename to patches/BRM028_ungoogled-chromium-Disable-signin.patch index f7660f96..5b0e11bd 100644 --- a/patches/BRM028_ungoogled-chromium-disable-signin.patch +++ b/patches/BRM028_ungoogled-chromium-Disable-signin.patch @@ -1,7 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:14:39 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:14:39 +0100 +Subject: ungoogled-chromium: Disable signin - ungoogled-chromium: Disable signin +--- + chrome/browser/ui/chrome_pages.cc | 8 ++------ + components/signin/core/browser/signin_manager_base.cc | 2 +- + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc --- a/chrome/browser/ui/chrome_pages.cc @@ -47,3 +51,6 @@ diff --git a/components/signin/core/browser/signin_manager_base.cc b/components/ } AccountInfo SigninManagerBase::GetAuthenticatedAccountInfo() const { +-- +2.7.4 + diff --git a/patches/BRM029_ungoogled-chromium-disable-webrtc-log-uploader.patch b/patches/BRM029_ungoogled-chromium-Disable-webRTC-log-uploader.patch similarity index 92% rename from patches/BRM029_ungoogled-chromium-disable-webrtc-log-uploader.patch rename to patches/BRM029_ungoogled-chromium-Disable-webRTC-log-uploader.patch index ce099428..5b272c9a 100644 --- a/patches/BRM029_ungoogled-chromium-disable-webrtc-log-uploader.patch +++ b/patches/BRM029_ungoogled-chromium-Disable-webRTC-log-uploader.patch @@ -1,8 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:21:36 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:21:36 +0100 +Subject: ungoogled-chromium: Disable webRTC log uploader - ungoogled-chromium: Disable webRTC log uploader - Disables WebRTC log uploading to Google - ported patch +--- + chrome/browser/media/webrtc/webrtc_log_uploader.cc | 62 ++-------------------- + 1 file changed, 4 insertions(+), 58 deletions(-) diff --git a/chrome/browser/media/webrtc/webrtc_log_uploader.cc b/chrome/browser/media/webrtc/webrtc_log_uploader.cc --- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc @@ -93,3 +95,6 @@ diff --git a/chrome/browser/media/webrtc/webrtc_log_uploader.cc b/chrome/browser BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, base::BindOnce(done_callback, true, "")); +-- +2.7.4 + diff --git a/patches/BRM030_ungoogled-chromium-disable-untraceable-urls.patch b/patches/BRM030_ungoogled-chromium-Disable-untraceable-URLs.patch similarity index 86% rename from patches/BRM030_ungoogled-chromium-disable-untraceable-urls.patch rename to patches/BRM030_ungoogled-chromium-Disable-untraceable-URLs.patch index 8c6ce7cf..1b4c9198 100644 --- a/patches/BRM030_ungoogled-chromium-disable-untraceable-urls.patch +++ b/patches/BRM030_ungoogled-chromium-Disable-untraceable-URLs.patch @@ -1,8 +1,17 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:28:11 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:28:11 +0100 +Subject: ungoogled-chromium: Disable untraceable URLs - ungoogled-chromium: Disable untraceable URLs - Disable additional URLs that are not caught by the "trk" scheme +Disable additional URLs that are not caught by the "trk" scheme +--- + chrome/browser/android/rlz/rlz_ping_handler.cc | 2 +- + chrome/browser/plugins/plugins_resource_service.cc | 2 +- + chrome/browser/safe_browsing/client_side_model_loader.cc | 6 ++---- + chrome/browser/safe_browsing/client_side_model_loader.h | 1 - + rlz/lib/financial_ping.cc | 4 ++-- + rlz/lib/lib_values.cc | 1 - + rlz/lib/lib_values.h | 1 - + 7 files changed, 6 insertions(+), 11 deletions(-) diff --git a/chrome/browser/android/rlz/rlz_ping_handler.cc b/chrome/browser/android/rlz/rlz_ping_handler.cc --- a/chrome/browser/android/rlz/rlz_ping_handler.cc @@ -112,3 +121,6 @@ diff --git a/rlz/lib/lib_values.h b/rlz/lib/lib_values.h extern const int kFinancialPort; +-- +2.7.4 + diff --git a/patches/BRM031_ungoogled-chromium-disable-translate.patch b/patches/BRM031_ungoogled-chromium-Disable-translate-integration.patch similarity index 83% rename from patches/BRM031_ungoogled-chromium-disable-translate.patch rename to patches/BRM031_ungoogled-chromium-Disable-translate-integration.patch index 1794135b..7afec597 100644 --- a/patches/BRM031_ungoogled-chromium-disable-translate.patch +++ b/patches/BRM031_ungoogled-chromium-Disable-translate-integration.patch @@ -1,8 +1,12 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:28:53 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:28:53 +0100 +Subject: ungoogled-chromium: Disable translate integration - ungoogled-chromium: Disable translate - Disable Google Translate integration +--- + components/translate/content/renderer/translate_helper.cc | 4 +++- + components/translate/core/browser/translate_manager.cc | 2 +- + components/translate/core/browser/translate_script.cc | 3 +-- + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/translate/content/renderer/translate_helper.cc b/components/translate/content/renderer/translate_helper.cc --- a/components/translate/content/renderer/translate_helper.cc @@ -44,3 +48,6 @@ diff --git a/components/translate/core/browser/translate_script.cc b/components/ // Append embedded translate.js and a remote element library. base::StringPiece str = +-- +2.7.4 + diff --git a/patches/BRM032_ungoogled-chromium-disable-profile-avatar-downloading.patch b/patches/BRM032_ungoogled-chromium-Disable-profile-avatar-downloading.patch similarity index 77% rename from patches/BRM032_ungoogled-chromium-disable-profile-avatar-downloading.patch rename to patches/BRM032_ungoogled-chromium-Disable-profile-avatar-downloading.patch index 24932e37..b73a3530 100644 --- a/patches/BRM032_ungoogled-chromium-disable-profile-avatar-downloading.patch +++ b/patches/BRM032_ungoogled-chromium-Disable-profile-avatar-downloading.patch @@ -1,8 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:29:30 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:29:30 +0100 +Subject: ungoogled-chromium: Disable profile avatar downloading - ungoogled-chromium: Disable profile avatar downloading - Stop downloading profile avatar +--- + chrome/browser/profiles/profile_avatar_downloader.cc | 8 +------- + 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chrome/browser/profiles/profile_avatar_downloader.cc b/chrome/browser/profiles/profile_avatar_downloader.cc --- a/chrome/browser/profiles/profile_avatar_downloader.cc @@ -28,3 +30,6 @@ diff --git a/chrome/browser/profiles/profile_avatar_downloader.cc b/chrome/brows net::NetworkTrafficAnnotationTag traffic_annotation = net::DefineNetworkTrafficAnnotation("profile_avatar", R"( semantics { +-- +2.7.4 + diff --git a/patches/BRM033_ungoogled-chromium-disable-intranet-redirect-detector.patch b/patches/BRM033_ungoogled-chromium-Disable-intranet-redirect-detector.patch similarity index 52% rename from patches/BRM033_ungoogled-chromium-disable-intranet-redirect-detector.patch rename to patches/BRM033_ungoogled-chromium-Disable-intranet-redirect-detector.patch index 6efed2ee..b536815c 100644 --- a/patches/BRM033_ungoogled-chromium-disable-intranet-redirect-detector.patch +++ b/patches/BRM033_ungoogled-chromium-Disable-intranet-redirect-detector.patch @@ -1,9 +1,13 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:30:30 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:30:30 +0100 +Subject: ungoogled-chromium: Disable intranet redirect detector - ungoogled-chromium: Disable intranet redirect detector - Disables the intranet redirect detector. It generates extra DNS requests and the functionality using this is disabled - See this page for more information: https://mikewest.org/2012/02/chrome-connects-to-three-random-domains-at-startup +Disables the intranet redirect detector. It generates extra DNS requests and the functionality using this is disabled. + +See this page for more information: https://mikewest.org/2012/02/chrome-connects-to-three-random-domains-at-startup +--- + chrome/browser/intranet_redirect_detector.cc | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/browser/intranet_redirect_detector.cc b/chrome/browser/intranet_redirect_detector.cc --- a/chrome/browser/intranet_redirect_detector.cc @@ -19,3 +23,6 @@ diff --git a/chrome/browser/intranet_redirect_detector.cc b/chrome/browser/intra DCHECK(fetchers_.empty() && resulting_origins_.empty()); +-- +2.7.4 + diff --git a/patches/BRM034_ungoogled-chromium-disable-google-host-detection.patch b/patches/BRM034_ungoogled-chromium-Disable-Google-host-detection.patch similarity index 95% rename from patches/BRM034_ungoogled-chromium-disable-google-host-detection.patch rename to patches/BRM034_ungoogled-chromium-Disable-Google-host-detection.patch index 9340c3ea..3fc4b763 100644 --- a/patches/BRM034_ungoogled-chromium-disable-google-host-detection.patch +++ b/patches/BRM034_ungoogled-chromium-Disable-Google-host-detection.patch @@ -1,8 +1,15 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:36:33 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:36:33 +0100 +Subject: ungoogled-chromium: Disable Google host detection - ungoogled-chromium: Disable Google host detection - Disables various detections of Google hosts and functionality specific to them +Disables various detections of Google hosts and functionality specific to them +--- + .../page_load_metrics/page_load_metrics_util.cc | 4 +- + .../page_load_metrics/page_load_metrics_util.cc | 33 +--- + components/google/core/browser/google_util.cc | 193 ++------------------- + components/search_engines/template_url.cc | 5 - + net/base/url_util.cc | 22 --- + 5 files changed, 13 insertions(+), 244 deletions(-) diff --git a/chrome/browser/page_load_metrics/page_load_metrics_util.cc b/chrome/browser/page_load_metrics/page_load_metrics_util.cc --- a/chrome/browser/page_load_metrics/page_load_metrics_util.cc @@ -361,3 +368,6 @@ diff --git a/net/base/url_util.cc b/net/base/url_util.cc return false; } +-- +2.7.4 + diff --git a/patches/BRM035_ungoogled-chromium-disable-gcm.patch b/patches/BRM035_ungoogled-chromium-Disable-GCM.patch similarity index 77% rename from patches/BRM035_ungoogled-chromium-disable-gcm.patch rename to patches/BRM035_ungoogled-chromium-Disable-GCM.patch index 3e085c1a..524a15d7 100644 --- a/patches/BRM035_ungoogled-chromium-disable-gcm.patch +++ b/patches/BRM035_ungoogled-chromium-Disable-GCM.patch @@ -1,8 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:37:10 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:37:10 +0100 +Subject: ungoogled-chromium: Disable GCM - ungoogled-chromium: Disable GCM - Disable Google Cloud Messaging (GCM) client +Disable Google Cloud Messaging (GCM) client +--- + components/gcm_driver/gcm_client_impl.cc | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc --- a/components/gcm_driver/gcm_client_impl.cc @@ -31,3 +34,6 @@ diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gc // Make sure no checkin is in progress. if (checkin_request_.get() || !device_checkin_info_.accounts_set) return; +-- +2.7.4 + diff --git a/patches/BRM036_ungoogled-chromium-disable-gaia.patch b/patches/BRM036_ungoogled-chromium-Disable-Gaia.patch similarity index 90% rename from patches/BRM036_ungoogled-chromium-disable-gaia.patch rename to patches/BRM036_ungoogled-chromium-Disable-Gaia.patch index 932ffa3e..e367ee55 100644 --- a/patches/BRM036_ungoogled-chromium-disable-gaia.patch +++ b/patches/BRM036_ungoogled-chromium-Disable-Gaia.patch @@ -1,9 +1,19 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:37:52 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:37:52 +0100 +Subject: ungoogled-chromium: Disable Gaia - ungoogled-chromium: Disable Gaia - Disables Gaia code - Somehow it is still activated even without being signed-in: https://github.com/Eloston/ungoogled-chromium/issues/104 +Disables Gaia code. +Somehow it is still being activated even without being signed-in. + +See also: https://github.com/Eloston/ungoogled-chromium/issues/104 +--- + chrome/browser/browser_resources.grd | 2 -- + .../component_extensions_whitelist/whitelist.cc | 1 - + .../signin/gaia_auth_extension_loader.cc | 7 ------ + .../resources/component_extension_resources.grd | 2 -- + chrome/browser/ui/webui/signin/inline_login_ui.cc | 1 - + google_apis/gaia/gaia_auth_fetcher.cc | 29 ---------------------- + 6 files changed, 42 deletions(-) diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd --- a/chrome/browser/browser_resources.grd @@ -119,3 +129,6 @@ diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_ } // static +-- +2.7.4 + diff --git a/patches/BRM037_ungoogled-chromium-clear-http-cache-menu-item.patch b/patches/BRM037_ungoogled-chromium-Clear-HTTP-cache-menu-item.patch similarity index 89% rename from patches/BRM037_ungoogled-chromium-clear-http-cache-menu-item.patch rename to patches/BRM037_ungoogled-chromium-Clear-HTTP-cache-menu-item.patch index 2d816d7b..3a477c60 100644 --- a/patches/BRM037_ungoogled-chromium-clear-http-cache-menu-item.patch +++ b/patches/BRM037_ungoogled-chromium-Clear-HTTP-cache-menu-item.patch @@ -1,8 +1,20 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Mon Feb 12 21:45:21 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Mon, 12 Feb 2018 21:45:21 +0100 +Subject: ungoogled-chromium: Clear HTTP cache menu item - ungoogled-chromium: Clear HTTP cache menu item - Adds a menu item under "More tools" to clear the HTTP authentication cache on demand +Adds a menu item under "More tools" to clear the HTTP authentication cache on demand +--- + chrome/app/chrome_command_ids.h | 1 + + chrome/app/generated_resources.grd | 6 ++++++ + chrome/browser/ui/browser_command_controller.cc | 7 +++++++ + chrome/browser/ui/toolbar/app_menu_model.cc | 8 ++++++++ + chrome/browser/ui/toolbar/app_menu_model.h | 1 + + chrome/browser/ui/views/frame/global_menu_bar_x11.cc | 1 + + net/http/http_auth_cache.cc | 4 ++++ + net/http/http_auth_cache.h | 2 ++ + tools/metrics/histograms/enums.xml | 1 + + tools/metrics/histograms/histograms.xml | 1 + + 10 files changed, 32 insertions(+) diff --git a/chrome/app/chrome_command_ids.h b/chrome/app/chrome_command_ids.h --- a/chrome/app/chrome_command_ids.h @@ -164,3 +176,6 @@ diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/ +-- +2.7.4 + diff --git a/patches/BRM038_bromite-adblock-engine.patch b/patches/BRM038_Bromite-adblock-engine.patch similarity index 99% rename from patches/BRM038_bromite-adblock-engine.patch rename to patches/BRM038_Bromite-adblock-engine.patch index 7e2b5b14..ff58458d 100644 --- a/patches/BRM038_bromite-adblock-engine.patch +++ b/patches/BRM038_Bromite-adblock-engine.patch @@ -1,12 +1,22 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Tue Oct 10 20:23:06 2017 +0200 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Tue, 10 Oct 2017 20:23:06 +0200 +Subject: Bromite adblock engine - Bromite adblock engine - Updated adblock entries with most recent EasyList - Updated adblock engine (now testable) - Ported from NoChromo patch - - Adblock engine upgrade: add domain support +Update adblock entries with most recent EasyList +Make interception testable +Add domain support + +Ported from NoChromo patch +--- + net/BUILD.gn | 2 + + net/url_request/adblock_entries.h | 63641 +++++++++++++++++++++++++++++++++ + net/url_request/adblock_intercept.cc | 163 + + net/url_request/adblock_intercept.h | 12 + + net/url_request/url_request.cc | 14 +- + 5 files changed, 63831 insertions(+), 1 deletion(-) + create mode 100644 net/url_request/adblock_entries.h + create mode 100644 net/url_request/adblock_intercept.cc + create mode 100644 net/url_request/adblock_intercept.h diff --git a/net/BUILD.gn b/net/BUILD.gn --- a/net/BUILD.gn @@ -63896,3 +63906,6 @@ diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc context->url_requests()->insert(this); net_log_.BeginEvent( NetLogEventType::REQUEST_ALIVE, +-- +2.7.4 + diff --git a/patches/BRM039_user-agent-anonymize.patch b/patches/BRM039_User-Agent-anonymize.patch similarity index 82% rename from patches/BRM039_user-agent-anonymize.patch rename to patches/BRM039_User-Agent-anonymize.patch index 70e58b34..1c3577ff 100644 --- a/patches/BRM039_user-agent-anonymize.patch +++ b/patches/BRM039_User-Agent-anonymize.patch @@ -1,8 +1,11 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Wed Mar 21 14:15:28 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Wed, 21 Mar 2018 14:15:28 +0100 +Subject: User Agent: anonymize - User Agent: anonymize - Replace device name and build id with a fixed one +Remove device name and build id +--- + content/common/user_agent.cc | 25 ++----------------------- + 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc --- a/content/common/user_agent.cc @@ -46,3 +49,6 @@ diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc #else "%s %s", unixinfo.sysname, // e.g. Linux +-- +2.7.4 + diff --git a/patches/BRM040_battery-api-return-nothing.patch b/patches/BRM040_Battery-API-return-nothing.patch similarity index 86% rename from patches/BRM040_battery-api-return-nothing.patch rename to patches/BRM040_Battery-API-return-nothing.patch index d23954f3..03929257 100644 --- a/patches/BRM040_battery-api-return-nothing.patch +++ b/patches/BRM040_Battery-API-return-nothing.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Mar 22 22:11:57 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 22 Mar 2018 22:11:57 +0100 +Subject: Battery API: return nothing - Battery API: return nothing +--- + .../Source/modules/battery/BatteryManager.cpp | 25 ++++------------------ + 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp b/third_party/WebKit/Source/modules/battery/BatteryManager.cpp --- a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp @@ -56,3 +59,6 @@ diff --git a/third_party/WebKit/Source/modules/battery/BatteryManager.cpp b/thir } void BatteryManager::RegisterWithDispatcher() { +-- +2.7.4 + diff --git a/patches/BRM041_disable-plugins-enumeration.patch b/patches/BRM041_Disable-plugins-enumeration.patch similarity index 71% rename from patches/BRM041_disable-plugins-enumeration.patch rename to patches/BRM041_Disable-plugins-enumeration.patch index 4f4b885b..c98562be 100644 --- a/patches/BRM041_disable-plugins-enumeration.patch +++ b/patches/BRM041_Disable-plugins-enumeration.patch @@ -1,7 +1,10 @@ -Author: csagan5 <32685696+csagan5@users.noreply.github.com> -Date: Thu Mar 22 22:38:00 2018 +0100 +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Thu, 22 Mar 2018 22:38:00 +0100 +Subject: Disable plugins enumeration - Disable plugins enumeration +--- + third_party/WebKit/Source/core/frame/LocalFrame.cpp | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp @@ -19,3 +22,6 @@ diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/W } DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); +-- +2.7.4 + diff --git a/patches/BRM042_Canvas-disable-toDataURL-and-toBlob.patch b/patches/BRM042_Canvas-disable-toDataURL-and-toBlob.patch new file mode 100644 index 00000000..9fad18c9 --- /dev/null +++ b/patches/BRM042_Canvas-disable-toDataURL-and-toBlob.patch @@ -0,0 +1,106 @@ +From: csagan5 <32685696+csagan5@users.noreply.github.com> +Date: Sat, 24 Mar 2018 05:18:03 +0100 +Subject: Canvas: disable toDataURL and toBlob + +--- + .../Source/core/html/canvas/HTMLCanvasElement.cpp | 71 ---------------------- + 1 file changed, 71 deletions(-) + +diff --git a/third_party/WebKit/Source/core/html/canvas/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/canvas/HTMLCanvasElement.cpp +--- a/third_party/WebKit/Source/core/html/canvas/HTMLCanvasElement.cpp ++++ b/third_party/WebKit/Source/core/html/canvas/HTMLCanvasElement.cpp +@@ -779,42 +779,7 @@ String HTMLCanvasElement::ToDataURLInternal( + const String& mime_type, + const double& quality, + SourceDrawingBuffer source_buffer) const { +- if (!IsPaintable()) + return String("data:,"); +- +- String encoding_mime_type = ImageEncoderUtils::ToEncodingMimeType( +- mime_type, ImageEncoderUtils::kEncodeReasonToDataURL); +- +- Optional timer; +- if (encoding_mime_type == "image/png") { +- DEFINE_THREAD_SAFE_STATIC_LOCAL( +- CustomCountHistogram, scoped_us_counter_png, +- ("Blink.Canvas.ToDataURL.PNG", 0, 10000000, 50)); +- timer.emplace(scoped_us_counter_png); +- } else if (encoding_mime_type == "image/jpeg") { +- DEFINE_THREAD_SAFE_STATIC_LOCAL( +- CustomCountHistogram, scoped_us_counter_jpeg, +- ("Blink.Canvas.ToDataURL.JPEG", 0, 10000000, 50)); +- timer.emplace(scoped_us_counter_jpeg); +- } else if (encoding_mime_type == "image/webp") { +- DEFINE_THREAD_SAFE_STATIC_LOCAL( +- CustomCountHistogram, scoped_us_counter_webp, +- ("Blink.Canvas.ToDataURL.WEBP", 0, 10000000, 50)); +- timer.emplace(scoped_us_counter_webp); +- } else { +- // Currently we only support three encoding types. +- NOTREACHED(); +- } +- +- scoped_refptr image_bitmap = +- ToStaticBitmapImage(source_buffer, kPreferNoAcceleration); +- if (image_bitmap) { +- std::unique_ptr data_buffer = +- ImageDataBuffer::Create(image_bitmap); +- if (data_buffer) +- return data_buffer->ToDataURL(encoding_mime_type, quality); +- } +- return String("data:,"); + } + + String HTMLCanvasElement::toDataURL(const String& mime_type, +@@ -844,48 +809,12 @@ void HTMLCanvasElement::toBlob(V8BlobCallback* callback, + return; + } + +- if (!IsPaintable()) { +- // If the canvas element's bitmap has no pixels +- GetDocument() +- .GetTaskRunner(TaskType::kCanvasBlobSerialization) +- ->PostTask(FROM_HERE, +- WTF::Bind(&V8BlobCallback::InvokeAndReportException, +- WrapPersistentCallbackFunction(callback), nullptr, +- nullptr)); +- return; +- } +- +- double start_time = WTF::CurrentTimeTicksInSeconds(); +- double quality = kUndefinedQualityValue; +- if (!quality_argument.IsEmpty()) { +- v8::Local v8_value = quality_argument.V8Value(); +- if (v8_value->IsNumber()) { +- quality = v8_value.As()->Value(); +- } +- } +- +- String encoding_mime_type = ImageEncoderUtils::ToEncodingMimeType( +- mime_type, ImageEncoderUtils::kEncodeReasonToBlobCallback); +- +- CanvasAsyncBlobCreator* async_creator = nullptr; +- scoped_refptr image_bitmap = +- ToStaticBitmapImage(kBackBuffer, kPreferNoAcceleration); +- if (image_bitmap) { +- async_creator = CanvasAsyncBlobCreator::Create( +- image_bitmap, encoding_mime_type, callback, start_time, &GetDocument()); +- } +- +- if (async_creator) { +- async_creator->ScheduleAsyncBlobCreation(quality); +- } else { + GetDocument() + .GetTaskRunner(TaskType::kCanvasBlobSerialization) + ->PostTask(FROM_HERE, + WTF::Bind(&V8BlobCallback::InvokeAndReportException, + WrapPersistentCallbackFunction(callback), nullptr, + nullptr)); +- return; +- } + } + + void HTMLCanvasElement::AddListener(CanvasDrawListener* listener) { +-- +2.7.4 +