зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1798363 - Have DFPI as the default cookie policy in GeckoView-Example. r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D160830
This commit is contained in:
Родитель
b6b08f7b66
Коммит
ba8c53f59e
|
@ -812,6 +812,10 @@ public class GeckoViewActivity extends AppCompatActivity
|
|||
if (extras != null) {
|
||||
runtimeSettingsBuilder.extras(extras);
|
||||
}
|
||||
final @ContentBlocking.CBCookieBehavior int cookieBehavior =
|
||||
preferences.getBoolean(getString(R.string.key_dfpi), true)
|
||||
? ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY_AND_ISOLATE_OTHERS
|
||||
: ContentBlocking.CookieBehavior.ACCEPT_NON_TRACKERS;
|
||||
runtimeSettingsBuilder
|
||||
.remoteDebuggingEnabled(mRemoteDebugging.value())
|
||||
.consoleOutput(true)
|
||||
|
@ -820,8 +824,8 @@ public class GeckoViewActivity extends AppCompatActivity
|
|||
.antiTracking(
|
||||
ContentBlocking.AntiTracking.DEFAULT | ContentBlocking.AntiTracking.STP)
|
||||
.safeBrowsing(ContentBlocking.SafeBrowsing.DEFAULT)
|
||||
.cookieBehavior(ContentBlocking.CookieBehavior.ACCEPT_NON_TRACKERS)
|
||||
.cookieBehaviorPrivateMode(ContentBlocking.CookieBehavior.ACCEPT_NON_TRACKERS)
|
||||
.cookieBehavior(cookieBehavior)
|
||||
.cookieBehaviorPrivateMode(cookieBehavior)
|
||||
.enhancedTrackingProtectionLevel(ContentBlocking.EtpLevel.DEFAULT)
|
||||
.build())
|
||||
.crashHandler(ExampleCrashHandler.class)
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
<item type="bool" name="remote_debugging_default">true</item>
|
||||
|
||||
<string name="key_dfpi">dfpi</string>
|
||||
<item type="bool" name="dfpi_default">false</item>
|
||||
<item type="bool" name="dfpi_default">true</item>
|
||||
|
||||
<string name="key_autoplay">autoplay</string>
|
||||
<item type="bool" name="autoplay_default">false</item>
|
||||
|
|
Загрузка…
Ссылка в новой задаче