]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/assets/zh-rCN/guide_local_storage.html
Simplified Chines Guide translation.
[PrivacyBrowserAndroid.git] / app / src / main / assets / zh-rCN / guide_local_storage.html
1 <!--
2   Copyright 2016-2018,2020-2023 Soren Stoutner <soren@stoutner.com>.
3
4   Translation 2023 Xin.  Copyright assigned to Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
7
8   Privacy Browser Android is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser Android is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser Android.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <html>
22     <head>
23         <meta charset="UTF-8">
24
25         <link rel="stylesheet" href="../css/theme.css">
26
27         <!-- Setting the color scheme instructs the WebView to respect `prefers-color-scheme` @media CSS. -->
28         <meta name="color-scheme" content="light dark">
29     </head>
30
31     <body>
32         <h3><svg class="header"><use href="../shared_images/cookie.svg#icon"/></svg> 第一方Cookies</h3>
33
34         <p>第一方cookies在页面顶部的链接栏设置。</p>
35
36         <p>在早期的互联网中,网页能够储存在电脑上储存信息是很明显有利于下次访问的。例如,一个网页显示天气情况时询问用户邮政编码,然后储存在cookie里。用户下一次访问这个网页,会自动加载这个邮编所在地区的的天气情况,不需要用户再输一遍。</p>
37
38         <p>像网页上的其他东西,聪明的人想尽各种方法来滥用cookies去做如果用户直到不会赞成的事。例如,网页给设备设定一个独特的序列号,然后这个设备访问这个王者,就会被连接到这个序列号预先准备好的服务中,尽管该设备从不同的IP地址访问也一样。</p>
39
40         <p>大部分需要登录的网页要求cookies。他们通过这个方法来确定不同网页登录的你还是你,在我看来,这个使用cookies是合规的</p>
41
42         <p>安卓系统的Webview程序把cookies当成应用级的设置,意味着隐私浏览器的cookies可以在所有页面打开或关闭。这会导致当前页面设置的cookies会在所有页面生效。
43             如果你在后台有一个页面需要cookies来登录,而你在一个页面里关闭了cookies,所有页面的cookies都会被关闭。如果在后台的页面发出请求,例如,看有没有新消息,而在没有cookies的情况下需要你重新登录。
44             这个限制会在<a href="https://www.stoutner.com/category/privacy-browser-android-roadmap/">隐私浏览器</a> 4.x系列中移除。</p>
45
46         <p>如果cookies允许,而JavaScript不允许,隐私盾牌会变成黄色<img class="inline" src="../shared_images/warning.svg">来示警</p>
47
48
49         <h3><svg class="header"><use href="../shared_images/cookie.svg#icon"/></svg> 第三方Cookies</h3>
50
51         <p>第三方cookies来自于网页的一部分,不同于顶部的在服务器加载的URL,这没有很好的理由来允许第三方cookies,隐私浏览器会在3.8版本移出这个选项,
52             甚至于谷歌计划<a href="https://www.theverge.com/2020/1/14/21064698/google-third-party-cookies-chrome-two-years-privacy-safari-firefox">在将来禁用他们</a>.</p>
53
54
55         <h3><svg class="header"><use href="../shared_images/web.svg#icon"/></svg> DOM 储存</h3>
56
57         <p>文本对向储存。也叫网页存储。像cookies一样被储存,单个URL的所有的cookies的最大的组合是4KB,而DOM能储存<a href="https://en.wikipedia.org/wiki/Web_storage#Features">MB</a>。
58             不像cookies,DOM储存不在请求头中发送数据,相反,它使用JavaScript来读写数据,意味着在禁用JavaScript时DOM不能工作。</p>
59
60
61         <h3><svg class="header"><use href="../shared_images/subtitles.svg#icon"/></svg> 表单数据</h3>
62
63         <p>表单数据包含输入到web表单中的信息,包括用户名。地址,电话等等,并且在表中罗列。不像其他本地存储的表单,没有特定的用户需求,表单不会发送到web中。
64             从Android Oreo (version 8.0, API 26)开始,WebView的表单数据被<a href="https://medium.com/@bherbst/getting-androids-autofill-to-work-for-you-21435debea1">Autofill service</a>取代。
65             因此表单数据控件不会在新的安卓设备中出现</p>
66
67
68         <h3><svg class="header"><use href="../shared_images/delete_forever.svg#icon"/></svg> 清除并退出</h3>
69
70         <p>清除并退出会在最后一个页面退出或在导航栏选中时运行,默认清除cookies,DOM储存,表单数据,日志和WebView缓存。然后需要手动删除app_webview和cache目录。可以在设置中配置清除并退出的行为。</p>
71     </body>
72 </html>