From 4c00dd29a0a8592dff337d8b01870f06134c070b Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 19 Apr 2021 21:47:41 -0700 Subject: [PATCH] Remove third-party cookies. https://redmine.stoutner.com/issues/601 --- .idea/dictionaries/soren.xml | 1 + .../main/assets/de/guide_local_storage.html | 59 ++--- .../main/assets/en/guide_local_storage.html | 45 ++-- .../main/assets/es/guide_local_storage.html | 57 ++--- .../main/assets/fr/guide_local_storage.html | 57 ++--- .../main/assets/it/guide_local_storage.html | 58 ++--- .../assets/pt-rBR/guide_local_storage.html | 43 +--- .../main/assets/ru/guide_local_storage.html | 55 ++--- .../main/assets/tr/guide_local_storage.html | 53 ++--- .../activities/DomainsActivity.java | 10 +- .../activities/MainWebViewActivity.java | 116 +++------- .../fragments/DomainSettingsFragment.java | 139 +++-------- .../fragments/SettingsFragment.java | 215 ++++++------------ .../helpers/DomainsDatabaseHelper.java | 37 +-- .../helpers/ImportExportDatabaseHelper.java | 54 ++--- .../views/NestedScrollWebView.java | 26 +-- .../res/layout/domain_settings_fragment.xml | 45 +--- .../main/res/menu/webview_options_menu.xml | 11 +- app/src/main/res/values-de/strings.xml | 15 -- app/src/main/res/values-es/strings.xml | 14 -- app/src/main/res/values-fr/strings.xml | 14 -- app/src/main/res/values-it/strings.xml | 14 -- app/src/main/res/values-pt-rBR/strings.xml | 14 -- app/src/main/res/values-ru/strings.xml | 14 -- app/src/main/res/values-tr/strings.xml | 15 -- app/src/main/res/values/strings.xml | 23 +- app/src/main/res/xml/preferences.xml | 12 +- 27 files changed, 348 insertions(+), 868 deletions(-) diff --git a/.idea/dictionaries/soren.xml b/.idea/dictionaries/soren.xml index 42467e85..c4e8f141 100644 --- a/.idea/dictionaries/soren.xml +++ b/.idea/dictionaries/soren.xml @@ -61,6 +61,7 @@ easyprivacy edittext enabledomstorage + enabledthirdpartycookies enablefirstpartycookies enableformdata enablejavascript diff --git a/app/src/main/assets/de/guide_local_storage.html b/app/src/main/assets/de/guide_local_storage.html index 04d3b5a6..15bba0a2 100644 --- a/app/src/main/assets/de/guide_local_storage.html +++ b/app/src/main/assets/de/guide_local_storage.html @@ -1,7 +1,7 @@ + - - - - - - - - @@ -186,7 +157,7 @@ android:layout_marginStart="8dp" android:layout_marginTop="14dp" android:layout_marginBottom="14dp" - android:text="@string/dom_storage_enabled" + android:text="@string/dom_storage_preference" android:textColor="?android:textColorPrimary" android:textSize="18sp" /> @@ -213,7 +184,7 @@ android:layout_marginStart="8dp" android:layout_marginTop="14dp" android:layout_marginBottom="14dp" - android:text="@string/form_data_enabled" + android:text="@string/form_data" android:textColor="?android:textColorPrimary" android:textSize="18sp" /> diff --git a/app/src/main/res/menu/webview_options_menu.xml b/app/src/main/res/menu/webview_options_menu.xml index d294e57b..c1fb4ad2 100644 --- a/app/src/main/res/menu/webview_options_menu.xml +++ b/app/src/main/res/menu/webview_options_menu.xml @@ -46,20 +46,13 @@ app:showAsAction="never" /> - - Privater Modus JavaScript aktiviert JavaScript deaktiviert - Erstanbieter-Cookies aktiviert - Erstanbieter-Cookies deaktiviert - Drittanbieter-Cookies aktiviert - Drittanbieter-Cookies deaktiviert DOM-Speicher aktiviert DOM-Speicher deaktiviert Formulardaten aktiviert @@ -132,8 +128,6 @@ JavaScript Aktualisieren Stop - Erstanbieter-Cookies - Drittanbieter-Cookies DOM-Speicher Formulardaten Daten löschen @@ -448,15 +442,7 @@ Privatsphäre JavaScript JavaScript ermöglicht es Websites, Programme (Scripts) auf Ihrem Gerät auszuführen. - Erstanbieter-Cookies - Da die Cookie-Einstellungen App-weit gelten, werden, wenn im aktiven Tab Cookies erlaubt sind, - auch in den Hintergrund-Tabs Cookies der dort angezeigten Seiten und deren Domains angenommen. - Unter Android KitKat (version 4.4.x) wird nicht zwischen Cookies und Drittanbieter-Cookies unterschieden, - sodass in dieser Version mit dieser Einstellung beide Cookie-Varianten aktiviert werden. - Drittanbieter-Cookies - Diese Option benötigt Android Lollipop (Version 5.0) oder höher. Sie hat keine Auswirkungen, wenn Erstanbieter-Cookies deaktiviert sind. DOM-Speicher - JavaScript muss für die Funktionalität des DOM-Speichers aktiviert sein. Formulardaten Mit gespeicherten Formulardaten können Formularfelder auf Websites automatisch ausgefüllt werden. User Agent @@ -560,7 +546,6 @@ Löscht Cookies, DOM-Storage, Formular-Daten, das Logcat Systemlogbuch und den WebView-Cache, sowie die gesamten “app_webview”- und “cache”-Ordner. Cookies löschen - Löscht Cookies und Drittanbieter-Cookies. DOM Storage löschen Löscht DOM storage (aka Web Storage oder Supercookies). Formulardaten löschen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index c957ab56..d89e6fb4 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -31,10 +31,6 @@ Modo Privado Javascript habilitado Javascript deshabilitado - Cookies de primera parte habilitadas - Cookies de primera parte deshabilitadas - Cookies de terceras partes habilitadas - Cookies de terceras partes deshabilitadas Almacenamiento DOM habilitado Almacenamiento DOM deshabilitado Datos de formulario habilitados @@ -128,8 +124,6 @@ Javascript Actualizar Parar - Cookies de primera parte - Cookies de terceras partes Almacenamiento DOM Datos de formulario Borrar datos @@ -445,14 +439,7 @@ Privacidad Javascript Javascript permite a las webs ejecutar programas (scripts) en el dispositivo. - Cookies de primera parte - Ya que las cookies de primera parte son una configuración de nivel de aplicación, cuando la pestaña activa tiene habilitadas las cookies, - cualquier solicitud de red realizada en segundo plano por otras pestañas también incluirá las cookies almacenadas para sus dominios. - Android KitKat (versión 4.4.x) no distingue entre cookies de primera y de terceras partes y las habilitará ambas con esta configuración. - Cookies de terceras partes - Este ajuste requiere Android Lollipop (versión 5.0) o mayor. No tiene efecto si las cookies de primera parte están deshabilitadas. Almacenamiento DOM - Javascript debe estar habilitado para que funcione el almacenamiento DOM. Datos de formulario Los datos de formularios guardados pueden rellenar automáticamente las casillas o campos de las webs. Agente de usuario @@ -557,7 +544,6 @@ Borra cookies, almacenamiento DOM, datos de formulario, el logcat y la caché de WebView. A continuación borra manualmente los directorios “app_webview” y “cache”. Borrar cookies - Borra las cookies de primera y terceras partes. Borrar almacenamiento DOM Borra el almacenamiento DOM. Borrar datos de formulario diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 214c99b7..07e3f44b 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -32,10 +32,6 @@ Mode privé JavaScript activé JavaScript désactivé - Cookies internes activés - Cookies internes désactivés - Cookies tierces parties activés - Cookies tierces parties désactivés Stockage du DOM activé Stockage du DOM désactivé Données de formulaires activé @@ -128,8 +124,6 @@ JavaScript Rafraîchir Stop - Cookies internes - Cookies tiers Stockage DOM Formulaire de données Effacer les données @@ -440,14 +434,7 @@ Vie privée JavaScript JavaScript permet aux sites web de lancer des programmes (scripts) sur le terminal. - Cookies internes - L\'autorisation des cookies internes s\'effectuent au niveau de l\'application, - toute requête réseau effectué en arrière-plan par d\'autres onglets contenant des domaines de l\'onglet actif sera impactéé. - Android KitKat (version 4.4.x) ne différencie pas cookies internes et cookies tiers et les activeront tous avec ce paramètre. - Cookies tierces parties - Ce paramètre nécessite Android Lollipop (version 5.0) ou plus. Il n\'a pas d\'effet si les cookies internes sont désactivés Stockage du DOM - JavaScript doit être activé pour que le stockage du DOM fonctionne. Formulaire de données Les formulaires de données sauvegardés peuvent remplir automatiquement des champs sur les sites web. User agent @@ -552,7 +539,6 @@ Efface les cookies, le stockage DOM, les données de formulaire, le logcat et le cache de WebView. Supprime ensuite manuellement les répertoires entiers «app_webview» et «cache». Effacer les cookies - Efface l\'ensemble des cookies internes et tiers Effacer le stockage DOM Efface le stockage du DOM. Effacer les données de formulaire diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 2eaf5e6b..ffcda4ce 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -31,10 +31,6 @@ Modalità privata JavaScript abilitato JavaScript disabilitato - Cookies proprietari abilitati - Cookies proprietari disabilitati - Cookies di terze parti abilitati - Cookies di terze parti disabilitati DOM Storage abilitato DOM Storage disabilitato Dati dei Moduli abilitati @@ -128,8 +124,6 @@ JavaScript Aggiorna Stop - Cookies proprietari - Cookies di terze parti DOM storage Dati dei moduli Elimina dati @@ -444,14 +438,7 @@ Privacy JavaScript Permetti a JavaScript di eseguire programmi (script) sul dispositivo. - Cookies proprietari - Dal momento che i cookie proprietari sono un\'impostazione a livello di applicazione, - quando la scheda attiva ha i cookie proprietari attivati anche ogni richiesta di rete in background da parte delle altre schede includerà i cookie per i relativi domini. - Android KitKat (versione 4.4.x) inoltre non distingue tra cookie proprietari e cookie di terze parti e pertanto li abiliterà entrambi con questa impostazione. - Cookies di terze parti - Questa impostazione richiede Android Lollipop (version 5.0) o successivo. Non ha effetti se i cookies proprietari sono disabilitati. DOM Storage - JavaScript deve essere abilitato per il DOM storage. Dati dei moduli I dati dei moduli salvati permettono di auto-compilare i campi dei moduli nei siti web. User agent @@ -556,7 +543,6 @@ Cancella i cookies, il DOM storage, i dati dei moduli, il logcat e la cache di WebView. Cancella completamente le cartelle “app_webview” e “cache”. Elimina i cookie - Cancella solo i cookie proprietari e di terze parti. Elimina il DOM storage Cancella solo il DOM storage. Elimina i dati dei moduli diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 7c0aa650..249bd687 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -31,10 +31,6 @@ Modo Privado JavaScript ativado JavaScript desativado - Cookies primários habilitados - Cookies primários desabilitados - Cookies de terceiros habilitados - Cookies de terceiros desabilitados Armazenamento DOM ativado Armazenamento DOM desativado Dados de formulário habilitados @@ -126,8 +122,6 @@ JavaScript Atualizar Parar - Cookies primários - Cookies de terceiros Armazenamento DOM Dados do formulário Limpar dados @@ -437,14 +431,7 @@ Privacidade JavaScript JavaScript permite que sites executem programas (scripts) no dispositivo. - Cookies primários - Como os cookies primários são uma configuração de nível de aplicativo, quando a guia ativa tem cookies habilitados, - todas as solicitações de rede feitas em segundo plano por outras guias também incluirão quaisquer cookies armazenados para seus domínios. - O Android KitKat (versão 4.4.x) não diferencia entre cookies primários e de terceiros e os habilitará com esta configuração. - Cookies de terceiros - Esta configuração requer Android Lollipop (versão 5.0) ou superior. Não tem efeito se os cookies primários estiverem desativados. Armazenamento DOM - JavaScript deve estar habilitado para que o armazenamento DOM funcione. Dados do formulário Dados de formulário salvos podem preencher campos automaticamente em sites. @@ -549,7 +536,6 @@ Limpa cookies, armazenamento DOM, dados de formulário e cache do WebView. Em seguida, exclui manualmente todos os diretórios “app_webview” e “cache”. Limpar cookies - Limpa os cookies originais e de terceiros. Limpar armazenamento DOM Limpa o armazenamento DOM. Limpar dados do formulário diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index cb285746..c1ae2baa 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -29,10 +29,6 @@ Режим приватности JavaScript включен JavaScript отключен - Первичные файлы cookie включены - Первичные файлы cookie отключены - Сторонние файлы cookie включены - Сторонние файлы cookie отключены DOM-хранилище включено DOM-хранилище отключено Данные формы включены @@ -125,8 +121,6 @@ JavaScript Обновить Остановить - Первичные файлы cookie - Сторонние файлы cookie DOM-хранилище Данные формы Очистить данные @@ -441,14 +435,7 @@ Конфиденциальность JavaScript JavaScript позволяет веб-сайтам запускать программы (скрипты) на устройстве. - Первичные файлы cookie - Поскольку первичные файлы cookie являются настройкой уровня приложения, при включении файлов cookie на активной вкладке, любые сетевые запросы, - сделанные в фоновом режиме другими вкладками, также будут содержать любые сохраненные файлы cookie для их доменов. - Android KitKat (версия 4.4.x) не различает первичные и сторонние файлы cookie и включает их одновременно этой настройкой. - Сторонние файлы cookie - Этот параметр требует Android Lollipop (версия 5.0) или выше. Он не действует, если первичные файлы cookie отключены. DOM-хранилище - Для работы хранилища DOM должен быть включен JavaScript. Сохранение данных формы Сохраненные данные формы могут автоматически заполнять поля на веб-сайтах. User agent @@ -552,7 +539,6 @@ Очищает файлы cookie, DOM-хранилище, данные форм, logcat и кэш WebView. После этого вручную удаляет каталоги "app_webview" и "cache". Очистить файлы cookie - Очистить первичные и сторонние файлы cookie. Очистить DOM-хранилище Очищает DOM-хранилище. Очистка данных формы diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 9295ac51..e8775bcd 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -29,10 +29,6 @@ Gizlilik Modu JavaScript etkin JavaScript devre dışı - Birinci Taraf Çerezler etkin - Birinci Taraf Çerezler devre dışı - Üçüncü Taraf Çerezler etkin - Üçüncü Taraf Çerezler devre dışı DOM Depolama etkin DOM Depolama devre dışı Form Verisi etkin @@ -123,8 +119,6 @@ JavaScript Yenile Dur - Birinci Taraf Çerezler - Üçüncü Taraf Çerezler DOM Depolama Form Verisi Veriyi temizle @@ -396,15 +390,7 @@ Gizlilik JavaScript JavaScript, web sitelerin cihazdaki programları (scriptler) çalıştırmasına izin verir. - Birinci taraf çerezler - Birinci taraf çerezler uygulama düzeyinde bir ayar olduğundan, aktif sekmede çerezler etkinleştirildiğinde, - arka plandaki diğer sekmeler tarafından yapılan herhangi ağ istekleri aynı zamanda domainleri için depolanan çerezleri de kapsayacaktır. - Android Kitkat versiyonu (4.4.x), birinci ve üçüncü taraf çerezler arasında ayrım yapmaz ve bu ayarla ikisini de etkinleştirir. - Üçüncü taraf çerezler - Bu ayarı etkinleştirmek için Android Lollipop versiyonuna (5.0) ya da daha üst versiyonlara sahip olmak gerekir. - Birinci taraf çerezler devre dışı olduğu takdirde etkisi yoktur. DOM depolama - DOM depolamasının çalışması için JavaScript\'in etkin olması gerekir. Form verisi Kaydedilen form verisi, web sitelerdeki boşlukları otomatik olarak dolduracaktır. Kullanıcı aracısı @@ -490,7 +476,6 @@ Her şeyi temizle Çerezleri, DOM depolamayı, form verisini ve WebView ön belleğini temizler. Sonrasında, manuel olarak bütün “app_webview” ve “cache” dizinlerini siler. Çerezleri temizle - Birinci ve üçüncü taraf çerezleri temizler. DOM Depolamayı temizle DOM Depolamayı temizler. Form verisini temizle diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 41396165..5ef6920d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -36,10 +36,8 @@ Privacy Mode JavaScript enabled JavaScript disabled - First-Party Cookies enabled - First-Party Cookies disabled - Third-Party Cookies enabled - Third-Party Cookies disabled + Cookies enabled + Cookies disabled DOM Storage enabled DOM Storage disabled Form Data enabled @@ -132,8 +130,7 @@ JavaScript Refresh Stop - First-Party Cookies - Third-Party Cookies + Cookies DOM Storage Form Data Clear Data @@ -452,14 +449,11 @@ Privacy JavaScript JavaScript allows websites to run programs (scripts) on the device. - First-party cookies - Because first-party cookies are an app level setting, when the active tab has cookies enabled, - any network requests made in the background by other tabs will also include any stored cookies for their domains. - Android KitKat (version 4.4.x) does not differentiate between first and third-party cookies and will enable them both with this setting. - Third-party cookies - This setting requires Android Lollipop (version 5.0) or higher. It has no effect if first-party cookies are disabled. + Cookies + Cookies are an app level setting. When the active tab has cookies enabled, + any network request made in the background by another tab also has cookies enabled. DOM storage - JavaScript must be enabled for DOM storage to function. + JavaScript must be enabled for Document Object Model storage to function. Form data Saved form data can auto-populate fields on websites. User agent @@ -611,7 +605,7 @@ Clears cookies, DOM storage, form data, the logcat, and WebView’s cache. Then manually deletes the entire “app_webview” and “cache” directories. Clear cookies - Clears first and third-party cookies. + Clears cookies. Clear DOM storage Clears DOM storage. Clear form data @@ -659,6 +653,7 @@ Disable to conserve bandwidth. + cookies allow_screenshots clear_logcat display_additional_app_bar_icons diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 36448a77..8aed8661 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -30,15 +30,9 @@ android:defaultValue="false" /> - -