Commit 1fa3656c authored by Carlos IL's avatar Carlos IL Committed by Commit Bot

Add SB committed interstitials to testing config

This CL adds safe browsing committed interstitials to
fieldtrial_testing_config.json (for non webview platforms) in
preparation for launch to beta.

Bug: 755632, 1039367, 1039443
Change-Id: Id80302b653f3bc7359e2015184922ae5c7373481
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1988511Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
Commit-Queue: Carlos IL <carlosil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730229}
parent f6cf0cc4
...@@ -567,10 +567,10 @@ public class DetachedResourceRequestTest { ...@@ -567,10 +567,10 @@ public class DetachedResourceRequestTest {
Tab tab = mCustomTabActivityTestRule.getActivity().getActivityTab(); Tab tab = mCustomTabActivityTestRule.getActivity().getActivityTab();
// TODO(carlosil): For now, we check the presence of an interstitial through the title // TODO(crbug.com/1039443): For now, we check the presence of an interstitial through
// since isShowingInterstitialPage does not work with committed interstitials. Once we // the title since isShowingInterstitialPage does not work with committed interstitials.
// fully migrate to committed interstitials, this should be changed to a more robust // Once we fully migrate to committed interstitials, this should be changed to a more
// check. // robust check.
CriteriaHelper.pollUiThread( CriteriaHelper.pollUiThread(
() -> tab.getWebContents().getTitle().equals("Security error")); () -> tab.getWebContents().getTitle().equals("Security error"));
...@@ -609,8 +609,11 @@ public class DetachedResourceRequestTest { ...@@ -609,8 +609,11 @@ public class DetachedResourceRequestTest {
Tab tab = mCustomTabActivityTestRule.getActivity().getActivityTab(); Tab tab = mCustomTabActivityTestRule.getActivity().getActivityTab();
WebContents webContents = tab.getWebContents(); WebContents webContents = tab.getWebContents();
// Need to poll as the subresource request is async. // TODO(crbug.com/1039443): For now, we check the presence of an interstitial through
CriteriaHelper.pollUiThread(() -> webContents.isShowingInterstitialPage()); // the title since isShowingInterstitialPage does not work with committed interstitials.
// Once we fully migrate to committed interstitials, this should be changed to a more
// robust check.
CriteriaHelper.pollUiThread(() -> webContents.getTitle().equals("Security error"));
} finally { } finally {
MockSafeBrowsingApiHandler.clearMockResponses(); MockSafeBrowsingApiHandler.clearMockResponses();
} }
......
...@@ -1882,6 +1882,10 @@ class SafeBrowsingBlockingPageIDNTest ...@@ -1882,6 +1882,10 @@ class SafeBrowsingBlockingPageIDNTest
IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageIDNTest, IN_PROC_BROWSER_TEST_P(SafeBrowsingBlockingPageIDNTest,
SafeBrowsingBlockingPageDecodesIDN) { SafeBrowsingBlockingPageDecodesIDN) {
// TODO(crbug.com/1039367): VerifyIDNDecoded does not work with committed
// interstitials, this test should be re-enabled once it is adapted.
if (AreCommittedInterstitialsEnabled())
return;
EXPECT_TRUE(VerifyIDNDecoded()); EXPECT_TRUE(VerifyIDNDecoded());
} }
......
...@@ -5533,6 +5533,25 @@ ...@@ -5533,6 +5533,25 @@
] ]
} }
], ],
"SafeBrowsingCommittedInterstitials": [
{
"platforms": [
"android",
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"SafeBrowsingCommittedInterstitials"
]
}
]
}
],
"SafeBrowsingPasswordProtectionForSavedPasswords": [ "SafeBrowsingPasswordProtectionForSavedPasswords": [
{ {
"platforms": [ "platforms": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment