@@ -22,12 +22,6 @@ const {
22
22
WebDriverSession,
23
23
} = ChromeUtils . import ( "chrome://marionette/content/session.js" ) ;
24
24
25
- // FTP protocol handler is needed for ftpProxy tests
26
- registerCleanupFunction ( function ( ) {
27
- Preferences . reset ( "network.ftp.enabled" ) ;
28
- } ) ;
29
- Preferences . set ( "network.ftp.enabled" , true ) ;
30
-
31
25
add_test ( function test_WebDriverSession_ctor ( ) {
32
26
const session = new WebDriverSession ( ) ;
33
27
@@ -157,7 +151,6 @@ add_test(function test_Proxy_ctor() {
157
151
"proxyType" ,
158
152
"httpProxy" ,
159
153
"sslProxy" ,
160
- "ftpProxy" ,
161
154
"socksProxy" ,
162
155
"socksVersion" ,
163
156
"proxyAutoconfigUrl" ,
@@ -207,7 +200,7 @@ add_test(function test_Proxy_init() {
207
200
equal ( Preferences . get ( "network.proxy.type" ) , 5 ) ;
208
201
209
202
// manual
210
- for ( let proxy of [ "ftp" , " http", "ssl" , "socks" ] ) {
203
+ for ( let proxy of [ "http" , "ssl" , "socks" ] ) {
211
204
p = new Proxy ( ) ;
212
205
p . proxyType = "manual" ;
213
206
p . noProxy = [ "foo" , "bar" ] ;
@@ -258,7 +251,7 @@ add_test(function test_Proxy_toJSON() {
258
251
p . proxyType = "manual" ;
259
252
deepEqual ( p . toJSON ( ) , { proxyType : "manual" } ) ;
260
253
261
- for ( let proxy of [ "ftpProxy" , " httpProxy", "sslProxy" , "socksProxy" ] ) {
254
+ for ( let proxy of [ "httpProxy" , "sslProxy" , "socksProxy" ] ) {
262
255
let expected = { proxyType : "manual" } ;
263
256
264
257
p = new Proxy ( ) ;
@@ -336,7 +329,7 @@ add_test(function test_Proxy_fromJSON() {
336
329
p . proxyType = "manual" ;
337
330
deepEqual ( p , Proxy . fromJSON ( { proxyType : "manual" } ) ) ;
338
331
339
- for ( let proxy of [ "httpProxy" , "sslProxy" , "ftpProxy" , " socksProxy"] ) {
332
+ for ( let proxy of [ "httpProxy" , "sslProxy" , "socksProxy" ] ) {
340
333
let manual = { proxyType : "manual" } ;
341
334
342
335
// invalid hosts
@@ -394,7 +387,7 @@ add_test(function test_Proxy_fromJSON() {
394
387
if ( proxy === "socksProxy" ) {
395
388
p [ `${ proxy } Port` ] = null ;
396
389
} else {
397
- let default_ports = { ftpProxy : 21 , httpProxy : 80 , sslProxy : 443 } ;
390
+ let default_ports = { httpProxy : 80 , sslProxy : 443 } ;
398
391
399
392
p [ `${ proxy } Port` ] = default_ports [ proxy ] ;
400
393
}
0 commit comments