@@ -459,39 +459,6 @@ function findInProgramFiles(file) {
459
459
} ) ;
460
460
}
461
461
462
- function normalizeProxyConfiguration ( config ) {
463
- if ( 'manual' === config . proxyType ) {
464
- if ( config . ftpProxy && ! config . ftpProxyPort ) {
465
- let hostAndPort = net . splitHostAndPort ( config . ftpProxy ) ;
466
- config . ftpProxy = hostAndPort . host ;
467
- config . ftpProxyPort = hostAndPort . port ;
468
- }
469
-
470
- if ( config . httpProxy && ! config . httpProxyPort ) {
471
- let hostAndPort = net . splitHostAndPort ( config . httpProxy ) ;
472
- config . httpProxy = hostAndPort . host ;
473
- config . httpProxyPort = hostAndPort . port ;
474
- }
475
-
476
- if ( config . sslProxy && ! config . sslProxyPort ) {
477
- let hostAndPort = net . splitHostAndPort ( config . sslProxy ) ;
478
- config . sslProxy = hostAndPort . host ;
479
- config . sslProxyPort = hostAndPort . port ;
480
- }
481
-
482
- if ( config . socksProxy && ! config . socksProxyPort ) {
483
- let hostAndPort = net . splitHostAndPort ( config . socksProxy ) ;
484
- config . socksProxy = hostAndPort . host ;
485
- config . socksProxyPort = hostAndPort . port ;
486
- }
487
- } else if ( 'pac' === config . proxyType ) {
488
- if ( config . proxyAutoconfigUrl && ! config . pacUrl ) {
489
- config . proxyAutoconfigUrl = config . proxyAutoconfigUrl ;
490
- }
491
- }
492
- return config ;
493
- }
494
-
495
462
496
463
/** @enum {string} */
497
464
const ExtensionCommand = {
@@ -605,12 +572,6 @@ class Driver extends webdriver.WebDriver {
605
572
caps = new capabilities . Capabilities ( opt_config ) ;
606
573
}
607
574
608
- if ( caps . has ( capabilities . Capability . PROXY ) ) {
609
- let proxy =
610
- normalizeProxyConfiguration ( caps . get ( capabilities . Capability . PROXY ) ) ;
611
- caps . set ( capabilities . Capability . PROXY , proxy ) ;
612
- }
613
-
614
575
let executor ;
615
576
let onQuit ;
616
577
0 commit comments