From f708a519b1338b70a6f560bea48458539aac3ed8 Mon Sep 17 00:00:00 2001 From: uazo Date: Wed, 20 Mar 2024 16:34:12 +0000 Subject: [PATCH] AUTOMATED - update patch docs --- docs/PATCHES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/PATCHES.md b/docs/PATCHES.md index 3fba5da3..280ab5fb 100644 --- a/docs/PATCHES.md +++ b/docs/PATCHES.md @@ -21,7 +21,7 @@ |**Add flag to disable IPv6 probes**
Sun, 18 Nov 2018 13:06:49 +0100
File: [Add-flag-to-disable-IPv6-probes.patch](/build/patches/Add-flag-to-disable-IPv6-probes.patch)
Author: csagan5
Context:
License: GPL-3.0-only || |**Add flag to disable external intent requests**
Tue, 25 May 2021 19:46:14 +0200
File: [Add-flag-to-disable-external-intent-requests.patch](/build/patches/Add-flag-to-disable-external-intent-requests.patch)
Author: csagan5
Context:
License: GPL-3.0-only |Adds a new flag that allows to control the switch with same name;
when flag is disabled no external intent will ever be allowed, for any URL.| |**Add flag to disable vibration**
Sun, 27 Jun 2021 17:35:39 +0200
File: [Add-flag-to-disable-vibration.patch](/build/patches/Add-flag-to-disable-vibration.patch)
Author: csagan5
Context:
License: GPL-3.0-only || -|**Add kill switch for unsupported clangd flags**
Thu, 20 Oct 2022 09:34:48 +0000
File: [Add-kill-switch-for-unsupported-clangd-flags.patch](/build/patches/Add-kill-switch-for-unsupported-clangd-flags.patch)
Author: Your
Context:
License: GPL-3.0-only |Allows build with clangd by suppressing unsupported parameters| +|**Add kill switch for unsupported clangd flags**
Thu, 20 Oct 2022 09:34:48 +0000
File: [Add-kill-switch-for-unsupported-clangd-flags.patch](/build/patches/Add-kill-switch-for-unsupported-clangd-flags.patch)
Author: uazo
Context:
License: GPL-3.0-only |Allows build with clangd by suppressing unsupported parameters| |**Add lifetime options for permissions**
Fri, 8 Apr 2022 11:04:04 +0000
File: [Add-lifetime-options-for-permissions.patch](/build/patches/Add-lifetime-options-for-permissions.patch)
Author: uazo
Context:
License: GPL-3.0-only |Indicate the session mode for content-settings by using the constraint `content_settings::SessionModel` as
UserSession when setting the value, and also make use of an expiration time value.
This is used in Chromium for `ClientHints` but it is generally possible to use this functionality when a
specific value needs to be persisted by origin.
All content settings of this type are not saved on disk (except for the `Forever` option), allowing user to
reset the status each time application is restarted.
There are 4 main areas affected to introduce the functionality:
* components/content_settings
A new `content_settings::LifetimeMode` enum value is defined to specify the user's
choice (Always, OnlyThisTime, UntilOriginClosed, UntilBrowserClosed).
Enumeration is also generated for java by adding it in `content_settings_enums_javagen` (gn).
This is mainly used in `content_settings_utils.cc` to create a specialised `content_settings::ContentSettingConstraints`
that is then used in `SetContentSettingDefaultScope()` by `PermissionContextBase::UpdateContentSetting`.
Existing Chromium data structures do not provide a specific property to define a choice which is instead encoded through
the `ContentSettingConstraints`; this approach is already used in other parts of the Chromium codebase so it is not
novel here.
Therefore, `content_settings::GetConstraintSessionExpiration()` and `content_settings::IsConstraintSessionExpiration()`
manage the lifetime modes of the session content-settings.
The modificaiton also adds the session pattern to the ContentSettingPatternSource so that it is available for the UI.
* components/permissions
Lifetime support is added to the permissions; most of the changes are caused by the fact that it is necessary to report
the value selected by the user from the Java UI managed by `components/browser_ui` up to
`PermissionContextBase::UpdateContentSetting()`, without necessarily having to modify all requests that are not
related to geolocation/camera/microphone. The approach used is a new
`PermissionRequest::PermissionDecidedCallbackWithLifetime` used by an overload of
`PermissionContextBase::CreatePermissionRequest` so that options are present only for the specific content-settings
(see `PermissionDialogModel.java`).
For other permissions no behaviour is changed (see `PermissionDialogDelegate::Accept`); for geolocation it was
necessary to act directly in the specific context, because, unlike microphone/camera, the content-setting value is
inserted in its specific method (`FinishNotifyPermissionSet`, that calls the callback), even if the class always
derives from `PermissionContextBase`.
* components/page_info
Some changes needed to see in the summary of the `page_info` the text "(only this session)"
(aka `page_info_android_permission_session_permission`) through adding a new property "is_user_session" in
`PageInfoPermissionEntry` (Java).
* components/browser_ui
Changes to the Settings UI to show "(only this session)" in the specific content-setting.
The same view is used both in the settings and in the page_info.
For the management of `UntilOriginClosed` the logic used by flag `kOneTimeGeolocationPermission` was used; this flag
is active only in the desktop (files `last_tab_standing_tracker_*`). It is a class that manages a list of the active
origins and allows to perform operations when all the tabs relating to that origin have been closed, in this case
deleting the session content settings of `UntilOriginClosed`.
See also: https://github.com/bromite/bromite/issues/1549| |**Add menu item to bookmark all tabs**
Thu, 18 Feb 2021 21:22:52 +0100
File: [Add-menu-item-to-bookmark-all-tabs.patch](/build/patches/Add-menu-item-to-bookmark-all-tabs.patch)
Author: csagan5
Context:
License: GPL-3.0-only || |**Add menu item to view source**
Mon, 13 Jul 2020 00:37:06 +0200
File: [Add-menu-item-to-view-source.patch](/build/patches/Add-menu-item-to-view-source.patch)
Author: csagan5
Context:
License: GPL-3.0-only || @@ -79,6 +79,7 @@ |**Disable GSA by default**
Sun, 7 May 2023 14:01:56 +0000
File: [Disable-GSA-by-default.patch](/build/patches/Disable-GSA-by-default.patch)
Author: uazo
Context:
License: GPL-2.0-or-later || |**Disable GetInstalledRelatedApps API**
Sun, 7 May 2023 13:13:47 +0000
File: [Disable-GetInstalledRelatedApps-API.patch](/build/patches/Disable-GetInstalledRelatedApps-API.patch)
Author: uazo
Context:
License: GPL-2.0-or-later || |**Disable NTP remote suggestions by default**
Thu, 12 Oct 2017 08:15:17 +0200
File: [Disable-NTP-remote-suggestions-by-default.patch](/build/patches/Disable-NTP-remote-suggestions-by-default.patch)
Author: csagan5
Context:
License: GPL-3.0-only || +|**Disable Paint Preview by default**
Wed, 20 Mar 2024 16:26:23 +0000
File: [Disable-Paint-Preview-by-default.patch](/build/patches/Disable-Paint-Preview-by-default.patch)
Author: uazo
Context:
License: GPL-2.0-or-later || |**Disable PrivacyGuide**
Sun, 31 Jul 2022 22:13:11 +0200
File: [Disable-PrivacyGuide.patch](/build/patches/Disable-PrivacyGuide.patch)
Author: csagan5
Context:
License: GPL-3.0-only || |**Disable PrivateStateTokens API**
Mon, 15 May 2023 12:33:18 +0000
File: [Disable-PrivateStateTokens-API.patch](/build/patches/Disable-PrivateStateTokens-API.patch)
Author: uazo
Context:
License: GPL-2.0-or-later || |**Disable Read Aloud by default**
Wed, 24 Jan 2024 12:19:44 +0000
File: [Disable-Read-Aloud-by-default.patch](/build/patches/Disable-Read-Aloud-by-default.patch)
Author: uazo
Context:
License: ||