Skip to content

Commit fed7cd1

Browse files
[java] Disable referrer tests in Chrome due to it's new defaults
From Chrome 85 referrer data is stripped for privacy reason. These tests are now ignored for Chrome
1 parent 08e351d commit fed7cd1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/client/test/org/openqa/selenium/ReferrerTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ public void basicHistoryNavigationWithoutAProxy() {
156156
*/
157157
@Test
158158
@NeedsLocalEnvironment
159+
@Ignore(value = CHROME,
160+
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
159161
public void crossDomainHistoryNavigationWithoutAProxy() {
160162
String page1Url = server1.whereIs(PAGE_1) + "?next=" + encode(server2.whereIs(PAGE_2));
161163
String page2Url = server2.whereIs(PAGE_2) + "?next=" + encode(server1.whereIs(PAGE_3));
@@ -198,6 +200,8 @@ public void basicHistoryNavigationWithADirectProxy() {
198200
*/
199201
@Test
200202
@NeedsLocalEnvironment
203+
@Ignore(value = CHROME,
204+
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
201205
public void crossDomainHistoryNavigationWithADirectProxy() {
202206
proxyServer.setPacFileContents("function FindProxyForURL(url, host) { return 'DIRECT'; }");
203207
WebDriver driver = createDriver(proxyServer.whereIs("/pac.js"));
@@ -221,6 +225,8 @@ public void crossDomainHistoryNavigationWithADirectProxy() {
221225
*/
222226
@Test
223227
@NeedsLocalEnvironment
228+
@Ignore(value = CHROME,
229+
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
224230
public void crossDomainHistoryNavigationWithAProxiedHost() {
225231
proxyServer.setPacFileContents(Joiner.on('\n').join(
226232
"function FindProxyForURL(url, host) {",
@@ -251,6 +257,8 @@ public void crossDomainHistoryNavigationWithAProxiedHost() {
251257
*/
252258
@Test
253259
@NeedsLocalEnvironment
260+
@Ignore(value = CHROME,
261+
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
254262
public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
255263
proxyServer.setPacFileContents(Joiner.on('\n').join(
256264
"function FindProxyForURL(url, host) {",

0 commit comments

Comments
 (0)