Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit f46bd47

Browse files
committed
Bug 1574475 - Fix some failing FTP tests r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D111251
1 parent de35210 commit f46bd47

File tree

7 files changed

+0
-93
lines changed

7 files changed

+0
-93
lines changed

browser/components/urlbar/tests/browser/browser_canonizeURL.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ add_task(async function checkCtrlWorks() {
4040
],
4141
];
4242

43-
if (Services.prefs.getBoolPref("network.ftp.enabled")) {
44-
// Include FTP testcase only if FTP protocol handler is enabled, otherwise
45-
// the test would hang on external application chooser popup.
46-
testcases.push(["ftp://example", "ftp://example/", { ctrlKey: true }]);
47-
}
48-
4943
// Disable autoFill for this test, since it could mess up the results.
5044
await SpecialPowers.pushPrefEnv({
5145
set: [

browser/components/urlbar/tests/unit/test_search_suggestions.js

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,61 +1264,7 @@ add_task(async function avoid_remote_url_suggestions_2() {
12641264
],
12651265
});
12661266

1267-
// Check FTP enabled
1268-
Services.prefs.setBoolPref("network.ftp.enabled", true);
1269-
registerCleanupFunction(() =>
1270-
Services.prefs.clearUserPref("network.ftp.enabled")
1271-
);
1272-
1273-
context = createContext("ftp:", { isPrivate: false });
1274-
await check_results({
1275-
context,
1276-
matches: [
1277-
makeSearchResult(context, {
1278-
engineName: SUGGESTIONS_ENGINE_NAME,
1279-
heuristic: true,
1280-
}),
1281-
],
1282-
});
1283-
1284-
context = createContext("ftp:/", { isPrivate: false });
1285-
await check_results({
1286-
context,
1287-
matches: [
1288-
makeSearchResult(context, {
1289-
engineName: SUGGESTIONS_ENGINE_NAME,
1290-
heuristic: true,
1291-
}),
1292-
],
1293-
});
1294-
1295-
context = createContext("ftp://", { isPrivate: false });
1296-
await check_results({
1297-
context,
1298-
matches: [
1299-
makeSearchResult(context, {
1300-
engineName: SUGGESTIONS_ENGINE_NAME,
1301-
heuristic: true,
1302-
}),
1303-
],
1304-
});
1305-
1306-
context = createContext("ftp://test", { isPrivate: false });
1307-
await check_results({
1308-
context,
1309-
matches: [
1310-
makeVisitResult(context, {
1311-
source: UrlbarUtils.RESULT_SOURCE.OTHER_LOCAL,
1312-
uri: "ftp://test/",
1313-
title: "ftp://test/",
1314-
iconUri: "",
1315-
heuristic: true,
1316-
}),
1317-
],
1318-
});
1319-
13201267
// Check FTP disabled
1321-
Services.prefs.setBoolPref("network.ftp.enabled", false);
13221268
context = createContext("ftp:", { isPrivate: false });
13231269
await check_results({
13241270
context,

netwerk/test/unit/test_bug826063.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"use strict";
1010

1111
var URIs = ["http://example.org", "https://example.org"];
12-
if (Services.prefs.getBoolPref("network.ftp.enabled")) {
13-
URIs.push("ftp://example.org");
14-
}
1512

1613
function* getChannels() {
1714
for (let u of URIs) {

netwerk/test/unit/test_disabled_ftp.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

netwerk/test/unit/xpcshell.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ skip-if = socketprocess_networking
428428
run-sequentially = one http2 node proxy is used for all tests, this test is using global session counter
429429
skip-if = os == "android"
430430
[test_head_request_no_response_body.js]
431-
[test_disabled_ftp.js]
432431
[test_cache_204_response.js]
433432
[test_http3.js]
434433
# asan - bug 1616239

toolkit/components/extensions/test/mochitest/test_ext_protocolHandlers.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@
447447
add_task(async function test_ftp_protocolHandler() {
448448
await SpecialPowers.pushPrefEnv({
449449
set: [
450-
["network.ftp.enabled", false],
451450
// Disabling the external protocol permission prompt. We don't need it
452451
// for this test.
453452
["security.external_protocol_requires_permission", false],

toolkit/modules/tests/xpcshell/test_MatchURLFilters.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,12 @@ add_task(async function test_match_url_filters() {
119119
// Port filter: standard (implicit) ports.
120120
{ shouldPass, filters: [{ ports: [443] }], url: "https://mozilla.org" },
121121
{ shouldPass, filters: [{ ports: [80] }], url: "http://mozilla.org" },
122-
{
123-
shouldPass,
124-
filters: [{ ports: [21] }],
125-
url: "ftp://ftp.mozilla.org",
126-
prefs: [["network.ftp.enabled", true]],
127-
},
128122

129123
// Port matching unknown protocols will fail.
130124
{
131125
shouldFail,
132126
filters: [{ ports: [21] }],
133127
url: "ftp://ftp.mozilla.org",
134-
prefs: [["network.ftp.enabled", false]],
135128
},
136129

137130
// Port filter: schemes without a default port.

0 commit comments

Comments
 (0)