33
33
import org .openqa .selenium .remote .http .HttpResponse ;
34
34
import org .openqa .selenium .support .ui .WebDriverWait ;
35
35
import org .openqa .selenium .testing .Ignore ;
36
- import org .openqa .selenium .testing .NeedsLocalEnvironment ;
37
36
import org .openqa .selenium .testing .SeleniumTestRule ;
38
37
import org .openqa .selenium .testing .SeleniumTestRunner ;
39
38
@@ -138,7 +137,6 @@ private WebDriver createDriver(String pacUrl) {
138
137
* does not have a proxy configured.
139
138
*/
140
139
@ Test
141
- @ NeedsLocalEnvironment
142
140
public void basicHistoryNavigationWithoutAProxy () {
143
141
String page1Url = server1 .whereIs (PAGE_1 + "?next=" + encode (server1 .whereIs (PAGE_2 )));
144
142
String page2Url = server1 .whereIs (PAGE_2 + "?next=" + encode (server1 .whereIs (PAGE_3 )));
@@ -155,7 +153,6 @@ public void basicHistoryNavigationWithoutAProxy() {
155
153
* Tests navigation across multiple domains when the browser does not have a proxy configured.
156
154
*/
157
155
@ Test
158
- @ NeedsLocalEnvironment
159
156
@ Ignore (value = CHROME , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
160
157
@ Ignore (value = FIREFOX , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
161
158
public void crossDomainHistoryNavigationWithoutAProxy () {
@@ -177,7 +174,6 @@ public void crossDomainHistoryNavigationWithoutAProxy() {
177
174
* configured to use a proxy that permits direct access to that domain.
178
175
*/
179
176
@ Test
180
- @ NeedsLocalEnvironment
181
177
public void basicHistoryNavigationWithADirectProxy () {
182
178
proxyServer .setPacFileContents ("function FindProxyForURL(url, host) { return 'DIRECT'; }" );
183
179
WebDriver driver = createDriver (proxyServer .whereIs ("/pac.js" ));
@@ -199,7 +195,6 @@ public void basicHistoryNavigationWithADirectProxy() {
199
195
* permits direct access to those domains.
200
196
*/
201
197
@ Test
202
- @ NeedsLocalEnvironment
203
198
@ Ignore (value = CHROME , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
204
199
@ Ignore (value = FIREFOX , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
205
200
public void crossDomainHistoryNavigationWithADirectProxy () {
@@ -224,7 +219,6 @@ public void crossDomainHistoryNavigationWithADirectProxy() {
224
219
* redirects the second domain to another host.
225
220
*/
226
221
@ Test
227
- @ NeedsLocalEnvironment
228
222
@ Ignore (value = CHROME , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
229
223
@ Ignore (value = FIREFOX , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
230
224
public void crossDomainHistoryNavigationWithAProxiedHost () {
@@ -256,7 +250,6 @@ public void crossDomainHistoryNavigationWithAProxiedHost() {
256
250
* to connect directly to the target server.
257
251
*/
258
252
@ Test
259
- @ NeedsLocalEnvironment
260
253
@ Ignore (value = CHROME , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
261
254
@ Ignore (value = FIREFOX , reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default" )
262
255
public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests () {
@@ -291,7 +284,6 @@ public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
291
284
reason = "IEDriver does not disable automatic proxy caching, causing this test to fail, issue 6629" )
292
285
@ Ignore (FIREFOX )
293
286
@ Ignore (value = LEGACY_FIREFOX_XPI , travis = true )
294
- @ NeedsLocalEnvironment
295
287
@ Ignore (value = CHROME , reason = "Flaky" )
296
288
public void navigationWhenProxyInterceptsASpecificUrl () {
297
289
// Have our proxy intercept requests for page 2.
0 commit comments