Release 96.0.4664.54
This commit is contained in:
parent
4774aeba9f
commit
5b6a7442e0
11 changed files with 462 additions and 1628 deletions
|
@ -1,3 +1,11 @@
|
|||
# 96.0.4664.54
|
||||
* restored offline-indicator-v2 flag (fixes https://github.com/bromite/bromite/issues/1588)
|
||||
* re-introduced option to use home page as NTP (thanks to @uazo, fixes https://github.com/bromite/bromite/issues/1519)
|
||||
* ask user before closing all tabs (thanks to @uazo, fixes https://github.com/bromite/bromite/issues/1561)
|
||||
* fix crash on always incognito on tablet (thanks to @uazo, fixes https://github.com/bromite/bromite/issues/1611)
|
||||
* dropped patch to not upload crash data
|
||||
* fix autofill pop-up not appearing (thanks to @uazo, fixes https://github.com/bromite/bromite/issues/1534)
|
||||
|
||||
# 95.0.4638.79
|
||||
* improvements for field trials disable patch (thanks to @uazo)
|
||||
* remove privacy sandbox UI leftover (thanks to @uazo, fixes https://github.com/bromite/bromite/issues/1560)
|
||||
|
|
|
@ -116,6 +116,7 @@ Flags which have been retired from upstream Chromium but are still available in
|
|||
* `#num-raster-threads`
|
||||
* `#enable-image-reader`, enabled by default
|
||||
* `#enable-tab-groups` and `#enable-tab-groups-ui-improvements`
|
||||
* `#offline-indicator-v2`
|
||||
|
||||
New flags:
|
||||
|
||||
|
|
|
@ -168,4 +168,5 @@ Disable-Accessibility-service-by-default.patch
|
|||
Disable-privacy-sandbox.patch
|
||||
Disable-conversion-measurement-api.patch
|
||||
Disable-FLoC.patch
|
||||
Restore-offline-indicator-v2-flag.patch
|
||||
Automated-domain-substitution.patch
|
||||
|
|
|
@ -7,13 +7,13 @@ Subject: Add flag to disable vibration
|
|||
chrome/browser/flag_descriptions.cc | 3 +++
|
||||
chrome/browser/flag_descriptions.h | 3 +++
|
||||
content/child/runtime_features.cc | 1 +
|
||||
content/public/common/content_features.cc | 3 +++
|
||||
content/public/common/content_features.cc | 4 ++++
|
||||
content/public/common/content_features.h | 2 ++
|
||||
third_party/blink/public/platform/web_runtime_features.h | 1 +
|
||||
.../blink/renderer/modules/vibration/vibration_controller.cc | 3 +++
|
||||
.../blink/renderer/platform/exported/web_runtime_features.cc | 4 ++++
|
||||
.../blink/renderer/platform/runtime_enabled_features.json5 | 4 ++++
|
||||
10 files changed, 28 insertions(+)
|
||||
10 files changed, 29 insertions(+)
|
||||
|
||||
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
|
@ -69,13 +69,15 @@ 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
|
||||
--- a/content/public/common/content_features.cc
|
||||
+++ b/content/public/common/content_features.cc
|
||||
@@ -103,6 +103,9 @@ const base::Feature kBackForwardCacheMemoryControls {
|
||||
@@ -102,7 +102,11 @@ const base::Feature kBackForwardCacheMemoryControls {
|
||||
#endif
|
||||
};
|
||||
|
||||
// Block subresource requests whose URLs contain embedded credentials (e.g.
|
||||
+// Enables vibration; an user gesture will still be required if enabled.
|
||||
+const base::Feature kVibration{"Vibration",
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
+
|
||||
// Block subresource requests whose URLs contain embedded credentials (e.g.
|
||||
+// Enables vibration; an user gesture will still be required if enabled.
|
||||
// `https://user:pass@example.com/resource`).
|
||||
const base::Feature kBlockCredentialedSubresources{
|
||||
"BlockCredentialedSubresources", base::FEATURE_ENABLED_BY_DEFAULT};
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,7 @@ diff --git a/chrome/android/java/res/xml/accessibility_preferences.xml b/chrome/
|
|||
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
@@ -1284,6 +1284,12 @@ Your Google account may have other forms of browsing history like searches and a
|
||||
@@ -1287,6 +1287,12 @@ Your Google account may have other forms of browsing history like searches and a
|
||||
<message name="IDS_PREFS_ACCESSIBILITY" desc="Title of Accessibility settings, which allows the user to change webpage font sizes. [CHAR_LIMIT=32]">
|
||||
Accessibility
|
||||
</message>
|
||||
|
|
|
@ -6,25 +6,46 @@ There are 2 different types of autofill: one managed via GCM and the
|
|||
native Android one that uses the provider assigned by the user
|
||||
(which can be any user installed app like Bitwarden for example).
|
||||
In chromium GCM is active while in the WebView the latter.
|
||||
This patch uses the WebView code to activate native Android autofill.
|
||||
This patch uses WebView code to enable native Android autofill
|
||||
along with browser-managed autofill.
|
||||
A separate toggle is introduced to enable autofill in incognito mode.
|
||||
|
||||
See also: https://github.com/bromite/bromite/issues/547
|
||||
---
|
||||
android_webview/browser/aw_contents.cc | 1 +
|
||||
chrome/android/BUILD.gn | 1 +
|
||||
.../settings/PasswordSettings.java | 58 ++++++++++++++++++-
|
||||
.../chromium/chrome/browser/tab/TabImpl.java | 43 ++++++++++++++
|
||||
.../browser/tab/TabViewAndroidDelegate.java | 14 +++++
|
||||
chrome/browser/BUILD.gn | 8 +++
|
||||
chrome/browser/android/tab_android.cc | 26 +++++++++
|
||||
.../settings/PasswordSettings.java | 82 ++++++++++++++++++-
|
||||
.../chromium/chrome/browser/tab/TabImpl.java | 51 ++++++++++++
|
||||
.../browser/tab/TabViewAndroidDelegate.java | 14 ++++
|
||||
chrome/browser/BUILD.gn | 8 ++
|
||||
chrome/browser/android/tab_android.cc | 27 ++++++
|
||||
chrome/browser/android/tab_android.h | 2 +
|
||||
.../strings/android_chrome_strings.grd | 3 +
|
||||
chrome/browser/ui/tab_helpers.cc | 6 +-
|
||||
.../autofill/core/common/autofill_prefs.cc | 5 ++
|
||||
.../autofill/core/common/autofill_prefs.h | 1 +
|
||||
.../embedder_support/view/ContentView.java | 48 +++++++++++++++
|
||||
.../chromium/ui/base/ViewAndroidDelegate.java | 8 +++
|
||||
13 files changed, 221 insertions(+), 2 deletions(-)
|
||||
.../tab_web_contents_delegate_android.cc | 3 +-
|
||||
.../strings/android_chrome_strings.grd | 6 ++
|
||||
chrome/browser/ui/tab_helpers.cc | 7 +-
|
||||
.../browser/content_autofill_driver.cc | 50 +++++++++--
|
||||
.../content/browser/content_autofill_driver.h | 8 +-
|
||||
.../content_autofill_driver_factory.cc | 9 +-
|
||||
.../browser/content_autofill_driver_factory.h | 4 +
|
||||
.../renderer/password_autofill_agent.cc | 5 +-
|
||||
.../autofill/core/common/autofill_prefs.cc | 8 ++
|
||||
.../autofill/core/common/autofill_prefs.h | 2 +
|
||||
.../embedder_support/view/ContentView.java | 48 +++++++++++
|
||||
.../chromium/ui/base/ViewAndroidDelegate.java | 8 ++
|
||||
weblayer/browser/tab_impl.cc | 3 +-
|
||||
21 files changed, 332 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/android_webview/browser/aw_contents.cc b/android_webview/browser/aw_contents.cc
|
||||
--- a/android_webview/browser/aw_contents.cc
|
||||
+++ b/android_webview/browser/aw_contents.cc
|
||||
@@ -335,6 +335,7 @@ void AwContents::InitAutofillIfNecessary(bool autocomplete_enabled) {
|
||||
is_download_manager_disabled_for_testing())
|
||||
? autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER
|
||||
: autofill::AutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER,
|
||||
+ /*enable_browser_autofill_manager*/ false,
|
||||
autofill_provider
|
||||
? base::BindRepeating(&autofill::AndroidAutofillManager::Create)
|
||||
: autofill::AutofillManager::AutofillManagerFactoryCallback());
|
||||
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
|
||||
--- a/chrome/android/BUILD.gn
|
||||
+++ b/chrome/android/BUILD.gn
|
||||
|
@ -59,26 +80,29 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/password_manage
|
|||
// Keys for name/password dictionaries.
|
||||
public static final String PASSWORD_LIST_URL = "url";
|
||||
public static final String PASSWORD_LIST_NAME = "name";
|
||||
@@ -75,6 +81,10 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
@@ -75,6 +81,12 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
public static final String PREF_TRUSTED_VAULT_OPT_IN = "trusted_vault_opt_in";
|
||||
public static final String PREF_KEY_MANAGE_ACCOUNT_LINK = "manage_account_link";
|
||||
|
||||
+ public static final String PREF_ANDROID_AUTOFILL_SWITCH = "android_autofill_switch";
|
||||
+ public static final String PREF_ANDROID_AUTOFILL_INCOGNITO_SWITCH = "android_autofill_incognito_switch";
|
||||
+
|
||||
+ private SnackbarManager mSnackbarManager;
|
||||
+ private Snackbar mSnackbar;
|
||||
+
|
||||
// A PasswordEntryViewer receives a boolean value with this key. If set true, the the entry was
|
||||
|
||||
// part of a search result.
|
||||
@@ -108,6 +118,7 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
@@ -108,6 +120,8 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
private String mSearchQuery;
|
||||
private Preference mLinkPref;
|
||||
private ChromeSwitchPreference mSavePasswordsSwitch;
|
||||
+ private ChromeSwitchPreference mEnableAndroidAutofillSwitch;
|
||||
+ private ChromeSwitchPreference mEnableAndroidAutofillIncognitoSwitch;
|
||||
private ChromeSwitchPreference mAutoSignInSwitch;
|
||||
private ChromeBasePreference mCheckPasswords;
|
||||
private ChromeBasePreference mTrustedVaultOptIn;
|
||||
@@ -272,6 +283,7 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
@@ -272,6 +286,7 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
getPreferenceScreen().removeAll();
|
||||
if (mSearchQuery == null) {
|
||||
createSavePasswordsSwitch();
|
||||
|
@ -86,7 +110,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/password_manage
|
|||
createAutoSignInCheckbox();
|
||||
if (mPasswordCheck != null) {
|
||||
createCheckPasswords();
|
||||
@@ -511,6 +523,50 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
@@ -511,6 +526,71 @@ public class PasswordSettings extends PreferenceFragmentCompat
|
||||
getPrefService().getBoolean(Pref.CREDENTIALS_ENABLE_SERVICE));
|
||||
}
|
||||
|
||||
|
@ -128,6 +152,27 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/password_manage
|
|||
+ mSnackbarManager.showSnackbar(mSnackbar);
|
||||
+ return true;
|
||||
+ });
|
||||
+
|
||||
+ mEnableAndroidAutofillIncognitoSwitch = new ChromeSwitchPreference(getStyledContext(), null);
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setKey(PREF_ANDROID_AUTOFILL_INCOGNITO_SWITCH);
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setTitle(R.string.enable_android_autofill_incognito);
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setOrder(ORDER_SWITCH);
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setSummaryOn(R.string.text_on);
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setSummaryOff(R.string.text_off);
|
||||
+
|
||||
+ try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {
|
||||
+ getPreferenceScreen().addPreference(mEnableAndroidAutofillIncognitoSwitch);
|
||||
+ }
|
||||
+
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setChecked(
|
||||
+ getPrefService().getBoolean(Pref.AUTOFILL_ANDROID_INCOGNITO_ENABLED));
|
||||
+
|
||||
+ mEnableAndroidAutofillIncognitoSwitch.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
+ getPrefService().setBoolean(Pref.AUTOFILL_ANDROID_INCOGNITO_ENABLED, (boolean) newValue);
|
||||
+ if (!mSnackbarManager.isShowing())
|
||||
+ mSnackbarManager.showSnackbar(mSnackbar);
|
||||
+ return true;
|
||||
+ });
|
||||
+ }
|
||||
+
|
||||
+ public void setSnackbarManager(SnackbarManager manager) {
|
||||
|
@ -197,27 +242,35 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabImpl.jav
|
|||
/**
|
||||
* Initializes the {@link WebContents}. Completes the browser content components initialization
|
||||
* around a native WebContents pointer.
|
||||
@@ -1408,6 +1437,19 @@ public class TabImpl implements Tab, TabObscuringHandler.Observer {
|
||||
@@ -1408,6 +1437,27 @@ public class TabImpl implements Tab, TabObscuringHandler.Observer {
|
||||
mDelegateFactory.createContextMenuPopulatorFactory(this), this));
|
||||
|
||||
mWebContents.notifyRendererPreferenceUpdate();
|
||||
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
|
||||
+ UserPrefs.get(Profile.getLastUsedRegularProfile())
|
||||
+ .getBoolean(Pref.AUTOFILL_ANDROID_ENABLED) == true) {
|
||||
+ SelectionPopupController selectionController =
|
||||
+ SelectionPopupController.fromWebContents(mWebContents);
|
||||
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
+ boolean autofillEnabled = false;
|
||||
+ if (isIncognito()) {
|
||||
+ autofillEnabled = UserPrefs.get(Profile.getLastUsedRegularProfile())
|
||||
+ .getBoolean(Pref.AUTOFILL_ANDROID_INCOGNITO_ENABLED);
|
||||
+ } else {
|
||||
+ autofillEnabled = UserPrefs.get(Profile.getLastUsedRegularProfile())
|
||||
+ .getBoolean(Pref.AUTOFILL_ANDROID_ENABLED);
|
||||
+ }
|
||||
+
|
||||
+ mAutofillProvider = new AutofillProvider(getContext(), cv, webContents, "bromite");
|
||||
+ TabImplJni.get().initializeAutofillIfNecessary(mNativeTabAndroid);
|
||||
+ mAutofillProvider.setWebContents(webContents);
|
||||
+ cv.setWebContents(webContents);
|
||||
+ selectionController.setNonSelectionActionModeCallback(
|
||||
+ new AutofillActionModeCallback(mThemedApplicationContext, mAutofillProvider));
|
||||
+ if (autofillEnabled) {
|
||||
+ SelectionPopupController selectionController =
|
||||
+ SelectionPopupController.fromWebContents(mWebContents);
|
||||
+ mAutofillProvider = new AutofillProvider(getContext(), cv, webContents, "bromite");
|
||||
+ TabImplJni.get().initializeAutofillIfNecessary(mNativeTabAndroid);
|
||||
+ mAutofillProvider.setWebContents(webContents);
|
||||
+ cv.setWebContents(webContents);
|
||||
+ selectionController.setNonSelectionActionModeCallback(
|
||||
+ new AutofillActionModeCallback(mThemedApplicationContext, mAutofillProvider));
|
||||
+ }
|
||||
+ }
|
||||
TabHelpers.initWebContentsHelpers(this);
|
||||
notifyContentChanged();
|
||||
} finally {
|
||||
@@ -1771,5 +1813,6 @@ public class TabImpl implements Tab, TabObscuringHandler.Observer {
|
||||
@@ -1771,5 +1821,6 @@ public class TabImpl implements Tab, TabObscuringHandler.Observer {
|
||||
void setActiveNavigationEntryTitleForUrl(long nativeTabAndroid, String url, String title);
|
||||
void loadOriginalImage(long nativeTabAndroid);
|
||||
boolean handleNonNavigationAboutURL(GURL url);
|
||||
|
@ -288,7 +341,7 @@ diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_
|
|||
using base::android::AttachCurrentThread;
|
||||
using base::android::ConvertUTF8ToJavaString;
|
||||
using base::android::JavaParamRef;
|
||||
@@ -437,3 +444,22 @@ static void JNI_TabImpl_Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
|
||||
@@ -437,3 +444,23 @@ static void JNI_TabImpl_Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
|
||||
// This will automatically bind to the Java object and pass ownership there.
|
||||
new TabAndroid(env, obj);
|
||||
}
|
||||
|
@ -308,6 +361,7 @@ diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_
|
|||
+ autofill::ChromeAutofillClient::FromWebContents(web_contents),
|
||||
+ g_browser_process->GetApplicationLocale(),
|
||||
+ autofill::BrowserAutofillManager::DISABLE_AUTOFILL_DOWNLOAD_MANAGER,
|
||||
+ /*enable_browser_autofill_manager*/ true,
|
||||
+ base::BindRepeating(&autofill::AndroidAutofillManager::Create));
|
||||
+ }
|
||||
+}
|
||||
|
@ -323,15 +377,31 @@ diff --git a/chrome/browser/android/tab_android.h b/chrome/browser/android/tab_a
|
|||
private:
|
||||
JavaObjectWeakGlobalRef weak_java_tab_;
|
||||
|
||||
diff --git a/chrome/browser/android/tab_web_contents_delegate_android.cc b/chrome/browser/android/tab_web_contents_delegate_android.cc
|
||||
--- a/chrome/browser/android/tab_web_contents_delegate_android.cc
|
||||
+++ b/chrome/browser/android/tab_web_contents_delegate_android.cc
|
||||
@@ -176,7 +176,8 @@ void TabWebContentsDelegateAndroid::PortalWebContentsCreated(
|
||||
portal_contents,
|
||||
autofill::ChromeAutofillClient::FromWebContents(portal_contents),
|
||||
g_browser_process->GetApplicationLocale(),
|
||||
- autofill::BrowserAutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
|
||||
+ autofill::BrowserAutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER,
|
||||
+ /*enable_browser_autofill_manager*/ true);
|
||||
ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
|
||||
portal_contents,
|
||||
autofill::ChromeAutofillClient::FromWebContents(portal_contents));
|
||||
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
||||
@@ -576,6 +576,9 @@ CHAR_LIMIT guidelines:
|
||||
@@ -576,6 +576,12 @@ CHAR_LIMIT guidelines:
|
||||
<message name="IDS_PASSWORD_SETTINGS_SAVE_PASSWORDS" desc="Title for the checkbox toggling whether passwords are saved or not. [CHAR_LIMIT=32]">
|
||||
Save passwords
|
||||
</message>
|
||||
+ <message name="IDS_ENABLE_ANDROID_AUTOFILL" desc="Title for the checkbox toggling whether enable Android native autofill or not. [CHAR_LIMIT=32]">
|
||||
+ Enable native Android autofill
|
||||
+ </message>
|
||||
+ <message name="IDS_ENABLE_ANDROID_AUTOFILL_INCOGNITO" desc="Title for the checkbox toggling whether enable Android native autofill or not in incognito mode. [CHAR_LIMIT=32]">
|
||||
+ Enable native Android autofill in incognito
|
||||
+ </message>
|
||||
<message name="IDS_PASSWORDS_AUTO_SIGNIN_TITLE" desc="Title for checkbox to enable automatically signing the user in to websites">
|
||||
Auto Sign-in
|
||||
|
@ -349,46 +419,328 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|||
#else
|
||||
#include "chrome/browser/accuracy_tips/accuracy_service_factory.h"
|
||||
#include "chrome/browser/banners/app_banner_manager_desktop.h"
|
||||
@@ -265,7 +268,8 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
@@ -265,7 +268,9 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
web_contents,
|
||||
autofill::ChromeAutofillClient::FromWebContents(web_contents),
|
||||
g_browser_process->GetApplicationLocale(),
|
||||
- autofill::BrowserAutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
|
||||
+ autofill::BrowserAutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER,
|
||||
+ /*enable_browser_autofill_manager*/ true,
|
||||
+ base::BindRepeating(&autofill::AndroidAutofillManager::Create));
|
||||
chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
|
||||
ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
|
||||
web_contents,
|
||||
diff --git a/components/autofill/content/browser/content_autofill_driver.cc b/components/autofill/content/browser/content_autofill_driver.cc
|
||||
--- a/components/autofill/content/browser/content_autofill_driver.cc
|
||||
+++ b/components/autofill/content/browser/content_autofill_driver.cc
|
||||
@@ -68,6 +68,7 @@ ContentAutofillDriver::ContentAutofillDriver(
|
||||
const std::string& app_locale,
|
||||
ContentAutofillRouter* autofill_router,
|
||||
AutofillManager::AutofillDownloadManagerState enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback)
|
||||
: render_frame_host_(render_frame_host),
|
||||
@@ -83,9 +84,11 @@ ContentAutofillDriver::ContentAutofillDriver(
|
||||
GetAutofillAgent()->SetSecureContextRequired(true);
|
||||
GetAutofillAgent()->SetFocusRequiresScroll(false);
|
||||
GetAutofillAgent()->SetQueryPasswordSuggestion(true);
|
||||
- } else {
|
||||
+ }
|
||||
+ if (!autofill_manager_factory_callback || enable_browser_autofill_manager) {
|
||||
SetBrowserAutofillManager(std::make_unique<BrowserAutofillManager>(
|
||||
- this, client, app_locale, enable_download_manager));
|
||||
+ this, client, app_locale, enable_download_manager),
|
||||
+ enable_browser_autofill_manager);
|
||||
}
|
||||
if (client && ShouldEnableHeavyFormDataScraping(client->GetChannel())) {
|
||||
GetAutofillAgent()->EnableHeavyFormDataScraping();
|
||||
@@ -338,6 +341,8 @@ void ContentAutofillDriver::FormsSeenImpl(
|
||||
const std::vector<FormData>& updated_forms,
|
||||
const std::vector<FormGlobalId>& removed_forms) {
|
||||
autofill_manager_->OnFormsSeen(updated_forms, removed_forms);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnFormsSeen(updated_forms, removed_forms);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::SetFormToBeProbablySubmittedImpl(
|
||||
@@ -360,6 +365,8 @@ void ContentAutofillDriver::FormSubmittedImpl(const FormData& form,
|
||||
}
|
||||
|
||||
autofill_manager_->OnFormSubmitted(form, known_success, source);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnFormSubmitted(form, known_success, source);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::TextFieldDidChangeImpl(
|
||||
@@ -368,6 +375,8 @@ void ContentAutofillDriver::TextFieldDidChangeImpl(
|
||||
const gfx::RectF& bounding_box,
|
||||
base::TimeTicks timestamp) {
|
||||
autofill_manager_->OnTextFieldDidChange(form, field, bounding_box, timestamp);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnTextFieldDidChange(form, field, bounding_box, timestamp);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::TextFieldDidScrollImpl(
|
||||
@@ -375,6 +384,8 @@ void ContentAutofillDriver::TextFieldDidScrollImpl(
|
||||
const FormFieldData& field,
|
||||
const gfx::RectF& bounding_box) {
|
||||
autofill_manager_->OnTextFieldDidScroll(form, field, bounding_box);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnTextFieldDidScroll(form, field, bounding_box);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::SelectControlDidChangeImpl(
|
||||
@@ -382,6 +393,8 @@ void ContentAutofillDriver::SelectControlDidChangeImpl(
|
||||
const FormFieldData& field,
|
||||
const gfx::RectF& bounding_box) {
|
||||
autofill_manager_->OnSelectControlDidChange(form, field, bounding_box);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnSelectControlDidChange(form, field, bounding_box);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::AskForValuesToFillImpl(
|
||||
@@ -392,15 +405,22 @@ void ContentAutofillDriver::AskForValuesToFillImpl(
|
||||
bool autoselect_first_suggestion) {
|
||||
autofill_manager_->OnAskForValuesToFill(id, form, field, bounding_box,
|
||||
autoselect_first_suggestion);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnAskForValuesToFill(id, form, field, bounding_box,
|
||||
+ autoselect_first_suggestion);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::HidePopupImpl() {
|
||||
DCHECK(!IsPrerendering()) << "We should never affect UI while prerendering";
|
||||
autofill_manager_->OnHidePopup();
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnHidePopup();
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::FocusNoLongerOnFormImpl(bool had_interacted_form) {
|
||||
autofill_manager_->OnFocusNoLongerOnForm(had_interacted_form);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnFocusNoLongerOnForm(had_interacted_form);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::FocusOnFormFieldImpl(
|
||||
@@ -408,25 +428,35 @@ void ContentAutofillDriver::FocusOnFormFieldImpl(
|
||||
const FormFieldData& field,
|
||||
const gfx::RectF& bounding_box) {
|
||||
autofill_manager_->OnFocusOnFormField(form, field, bounding_box);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnFocusOnFormField(form, field, bounding_box);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::DidFillAutofillFormDataImpl(
|
||||
const FormData& form,
|
||||
base::TimeTicks timestamp) {
|
||||
autofill_manager_->OnDidFillAutofillFormData(form, timestamp);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnDidFillAutofillFormData(form, timestamp);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::DidPreviewAutofillFormDataImpl() {
|
||||
autofill_manager_->OnDidPreviewAutofillFormData();
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnDidPreviewAutofillFormData();
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::DidEndTextFieldEditingImpl() {
|
||||
autofill_manager_->OnDidEndTextFieldEditing();
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->OnDidEndTextFieldEditing();
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::SelectFieldOptionsDidChangeImpl(
|
||||
const FormData& form) {
|
||||
autofill_manager_->SelectFieldOptionsDidChange(form);
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->SelectFieldOptionsDidChange(form);
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::FillFormForAssistantImpl(
|
||||
@@ -640,13 +670,21 @@ void ContentAutofillDriver::DidNavigateFrame(
|
||||
if (autofill_router_) // Can be nullptr only in tests.
|
||||
autofill_router_->UnregisterDriver(this);
|
||||
autofill_manager_->Reset();
|
||||
+ if (browser_autofill_manager_ptr_)
|
||||
+ browser_autofill_manager_->Reset();
|
||||
}
|
||||
|
||||
void ContentAutofillDriver::SetBrowserAutofillManager(
|
||||
- std::unique_ptr<BrowserAutofillManager> manager) {
|
||||
- autofill_manager_ = std::move(manager);
|
||||
- browser_autofill_manager_ =
|
||||
- static_cast<BrowserAutofillManager*>(autofill_manager_.get());
|
||||
+ std::unique_ptr<BrowserAutofillManager> manager,
|
||||
+ bool enable_browser_autofill_manager) {
|
||||
+ if (enable_browser_autofill_manager) {
|
||||
+ browser_autofill_manager_ptr_ = std::move(manager);
|
||||
+ browser_autofill_manager_ = browser_autofill_manager_ptr_.get();
|
||||
+ } else {
|
||||
+ autofill_manager_ = std::move(manager);
|
||||
+ browser_autofill_manager_ =
|
||||
+ static_cast<BrowserAutofillManager*>(autofill_manager_.get());
|
||||
+ }
|
||||
}
|
||||
|
||||
ContentAutofillDriver::ContentAutofillDriver(content::RenderFrameHost* rfh)
|
||||
diff --git a/components/autofill/content/browser/content_autofill_driver.h b/components/autofill/content/browser/content_autofill_driver.h
|
||||
--- a/components/autofill/content/browser/content_autofill_driver.h
|
||||
+++ b/components/autofill/content/browser/content_autofill_driver.h
|
||||
@@ -137,6 +137,7 @@ class ContentAutofillDriver : public AutofillDriver,
|
||||
const std::string& app_locale,
|
||||
ContentAutofillRouter* autofill_router,
|
||||
AutofillManager::AutofillDownloadManagerState enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback);
|
||||
ContentAutofillDriver(const ContentAutofillDriver&) = delete;
|
||||
@@ -359,7 +360,8 @@ class ContentAutofillDriver : public AutofillDriver,
|
||||
|
||||
// Sets the manager to |manager|. Takes ownership of |manager|.
|
||||
void SetBrowserAutofillManager(
|
||||
- std::unique_ptr<BrowserAutofillManager> manager);
|
||||
+ std::unique_ptr<BrowserAutofillManager> manager,
|
||||
+ bool enable_browser_autofill_manager);
|
||||
|
||||
// Reports whether a document collects phone numbers, uses one time code, uses
|
||||
// WebOTP. There are cases that the reporting is not expected:
|
||||
@@ -430,6 +432,10 @@ class ContentAutofillDriver : public AutofillDriver,
|
||||
// pointer to a common root.
|
||||
BrowserAutofillManager* browser_autofill_manager_;
|
||||
|
||||
+ // adds a reference for BrowserAutofillManager, since native autofill works in
|
||||
+ // conjunction with browser autofill in Bromite
|
||||
+ std::unique_ptr<BrowserAutofillManager> browser_autofill_manager_ptr_;
|
||||
+
|
||||
// Pointer to an implementation of InternalAuthenticator.
|
||||
std::unique_ptr<webauthn::InternalAuthenticator> authenticator_impl_;
|
||||
|
||||
diff --git a/components/autofill/content/browser/content_autofill_driver_factory.cc b/components/autofill/content/browser/content_autofill_driver_factory.cc
|
||||
--- a/components/autofill/content/browser/content_autofill_driver_factory.cc
|
||||
+++ b/components/autofill/content/browser/content_autofill_driver_factory.cc
|
||||
@@ -32,6 +32,7 @@ void ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
|
||||
const std::string& app_locale,
|
||||
BrowserAutofillManager::AutofillDownloadManagerState
|
||||
enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback) {
|
||||
if (FromWebContents(contents))
|
||||
@@ -40,7 +41,7 @@ void ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
|
||||
contents->SetUserData(
|
||||
kContentAutofillDriverFactoryWebContentsUserDataKey,
|
||||
base::WrapUnique(new ContentAutofillDriverFactory(
|
||||
- contents, client, app_locale, enable_download_manager,
|
||||
+ contents, client, app_locale, enable_download_manager, enable_browser_autofill_manager,
|
||||
std::move(autofill_manager_factory_callback))));
|
||||
}
|
||||
|
||||
@@ -78,6 +79,7 @@ ContentAutofillDriverFactory::ContentAutofillDriverFactory(
|
||||
const std::string& app_locale,
|
||||
BrowserAutofillManager::AutofillDownloadManagerState
|
||||
enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback)
|
||||
: content::WebContentsObserver(web_contents),
|
||||
@@ -85,7 +87,8 @@ ContentAutofillDriverFactory::ContentAutofillDriverFactory(
|
||||
app_locale_(app_locale),
|
||||
enable_download_manager_(enable_download_manager),
|
||||
autofill_manager_factory_callback_(
|
||||
- std::move(autofill_manager_factory_callback)) {}
|
||||
+ std::move(autofill_manager_factory_callback)),
|
||||
+ enable_browser_autofill_manager_(enable_browser_autofill_manager) {}
|
||||
|
||||
ContentAutofillDriverFactory::~ContentAutofillDriverFactory() = default;
|
||||
|
||||
@@ -111,7 +114,7 @@ ContentAutofillDriver* ContentAutofillDriverFactory::DriverForFrame(
|
||||
if (render_frame_host->IsRenderFrameCreated()) {
|
||||
driver = std::make_unique<ContentAutofillDriver>(
|
||||
render_frame_host, client(), app_locale_, &router_,
|
||||
- enable_download_manager_, autofill_manager_factory_callback_);
|
||||
+ enable_download_manager_, enable_browser_autofill_manager_, autofill_manager_factory_callback_);
|
||||
DCHECK_EQ(driver_map_.find(render_frame_host)->second.get(),
|
||||
driver.get());
|
||||
} else {
|
||||
diff --git a/components/autofill/content/browser/content_autofill_driver_factory.h b/components/autofill/content/browser/content_autofill_driver_factory.h
|
||||
--- a/components/autofill/content/browser/content_autofill_driver_factory.h
|
||||
+++ b/components/autofill/content/browser/content_autofill_driver_factory.h
|
||||
@@ -44,6 +44,7 @@ class ContentAutofillDriverFactory : public content::WebContentsObserver,
|
||||
const std::string& app_locale,
|
||||
BrowserAutofillManager::AutofillDownloadManagerState
|
||||
enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback = {});
|
||||
|
||||
@@ -83,6 +84,7 @@ class ContentAutofillDriverFactory : public content::WebContentsObserver,
|
||||
const std::string& app_locale,
|
||||
BrowserAutofillManager::AutofillDownloadManagerState
|
||||
enable_download_manager,
|
||||
+ bool enable_browser_autofill_manager,
|
||||
AutofillManager::AutofillManagerFactoryCallback
|
||||
autofill_manager_factory_callback);
|
||||
|
||||
@@ -96,6 +98,8 @@ class ContentAutofillDriverFactory : public content::WebContentsObserver,
|
||||
// Must be destroyed after |driver_map_|'s elements.
|
||||
ContentAutofillRouter router_;
|
||||
|
||||
+ bool enable_browser_autofill_manager_;
|
||||
+
|
||||
// The list of drivers, one for each frame in the WebContents.
|
||||
// Should be empty at destruction time because its elements are erased in
|
||||
// RenderFrameDeleted(). In case it is not empty, is must be destroyed before
|
||||
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
|
||||
--- a/components/autofill/content/renderer/password_autofill_agent.cc
|
||||
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
|
||||
@@ -728,7 +728,10 @@ void PasswordAutofillAgent::UpdateStateForTextChange(
|
||||
|
||||
void PasswordAutofillAgent::TrackAutofilledElement(
|
||||
const blink::WebFormControlElement& element) {
|
||||
- autofill_agent_->TrackAutofilledElement(element);
|
||||
+ // fix for https://github.com/bromite/bromite/issues/1570
|
||||
+ AutofillAgent* agent = autofill_agent_.get();
|
||||
+ if (agent)
|
||||
+ agent->TrackAutofilledElement(element);
|
||||
}
|
||||
|
||||
bool PasswordAutofillAgent::FillSuggestion(
|
||||
diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc
|
||||
--- a/components/autofill/core/common/autofill_prefs.cc
|
||||
+++ b/components/autofill/core/common/autofill_prefs.cc
|
||||
@@ -128,6 +128,9 @@ const char kAutofillWalletImportStorageCheckboxState[] =
|
||||
@@ -128,6 +128,10 @@ const char kAutofillWalletImportStorageCheckboxState[] =
|
||||
const char kAutocompleteLastVersionRetentionPolicy[] =
|
||||
"autocomplete.retention_policy_last_version";
|
||||
|
||||
+// Boolean that is true to enable native Android Autofill
|
||||
+const char kAutofillAndroidEnabled[] = "autofill.android_autofill_enabled";
|
||||
+const char kAutofillAndroidIncognitoEnabled[] = "autofill.android_autofill_incognito_enabled";
|
||||
+
|
||||
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
// Synced prefs. Used for cross-device choices, e.g., credit card Autofill.
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -160,6 +163,8 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
@@ -160,6 +164,10 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kAutofillCreditCardFidoAuthOfferCheckboxState, true);
|
||||
#endif
|
||||
+ registry->RegisterBooleanPref(
|
||||
+ prefs::kAutofillAndroidEnabled, true);
|
||||
+ registry->RegisterBooleanPref(
|
||||
+ prefs::kAutofillAndroidIncognitoEnabled, false);
|
||||
registry->RegisterIntegerPref(
|
||||
prefs::kAutofillCreditCardSigninPromoImpressionCount, 0);
|
||||
registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true);
|
||||
diff --git a/components/autofill/core/common/autofill_prefs.h b/components/autofill/core/common/autofill_prefs.h
|
||||
--- a/components/autofill/core/common/autofill_prefs.h
|
||||
+++ b/components/autofill/core/common/autofill_prefs.h
|
||||
@@ -47,6 +47,7 @@ extern const char kAutofillUploadEventsLastResetTimestamp[];
|
||||
@@ -47,6 +47,8 @@ extern const char kAutofillUploadEventsLastResetTimestamp[];
|
||||
extern const char kAutofillWalletImportEnabled[];
|
||||
extern const char kAutofillWalletImportStorageCheckboxState[];
|
||||
extern const char kAutocompleteLastVersionRetentionPolicy[];
|
||||
+extern const char kAutofillAndroidEnabled[];
|
||||
+extern const char kAutofillAndroidIncognitoEnabled[];
|
||||
|
||||
namespace sync_transport_opt_in {
|
||||
enum Flags {
|
||||
|
@ -485,6 +837,19 @@ diff --git a/ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java b
|
|||
+
|
||||
+ public void autofill(final SparseArray<AutofillValue> values) {}
|
||||
}
|
||||
diff --git a/weblayer/browser/tab_impl.cc b/weblayer/browser/tab_impl.cc
|
||||
--- a/weblayer/browser/tab_impl.cc
|
||||
+++ b/weblayer/browser/tab_impl.cc
|
||||
@@ -1403,7 +1403,8 @@ void TabImpl::InitializeAutofillDriver() {
|
||||
autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
|
||||
web_contents, AutofillClientImpl::FromWebContents(web_contents),
|
||||
i18n::GetApplicationLocale(), enable_autofill_download_manager,
|
||||
- base::BindRepeating(&autofill::AndroidAutofillManager::Create));
|
||||
+ base::BindRepeating(&autofill::AndroidAutofillManager::Create),
|
||||
+ /*enable_browser_autofill_manager*/ false);
|
||||
}
|
||||
|
||||
#endif // defined(OS_ANDROID)
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
|
|||
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
|
||||
--- a/content/public/common/content_features.cc
|
||||
+++ b/content/public/common/content_features.cc
|
||||
@@ -310,7 +310,7 @@ const base::Feature kExtraSafelistedRequestHeadersForOutOfBlinkCors{
|
||||
@@ -311,7 +311,7 @@ const base::Feature kExtraSafelistedRequestHeadersForOutOfBlinkCors{
|
||||
|
||||
// Controls whether Client Hints are guarded by Permissions Policy.
|
||||
const base::Feature kFeaturePolicyForClientHints{
|
||||
|
|
27
build/patches/Restore-offline-indicator-v2-flag.patch
Normal file
27
build/patches/Restore-offline-indicator-v2-flag.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
||||
Date: Sat, 4 Dec 2021 11:41:31 +0100
|
||||
Subject: Restore offline-indicator-v2 flag
|
||||
|
||||
---
|
||||
chrome/browser/flag-metadata.json | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
|
||||
--- a/chrome/browser/flag-metadata.json
|
||||
+++ b/chrome/browser/flag-metadata.json
|
||||
@@ -3981,9 +3981,9 @@
|
||||
"expiry_milestone": 98
|
||||
},
|
||||
{
|
||||
- "name": "offline-indicator-v2",
|
||||
- "owners": [ "sinansahin@google.com", "twellington", "offline-dev" ],
|
||||
- "expiry_milestone": 90
|
||||
+ "name": "offline-indicator-v2", // Bromite: restore flag
|
||||
+ "owners": [ "sinansahin@google.com", "twellington", "offline-dev" ], // offline-indicator-v2
|
||||
+ "expiry_milestone": -1
|
||||
},
|
||||
{
|
||||
"name": "offline-pages-live-page-sharing",
|
||||
--
|
||||
2.20.1
|
||||
|
|
@ -42,7 +42,6 @@ Subject: Revert the removal of an option to block autoplay
|
|||
create mode 100644 components/browser_ui/site_settings/android/java/res/drawable-xxxhdpi/settings_autoplay.png
|
||||
|
||||
diff --git a/components/browser_ui/site_settings/android/BUILD.gn b/components/browser_ui/site_settings/android/BUILD.gn
|
||||
index d6cba78972382..ea78c679219ac 100644
|
||||
--- a/components/browser_ui/site_settings/android/BUILD.gn
|
||||
+++ b/components/browser_ui/site_settings/android/BUILD.gn
|
||||
@@ -146,6 +146,11 @@ android_resources("java_resources") {
|
||||
|
@ -166,7 +165,6 @@ literal 0
|
|||
HcmV?d00001
|
||||
|
||||
diff --git a/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml b/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
index beb3ee433ee3b..1cedae5d0dd21 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
+++ b/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
@@ -65,6 +65,10 @@
|
||||
|
@ -181,7 +179,6 @@ index beb3ee433ee3b..1cedae5d0dd21 100644
|
|||
<org.chromium.components.browser_ui.settings.ChromeBasePreference
|
||||
android:fragment="org.chromium.components.browser_ui.site_settings.SingleCategorySettings"
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
index 52533463e9fc1..79b9378da083d 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
@@ -113,7 +113,10 @@ public class ContentSettingsResources {
|
||||
|
@ -197,7 +194,6 @@ index 52533463e9fc1..79b9378da083d 100644
|
|||
return new ResourceItem(R.drawable.ic_brightness_medium_24dp,
|
||||
R.drawable.ic_brightness_medium_20dp, R.string.auto_dark_web_content_title,
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
index bf6fccd181179..935f7a2f3bd1f 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
@@ -586,6 +586,8 @@ public class SingleCategorySettings extends SiteSettingsPreferenceFragment
|
||||
|
@ -219,7 +215,6 @@ index bf6fccd181179..935f7a2f3bd1f 100644
|
|||
exception = true;
|
||||
} else if (mCategory.showSites(SiteSettingsCategory.Type.COOKIES)) {
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
index e4a08578f18df..ff492e0e00c77 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
@@ -119,6 +119,8 @@ public class SingleWebsiteSettings extends SiteSettingsPreferenceFragment
|
||||
|
@ -266,7 +261,6 @@ index e4a08578f18df..ff492e0e00c77 100644
|
|||
BrowserContextHandle browserContextHandle =
|
||||
getSiteSettingsDelegate().getBrowserContextHandle();
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
index 435b5037ceb43..cbb425c4bb946 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
@@ -43,7 +43,7 @@ public class SiteSettingsCategory {
|
||||
|
@ -310,7 +304,6 @@ index 435b5037ceb43..cbb425c4bb946 100644
|
|||
return "popups";
|
||||
case Type.PROTECTED_MEDIA:
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
index b9931fc4cfdf6..cfe33f8df1e4e 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
@@ -216,6 +216,14 @@ public final class Website implements Serializable {
|
||||
|
@ -329,7 +322,6 @@ index b9931fc4cfdf6..cfe33f8df1e4e 100644
|
|||
// It is possible to set the permission without having an existing exception,
|
||||
// because we always show the sound permission in Site Settings.
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
index 6219383231f75..52b2ae69b4493 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
@@ -61,6 +61,7 @@ public class WebsitePermissionsFetcher {
|
||||
|
@ -341,7 +333,6 @@ index 6219383231f75..52b2ae69b4493 100644
|
|||
case ContentSettingsType.REQUEST_DESKTOP_SITE:
|
||||
case ContentSettingsType.JAVASCRIPT:
|
||||
diff --git a/components/browser_ui/site_settings/android/website_preference_bridge.cc b/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
index 6d6e4c1373b83..855b7740343c0 100644
|
||||
--- a/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
+++ b/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
@@ -820,6 +820,7 @@ static void JNI_WebsitePreferenceBridge_SetContentSettingEnabled(
|
||||
|
@ -353,7 +344,6 @@ index 6d6e4c1373b83..855b7740343c0 100644
|
|||
break;
|
||||
default:
|
||||
diff --git a/components/browser_ui/strings/android/site_settings.grdp b/components/browser_ui/strings/android/site_settings.grdp
|
||||
index 1ba79aa78394d..19f8f9e646163 100644
|
||||
--- a/components/browser_ui/strings/android/site_settings.grdp
|
||||
+++ b/components/browser_ui/strings/android/site_settings.grdp
|
||||
@@ -12,6 +12,15 @@
|
||||
|
@ -373,7 +363,6 @@ index 1ba79aa78394d..19f8f9e646163 100644
|
|||
Augmented reality
|
||||
</message>
|
||||
diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
|
||||
index d90f46d6806dc..ca9cb7afb1d8e 100644
|
||||
--- a/components/content_settings/core/browser/content_settings_registry.cc
|
||||
+++ b/components/content_settings/core/browser/content_settings_registry.cc
|
||||
@@ -313,7 +313,7 @@ void ContentSettingsRegistry::Init() {
|
||||
|
@ -386,7 +375,6 @@ index d90f46d6806dc..ca9cb7afb1d8e 100644
|
|||
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK),
|
||||
WebsiteSettingsInfo::SINGLE_ORIGIN_ONLY_SCOPE,
|
||||
diff --git a/components/content_settings/core/browser/content_settings_utils.cc b/components/content_settings/core/browser/content_settings_utils.cc
|
||||
index dc99328a458a9..4c7c45c15d89e 100644
|
||||
--- a/components/content_settings/core/browser/content_settings_utils.cc
|
||||
+++ b/components/content_settings/core/browser/content_settings_utils.cc
|
||||
@@ -152,6 +152,8 @@ void GetRendererContentSettingRules(const HostContentSettingsMap* map,
|
||||
|
@ -399,7 +387,6 @@ index dc99328a458a9..4c7c45c15d89e 100644
|
|||
&(rules->popup_redirect_rules));
|
||||
|
||||
diff --git a/components/content_settings/core/common/content_settings.cc b/components/content_settings/core/common/content_settings.cc
|
||||
index be7fb3ebdcf3b..1d82d80c8a03b 100644
|
||||
--- a/components/content_settings/core/common/content_settings.cc
|
||||
+++ b/components/content_settings/core/common/content_settings.cc
|
||||
@@ -187,6 +187,7 @@ bool RendererContentSettingRules::IsRendererContentSetting(
|
||||
|
@ -411,7 +398,6 @@ index be7fb3ebdcf3b..1d82d80c8a03b 100644
|
|||
content_type == ContentSettingsType::POPUPS ||
|
||||
content_type == ContentSettingsType::MIXEDSCRIPT ||
|
||||
diff --git a/components/content_settings/core/common/content_settings.h b/components/content_settings/core/common/content_settings.h
|
||||
index 905833daa3ba1..5e4245af5e741 100644
|
||||
--- a/components/content_settings/core/common/content_settings.h
|
||||
+++ b/components/content_settings/core/common/content_settings.h
|
||||
@@ -77,6 +77,7 @@ struct RendererContentSettingRules {
|
||||
|
@ -423,7 +409,6 @@ index 905833daa3ba1..5e4245af5e741 100644
|
|||
ContentSettingsForOneType mixed_content_rules;
|
||||
ContentSettingsForOneType auto_dark_content_rules;
|
||||
diff --git a/components/content_settings/core/common/content_settings.mojom b/components/content_settings/core/common/content_settings.mojom
|
||||
index 659646570aae2..93fc1ec5dd151 100644
|
||||
--- a/components/content_settings/core/common/content_settings.mojom
|
||||
+++ b/components/content_settings/core/common/content_settings.mojom
|
||||
@@ -75,6 +75,7 @@ struct ContentSettingPatternSource {
|
||||
|
@ -435,7 +420,6 @@ index 659646570aae2..93fc1ec5dd151 100644
|
|||
array<ContentSettingPatternSource> mixed_content_rules;
|
||||
array<ContentSettingPatternSource> auto_dark_content_rules;
|
||||
diff --git a/components/content_settings/core/common/content_settings_mojom_traits.cc b/components/content_settings/core/common/content_settings_mojom_traits.cc
|
||||
index e0268395cc200..b9bd816e67238 100644
|
||||
--- a/components/content_settings/core/common/content_settings_mojom_traits.cc
|
||||
+++ b/components/content_settings/core/common/content_settings_mojom_traits.cc
|
||||
@@ -99,6 +99,7 @@ bool StructTraits<content_settings::mojom::RendererContentSettingRulesDataView,
|
||||
|
@ -447,7 +431,6 @@ index e0268395cc200..b9bd816e67238 100644
|
|||
data.ReadMixedContentRules(&out->mixed_content_rules) &&
|
||||
data.ReadAutoDarkContentRules(&out->auto_dark_content_rules) &&
|
||||
diff --git a/components/content_settings/core/common/content_settings_mojom_traits.h b/components/content_settings/core/common/content_settings_mojom_traits.h
|
||||
index 34993a32e4f23..1b209fd7d420f 100644
|
||||
--- a/components/content_settings/core/common/content_settings_mojom_traits.h
|
||||
+++ b/components/content_settings/core/common/content_settings_mojom_traits.h
|
||||
@@ -135,6 +135,11 @@ struct StructTraits<
|
||||
|
@ -463,7 +446,6 @@ index 34993a32e4f23..1b209fd7d420f 100644
|
|||
const RendererContentSettingRules& r) {
|
||||
return r.popup_redirect_rules;
|
||||
diff --git a/components/content_settings/renderer/content_settings_agent_impl.cc b/components/content_settings/renderer/content_settings_agent_impl.cc
|
||||
index 8a4119c3b432b..e93f2be7cb0eb 100644
|
||||
--- a/components/content_settings/renderer/content_settings_agent_impl.cc
|
||||
+++ b/components/content_settings/renderer/content_settings_agent_impl.cc
|
||||
@@ -439,6 +439,17 @@ bool ContentSettingsAgentImpl::AllowRunningInsecureContent(
|
||||
|
@ -485,7 +467,6 @@ index 8a4119c3b432b..e93f2be7cb0eb 100644
|
|||
if (!content_setting_rules_)
|
||||
return default_value;
|
||||
diff --git a/components/content_settings/renderer/content_settings_agent_impl.h b/components/content_settings/renderer/content_settings_agent_impl.h
|
||||
index b9f7c20a4f320..e5e617f5649dd 100644
|
||||
--- a/components/content_settings/renderer/content_settings_agent_impl.h
|
||||
+++ b/components/content_settings/renderer/content_settings_agent_impl.h
|
||||
@@ -99,6 +99,7 @@ class ContentSettingsAgentImpl
|
||||
|
@ -497,7 +478,6 @@ index b9f7c20a4f320..e5e617f5649dd 100644
|
|||
void PassiveInsecureContentFound(const blink::WebURL& resource_url) override;
|
||||
bool ShouldAutoupgradeMixedContent() override;
|
||||
diff --git a/components/page_info/android/page_info_controller_android.cc b/components/page_info/android/page_info_controller_android.cc
|
||||
index a3c94a59322ec..8362dea2f051c 100644
|
||||
--- a/components/page_info/android/page_info_controller_android.cc
|
||||
+++ b/components/page_info/android/page_info_controller_android.cc
|
||||
@@ -134,6 +134,7 @@ void PageInfoControllerAndroid::SetPermissionInfo(
|
||||
|
@ -509,7 +489,6 @@ index a3c94a59322ec..8362dea2f051c 100644
|
|||
if (base::FeatureList::IsEnabled(features::kWebNfc))
|
||||
permissions_to_display.push_back(ContentSettingsType::NFC);
|
||||
diff --git a/components/page_info/page_info.cc b/components/page_info/page_info.cc
|
||||
index e0a09a3fa24b1..328220fe1243e 100644
|
||||
--- a/components/page_info/page_info.cc
|
||||
+++ b/components/page_info/page_info.cc
|
||||
@@ -97,6 +97,7 @@ ContentSettingsType kPermissionType[] = {
|
||||
|
@ -533,7 +512,6 @@ index e0a09a3fa24b1..328220fe1243e 100644
|
|||
// The sound content setting should always show up when the tab has played
|
||||
// audio.
|
||||
diff --git a/components/page_info/page_info_ui.cc b/components/page_info/page_info_ui.cc
|
||||
index 7aacf8ff75ab7..236cb026b74c5 100644
|
||||
--- a/components/page_info/page_info_ui.cc
|
||||
+++ b/components/page_info/page_info_ui.cc
|
||||
@@ -161,6 +161,7 @@ base::span<const PageInfoUI::PermissionUIInfo> GetContentSettingsUIInfo() {
|
||||
|
@ -545,7 +523,6 @@ index 7aacf8ff75ab7..236cb026b74c5 100644
|
|||
IDS_SITE_SETTINGS_TYPE_SOUND_MID_SENTENCE},
|
||||
{ContentSettingsType::CLIPBOARD_READ_WRITE,
|
||||
diff --git a/components/site_settings_strings.grdp b/components/site_settings_strings.grdp
|
||||
index 923aa610485ce..d99c482facf22 100644
|
||||
--- a/components/site_settings_strings.grdp
|
||||
+++ b/components/site_settings_strings.grdp
|
||||
@@ -130,6 +130,9 @@
|
||||
|
@ -566,7 +543,6 @@ index 923aa610485ce..d99c482facf22 100644
|
|||
\ No newline at end of file
|
||||
+</grit-part>
|
||||
diff --git a/third_party/blink/public/platform/web_content_settings_client.h b/third_party/blink/public/platform/web_content_settings_client.h
|
||||
index 87d4a0ee3887d..d61ff95389243 100644
|
||||
--- a/third_party/blink/public/platform/web_content_settings_client.h
|
||||
+++ b/third_party/blink/public/platform/web_content_settings_client.h
|
||||
@@ -92,6 +92,9 @@ class WebContentSettingsClient {
|
||||
|
@ -580,7 +556,6 @@ index 87d4a0ee3887d..d61ff95389243 100644
|
|||
return default_value;
|
||||
}
|
||||
diff --git a/third_party/blink/renderer/core/html/media/autoplay_policy.cc b/third_party/blink/renderer/core/html/media/autoplay_policy.cc
|
||||
index e0413d62cc3c1..91b681a8d1bd7 100644
|
||||
--- a/third_party/blink/renderer/core/html/media/autoplay_policy.cc
|
||||
+++ b/third_party/blink/renderer/core/html/media/autoplay_policy.cc
|
||||
@@ -8,6 +8,7 @@
|
||||
|
@ -617,7 +592,6 @@ index e0413d62cc3c1..91b681a8d1bd7 100644
|
|||
if (!element_->GetExecutionContext() ||
|
||||
element_->GetExecutionContext()->IsSandboxed(
|
||||
diff --git a/third_party/blink/renderer/core/html/media/autoplay_policy.h b/third_party/blink/renderer/core/html/media/autoplay_policy.h
|
||||
index 2d8dc569e465e..ee99746385c4b 100644
|
||||
--- a/third_party/blink/renderer/core/html/media/autoplay_policy.h
|
||||
+++ b/third_party/blink/renderer/core/html/media/autoplay_policy.h
|
||||
@@ -132,6 +132,10 @@ class CORE_EXPORT AutoplayPolicy final
|
||||
|
|
|
@ -33,7 +33,6 @@ Subject: Site setting for images
|
|||
create mode 100644 components/browser_ui/site_settings/android/java/res/drawable-xxxhdpi/permission_images.png
|
||||
|
||||
diff --git a/components/browser_ui/site_settings/android/BUILD.gn b/components/browser_ui/site_settings/android/BUILD.gn
|
||||
index ea78c679219ac..36bfd0553d944 100644
|
||||
--- a/components/browser_ui/site_settings/android/BUILD.gn
|
||||
+++ b/components/browser_ui/site_settings/android/BUILD.gn
|
||||
@@ -113,6 +113,7 @@ android_resources("java_resources") {
|
||||
|
@ -159,7 +158,6 @@ literal 0
|
|||
HcmV?d00001
|
||||
|
||||
diff --git a/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml b/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
index 1cedae5d0dd21..e2bc1755968ce 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
+++ b/components/browser_ui/site_settings/android/java/res/xml/site_settings_preferences.xml
|
||||
@@ -41,6 +41,10 @@
|
||||
|
@ -174,7 +172,6 @@ index 1cedae5d0dd21..e2bc1755968ce 100644
|
|||
<org.chromium.components.browser_ui.settings.ChromeBasePreference
|
||||
android:key="timezone_override"
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
index 79b9378da083d..476b04a3795fa 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/ContentSettingsResources.java
|
||||
@@ -134,6 +134,10 @@ public class ContentSettingsResources {
|
||||
|
@ -189,7 +186,6 @@ index 79b9378da083d..476b04a3795fa 100644
|
|||
return new ResourceItem(R.drawable.settings_bluetooth, /*smallIcon=*/0,
|
||||
R.string.website_settings_bluetooth, ContentSettingValues.ASK,
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
index 935f7a2f3bd1f..b26d79df98978 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java
|
||||
@@ -600,6 +600,8 @@ public class SingleCategorySettings extends SiteSettingsPreferenceFragment
|
||||
|
@ -211,7 +207,6 @@ index 935f7a2f3bd1f..b26d79df98978 100644
|
|||
exception = true;
|
||||
} else if (mCategory.showSites(SiteSettingsCategory.Type.BACKGROUND_SYNC)
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
index ff492e0e00c77..103c9923fc3b5 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings.java
|
||||
@@ -123,6 +123,8 @@ public class SingleWebsiteSettings extends SiteSettingsPreferenceFragment
|
||||
|
@ -258,7 +253,6 @@ index ff492e0e00c77..103c9923fc3b5 100644
|
|||
return value == ContentSettingValues.ALLOW
|
||||
? getString(R.string.website_settings_permissions_allowed_dse)
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
index cbb425c4bb946..f6ad8557ca4bc 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java
|
||||
@@ -43,7 +43,7 @@ public class SiteSettingsCategory {
|
||||
|
@ -302,7 +296,6 @@ index cbb425c4bb946..f6ad8557ca4bc 100644
|
|||
return "microphone";
|
||||
case Type.NFC:
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsUtil.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsUtil.java
|
||||
index f4a9d3db2a09c..0347dd0e38568 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsUtil.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsUtil.java
|
||||
@@ -21,6 +21,7 @@ public class SiteSettingsUtil {
|
||||
|
@ -314,7 +307,6 @@ index f4a9d3db2a09c..0347dd0e38568 100644
|
|||
ContentSettingsType.ADS,
|
||||
ContentSettingsType.BACKGROUND_SYNC,
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
index cfe33f8df1e4e..80d450d4aa3df 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/Website.java
|
||||
@@ -200,6 +200,12 @@ public final class Website implements Serializable {
|
||||
|
@ -331,7 +323,6 @@ index cfe33f8df1e4e..80d450d4aa3df 100644
|
|||
// It is possible to set the permission without having an existing exception,
|
||||
// because we show the javascript permission in Site Settings if javascript
|
||||
diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
index 52b2ae69b4493..78aa09dbf178a 100644
|
||||
--- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
+++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/WebsitePermissionsFetcher.java
|
||||
@@ -64,6 +64,7 @@ public class WebsitePermissionsFetcher {
|
||||
|
@ -343,7 +334,6 @@ index 52b2ae69b4493..78aa09dbf178a 100644
|
|||
case ContentSettingsType.JAVASCRIPT_JIT:
|
||||
case ContentSettingsType.POPUPS:
|
||||
diff --git a/components/browser_ui/site_settings/android/website_preference_bridge.cc b/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
index 855b7740343c0..6cdfe0ca2dcde 100644
|
||||
--- a/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
+++ b/components/browser_ui/site_settings/android/website_preference_bridge.cc
|
||||
@@ -816,6 +816,7 @@ static void JNI_WebsitePreferenceBridge_SetContentSettingEnabled(
|
||||
|
@ -355,7 +345,6 @@ index 855b7740343c0..6cdfe0ca2dcde 100644
|
|||
case ContentSettingsType::POPUPS:
|
||||
case ContentSettingsType::SENSORS:
|
||||
diff --git a/components/browser_ui/strings/android/site_settings.grdp b/components/browser_ui/strings/android/site_settings.grdp
|
||||
index 19f8f9e646163..4f9b8d42ff18e 100644
|
||||
--- a/components/browser_ui/strings/android/site_settings.grdp
|
||||
+++ b/components/browser_ui/strings/android/site_settings.grdp
|
||||
@@ -42,6 +42,9 @@
|
||||
|
@ -379,7 +368,6 @@ index 19f8f9e646163..4f9b8d42ff18e 100644
|
|||
Site URL
|
||||
</message>
|
||||
diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc
|
||||
index a1a312f0eed18..9867f47b21a7e 100644
|
||||
--- a/components/content_settings/core/browser/content_settings_registry.cc
|
||||
+++ b/components/content_settings/core/browser/content_settings_registry.cc
|
||||
@@ -143,7 +143,8 @@ void ContentSettingsRegistry::Init() {
|
||||
|
@ -393,7 +381,6 @@ index a1a312f0eed18..9867f47b21a7e 100644
|
|||
ContentSettingsInfo::PERSISTENT,
|
||||
ContentSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS);
|
||||
diff --git a/components/content_settings/core/browser/content_settings_utils.cc b/components/content_settings/core/browser/content_settings_utils.cc
|
||||
index 4c7c45c15d89e..ef4b47e7e39f3 100644
|
||||
--- a/components/content_settings/core/browser/content_settings_utils.cc
|
||||
+++ b/components/content_settings/core/browser/content_settings_utils.cc
|
||||
@@ -133,13 +133,8 @@ void GetRendererContentSettingRules(const HostContentSettingsMap* map,
|
||||
|
@ -413,7 +400,6 @@ index 4c7c45c15d89e..ef4b47e7e39f3 100644
|
|||
// it.
|
||||
rules->mixed_content_rules.push_back(ContentSettingPatternSource(
|
||||
diff --git a/components/page_info/android/page_info_controller_android.cc b/components/page_info/android/page_info_controller_android.cc
|
||||
index 8362dea2f051c..bb33d7621dadc 100644
|
||||
--- a/components/page_info/android/page_info_controller_android.cc
|
||||
+++ b/components/page_info/android/page_info_controller_android.cc
|
||||
@@ -214,6 +214,10 @@ absl::optional<ContentSetting> PageInfoControllerAndroid::GetSettingToDisplay(
|
||||
|
@ -428,7 +414,6 @@ index 8362dea2f051c..bb33d7621dadc 100644
|
|||
|
||||
// TODO(crbug.com/1077766): Also return permissions that are non
|
||||
diff --git a/components/page_info/page_info.cc b/components/page_info/page_info.cc
|
||||
index 328220fe1243e..7b874035ead0e 100644
|
||||
--- a/components/page_info/page_info.cc
|
||||
+++ b/components/page_info/page_info.cc
|
||||
@@ -89,9 +89,7 @@ ContentSettingsType kPermissionType[] = {
|
||||
|
@ -454,7 +439,6 @@ index 328220fe1243e..7b874035ead0e 100644
|
|||
// The sound content setting should always show up when the tab has played
|
||||
// audio.
|
||||
diff --git a/components/page_info/page_info_ui.cc b/components/page_info/page_info_ui.cc
|
||||
index 236cb026b74c5..bcb9cee9d737b 100644
|
||||
--- a/components/page_info/page_info_ui.cc
|
||||
+++ b/components/page_info/page_info_ui.cc
|
||||
@@ -195,6 +195,8 @@ base::span<const PageInfoUI::PermissionUIInfo> GetContentSettingsUIInfo() {
|
||||
|
@ -476,7 +460,6 @@ index 236cb026b74c5..bcb9cee9d737b 100644
|
|||
IDS_SITE_SETTINGS_TYPE_SERIAL_PORTS_MID_SENTENCE},
|
||||
{ContentSettingsType::WINDOW_PLACEMENT,
|
||||
diff --git a/components/site_settings_strings.grdp b/components/site_settings_strings.grdp
|
||||
index d99c482facf22..8a0d0fc412ea9 100644
|
||||
--- a/components/site_settings_strings.grdp
|
||||
+++ b/components/site_settings_strings.grdp
|
||||
@@ -148,6 +148,12 @@
|
||||
|
|
Loading…
Add table
Reference in a new issue