瀏覽代碼

Release 78.0.3904.72

csagan5 5 年之前
父節點
當前提交
2a03789061

+ 5 - 0
CHANGELOG.md

@@ -1,3 +1,8 @@
+# 78.0.3904.72
+* updated fixed User-agent phone model
+* fix network predictions bug (fixes https://github.com/bromite/bromite/issues/387)
+* fix crash in settings (fixes https://github.com/bromite/bromite/issues/388)
+
 # 78.0.3904.63
 # 78.0.3904.63
 * replace Beta DoH service URL for Google (https://developers.google.com/speed/public-dns/docs/doh/migration)
 * replace Beta DoH service URL for Google (https://developers.google.com/speed/public-dns/docs/doh/migration)
 * disable AImageReaderMediaPlayer until upstream bug is fixed (https://bugs.chromium.org/p/chromium/issues/detail?id=977583)
 * disable AImageReaderMediaPlayer until upstream bug is fixed (https://bugs.chromium.org/p/chromium/issues/detail?id=977583)

+ 1 - 1
build/patches/Add-flags-to-disable-device-motion-and-orientation-APIs.patch

@@ -83,7 +83,7 @@ diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.
 diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
 diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
 --- a/content/public/common/content_features.cc
 --- a/content/public/common/content_features.cc
 +++ b/content/public/common/content_features.cc
 +++ b/content/public/common/content_features.cc
-@@ -685,6 +685,16 @@ const base::Feature kExperimentalProductivityFeatures{
+@@ -689,6 +689,16 @@ const base::Feature kExperimentalProductivityFeatures{
  // TODO(rouslan): Remove this.
  // TODO(rouslan): Remove this.
  const base::Feature kWebPayments{"WebPayments",
  const base::Feature kWebPayments{"WebPayments",
                                   base::FEATURE_ENABLED_BY_DEFAULT};
                                   base::FEATURE_ENABLED_BY_DEFAULT};

+ 1 - 1
build/patches/Add-option-to-use-home-page-as-NTP.patch

@@ -25,7 +25,7 @@ diff --git a/chrome/android/java/res/xml/homepage_preferences.xml b/chrome/andro
 +        android:summaryOn="@string/options_ntp_is_homepage_label"
 +        android:summaryOn="@string/options_ntp_is_homepage_label"
 +        android:summaryOff="@string/options_ntp_is_homepage_label" />
 +        android:summaryOff="@string/options_ntp_is_homepage_label" />
 +
 +
-+    <org.chromium.chrome.browser.preferences.ChromeSwitchPreferenceCompat
++    <org.chromium.chrome.browser.preferences.ChromeSwitchPreference
          android:key="homepage_switch"
          android:key="homepage_switch"
          android:summaryOn="@string/text_on"
          android:summaryOn="@string/text_on"
          android:summaryOff="@string/text_off" />
          android:summaryOff="@string/text_off" />

+ 2 - 2
build/patches/Disable-safe-browsing.patch

@@ -406,7 +406,7 @@ diff --git a/chrome/android/java/strings/android_chrome_strings.grd b/chrome/and
        <message name="IDS_NETWORK_PREDICTIONS_TITLE" desc="Title of a setting in Chrome settings. Followed by a body that describes the setting. If setting is turned on, Chrome will download certain pages to the user’s phone automatically for offline reading. 'predictions' convey the idea that Chrome is using predictive models to figure out pages likely of interest to the user.">
        <message name="IDS_NETWORK_PREDICTIONS_TITLE" desc="Title of a setting in Chrome settings. Followed by a body that describes the setting. If setting is turned on, Chrome will download certain pages to the user’s phone automatically for offline reading. 'predictions' convey the idea that Chrome is using predictive models to figure out pages likely of interest to the user.">
          Use page predictions
          Use page predictions
        </message>
        </message>
-@@ -4047,9 +4017,6 @@ The site does NOT gain access to the camera. The camera images are only visible
+@@ -4044,9 +4014,6 @@ The site does NOT gain access to the camera. The camera images are only visible
        <message name="IDS_USAGE_STATS_CONSENT_PROMPT" desc="Consent prompt when authorizing Digital Wellbeing to access Chrome usage data">
        <message name="IDS_USAGE_STATS_CONSENT_PROMPT" desc="Consent prompt when authorizing Digital Wellbeing to access Chrome usage data">
         You can see sites you visit in Chrome and set timers for them.\n\nGoogle gets info about the sites you set timers for and how long you visit them. This info is used to make Digital Wellbeing better.
         You can see sites you visit in Chrome and set timers for them.\n\nGoogle gets info about the sites you set timers for and how long you visit them. This info is used to make Digital Wellbeing better.
        </message>
        </message>
@@ -419,7 +419,7 @@ diff --git a/chrome/android/java/strings/android_chrome_strings.grd b/chrome/and
 diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
 diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
 --- a/chrome/browser/BUILD.gn
 --- a/chrome/browser/BUILD.gn
 +++ b/chrome/browser/BUILD.gn
 +++ b/chrome/browser/BUILD.gn
-@@ -3039,8 +3039,6 @@ jumbo_split_static_library("browser") {
+@@ -3037,8 +3037,6 @@ jumbo_split_static_library("browser") {
        "download/download_commands.h",
        "download/download_commands.h",
        "download/download_crx_util.cc",
        "download/download_crx_util.cc",
        "download/download_crx_util.h",
        "download/download_crx_util.h",

+ 4 - 4
build/patches/User-Agent-anonymize.patch

@@ -17,8 +17,8 @@ diff --git a/components/version_info/version_info.cc b/components/version_info/v
  
  
  std::string GetProductNameAndVersionForUserAgent() {
  std::string GetProductNameAndVersionForUserAgent() {
 -  return "Chrome/" + GetVersionNumber();
 -  return "Chrome/" + GetVersionNumber();
-+  // a common version for Android 8.0.0
-+  return "Chrome/74.0.3729.157";
++  // a common version for Android 8.1.0
++  return "Chrome/77.0.3865.92";
  }
  }
  
  
  std::string GetProductName() {
  std::string GetProductName() {
@@ -30,7 +30,7 @@ diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
    }
    }
  #elif defined(OS_ANDROID)
  #elif defined(OS_ANDROID)
 -  std::string android_version_str = base::SysInfo::OperatingSystemVersion();
 -  std::string android_version_str = base::SysInfo::OperatingSystemVersion();
-+  std::string android_version_str = "8.0.0";
++  std::string android_version_str = "8.1.0";
    std::string android_info_str = GetAndroidOSInfo(include_android_build_number);
    std::string android_info_str = GetAndroidOSInfo(include_android_build_number);
  #elif defined(OS_POSIX) && !defined(OS_MACOSX)
  #elif defined(OS_POSIX) && !defined(OS_MACOSX)
    // Should work on any Posix system.
    // Should work on any Posix system.
@@ -49,7 +49,7 @@ diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
 -    semicolon_inserted = true;
 -    semicolon_inserted = true;
 -  }
 -  }
 +  // Send spoofed information about the device.
 +  // Send spoofed information about the device.
-+  std::string android_info_str = "; SM-G960F";
++  std::string android_info_str = "; Moto G (5S) Plus";
 +  bool semicolon_inserted = true;
 +  bool semicolon_inserted = true;
  
  
    // Append the build ID.
    // Append the build ID.