-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.patch
68 lines (63 loc) · 3.51 KB
/
a.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- a/components/content_settings/core/browser/content_settings_registry.cc 2017-10-04 18:07:38.000000000 -0400
+++ b/components/content_settings/core/browser/content_settings_registry.cc 2017-10-09 23:16:32.253867943 -0400
@@ -119,7 +119,7 @@
// WARNING: The string names of the permissions passed in below are used to
// generate preference names and should never be changed!
- Register(CONTENT_SETTINGS_TYPE_COOKIES, "cookies", CONTENT_SETTING_ALLOW,
+ Register(CONTENT_SETTINGS_TYPE_COOKIES, "cookies", CONTENT_SETTING_SESSION_ONLY,
WebsiteSettingsInfo::SYNCABLE,
WhitelistedSchemes(kChromeUIScheme, kChromeDevToolsScheme),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK,
@@ -175,7 +175,7 @@
ContentSettingsInfo::PERSISTENT);
Register(CONTENT_SETTINGS_TYPE_GEOLOCATION, "geolocation",
- CONTENT_SETTING_ASK, WebsiteSettingsInfo::UNSYNCABLE,
+ CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE,
WhitelistedSchemes(),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK,
CONTENT_SETTING_ASK),
@@ -199,7 +199,7 @@
ContentSettingsInfo::PERSISTENT);
Register(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, "media-stream-mic",
- CONTENT_SETTING_ASK, WebsiteSettingsInfo::UNSYNCABLE,
+ CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE,
WhitelistedSchemes(kChromeUIScheme, kChromeDevToolsScheme),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK,
CONTENT_SETTING_ASK),
@@ -245,7 +245,7 @@
// TODO(raymes): We're temporarily making midi sysex unsyncable while we roll
// out the kPermissionDelegation feature. We may want to make it syncable
// again sometime in the future. See https://crbug.com/879954 for details.
- Register(CONTENT_SETTINGS_TYPE_MIDI_SYSEX, "midi-sysex", CONTENT_SETTING_ASK,
+ Register(CONTENT_SETTINGS_TYPE_MIDI_SYSEX, "midi-sysex", CONTENT_SETTING_BLOCK,
WebsiteSettingsInfo::UNSYNCABLE, WhitelistedSchemes(),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK,
CONTENT_SETTING_ASK),
@@ -260,9 +260,9 @@
// On Android, the default value is ALLOW. See https://crbug.com/854737 for
// details. On ChromeOS the default value is still ASK.
#if defined(OS_ANDROID)
- CONTENT_SETTING_ALLOW,
+ CONTENT_SETTING_BLOCK,
#else
- CONTENT_SETTING_ASK,
+ CONTENT_SETTING_BLOCK,
#endif // defined(OS_ANDROID)
WebsiteSettingsInfo::UNSYNCABLE, WhitelistedSchemes(),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK,
@@ -289,7 +289,7 @@
ContentSettingsInfo::PERSISTENT);
Register(CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, "background-sync",
- CONTENT_SETTING_ALLOW, WebsiteSettingsInfo::UNSYNCABLE,
+ CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE,
WhitelistedSchemes(),
ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK),
WebsiteSettingsInfo::SINGLE_ORIGIN_ONLY_SCOPE,
@@ -347,7 +347,7 @@
ContentSettingsInfo::PERSISTENT);
Register(CONTENT_SETTINGS_TYPE_BLUETOOTH_GUARD, "bluetooth-guard",
- CONTENT_SETTING_ASK, WebsiteSettingsInfo::UNSYNCABLE,
+ CONTENT_SETTING_BLOCK, WebsiteSettingsInfo::UNSYNCABLE,
WhitelistedSchemes(),
ValidSettings(CONTENT_SETTING_ASK, CONTENT_SETTING_BLOCK),
WebsiteSettingsInfo::SINGLE_ORIGIN_ONLY_SCOPE,