Merge mozilla-central to autoland.

This commit is contained in:
Cosmin Sabou 2022-05-17 01:00:59 +03:00
Родитель e7bcb30d1d 24c1cdc33c
Коммит 241f586c68
9 изменённых файлов: 49 добавлений и 35 удалений

Просмотреть файл

@ -375,7 +375,7 @@
"win64-aarch64-devedition",
"win64-devedition"
],
"revision": "04a4762f573434bb12615c2bbd3f4c0ea153d75d"
"revision": "3788d4f52168287f1452d60e40ef1185a0ed94c7"
},
"dsb": {
"pin": false,
@ -411,7 +411,7 @@
"win64-aarch64-devedition",
"win64-devedition"
],
"revision": "30f1a9ed3034e5f23506a35153de640cc8368123"
"revision": "c6afffbc56b1d358ef26973fe2ece49d62996b54"
},
"en-CA": {
"pin": false,
@ -1335,7 +1335,7 @@
"win64-aarch64-devedition",
"win64-devedition"
],
"revision": "da085152885a8b33f2d5c4363a5f85c7960a8723"
"revision": "188a51b96295c870a5f131a5d2703ac605292f39"
},
"oc": {
"pin": false,
@ -1605,7 +1605,7 @@
"win64-aarch64-devedition",
"win64-devedition"
],
"revision": "63d092fa02f872ac9e0954a416b733b058090d25"
"revision": "4a0028856d749b39283e6e50541941d10514998e"
},
"son": {
"pin": false,
@ -1749,7 +1749,7 @@
"win64-aarch64-devedition",
"win64-devedition"
],
"revision": "9e8ac3d973ae6fcde6cae391822f1b576a9a6b92"
"revision": "ef1ffcb145019c88f61c87958e7c63ad7a801034"
},
"th": {
"pin": false,

Просмотреть файл

@ -1382,6 +1382,9 @@ class AccessibilityTest : BaseSessionTest() {
}
@Test fun testRemoteAccessibilityFocusIframe() {
// TODO: Bug 1758540
assumeThat(sessionRule.env.isFission, equalTo(false))
testAccessibilityFocusIframe(REMOTE_IFRAME);
}
@ -1415,6 +1418,9 @@ class AccessibilityTest : BaseSessionTest() {
@Setting(key = Setting.Key.FULL_ACCESSIBILITY_TREE, value = "true")
@Test fun testRemoteIframeTree() {
// TODO: Bug 1758540
assumeThat(sessionRule.env.isFission, equalTo(false))
testIframeTree(REMOTE_IFRAME);
}

Просмотреть файл

@ -221,11 +221,7 @@
# the parent process.
- name: accessibility.cache.enabled
type: bool
#ifdef ANDROID
value: true
#else
value: false
#endif
mirror: once
#---------------------------------------------------------------------------

Просмотреть файл

@ -1682,14 +1682,12 @@ var TelemetrySendImpl = {
}
const exeName =
AppConstants.MOZ_APP_NAME +
(AppConstants.platform === "win" ? ".exe" : "");
AppConstants.platform === "win" ? "pingsender.exe" : "pingsender";
let exe = Services.dirsvc.get("GreBinD", Ci.nsIFile);
exe.append(exeName);
let params = ["--backgroundtask", "pingsender"];
params.push(...pings.flatMap(ping => [ping.url, ping.path]));
let params = pings.flatMap(ping => [ping.url, ping.path]);
let process = Cc["@mozilla.org/process/util;1"].createInstance(
Ci.nsIProcess
);

Просмотреть файл

@ -307,8 +307,14 @@ add_task(async function test_discardedForSizePending() {
});
add_task(async function test_usePingSenderOnShutdown() {
if (gIsAndroid) {
if (
gIsAndroid ||
(AppConstants.platform == "linux" && OS.Constants.Sys.bits == 32)
) {
// We don't support the pingsender on Android, yet, see bug 1335917.
// We also don't support the pingsender testing on Treeherder for
// Linux 32 bit (due to missing libraries). So skip it there too.
// See bug 1310703 comment 78.
return;
}
@ -340,12 +346,12 @@ add_task(async function test_usePingSenderOnShutdown() {
// Check that the health ping is sent at shutdown using the pingsender.
Assert.equal(
request.getHeader("User-Agent"),
"pingsender/2.0",
"pingsender/1.0",
"Should have received the correct user agent string."
);
Assert.equal(
request.getHeader("X-PingSender-Version"),
"2.0",
"1.0",
"Should have received the correct PingSender version string."
);
});

Просмотреть файл

@ -89,8 +89,6 @@ add_task(async function setup() {
});
add_task(async function test_pingSender() {
let count = 10;
// Generate a new ping and save it among the pending pings.
const data = generateTestPingData();
await TelemetryStorage.savePing(data, true);
@ -99,8 +97,8 @@ add_task(async function test_pingSender() {
const pingPath = OS.Path.join(TelemetryStorage.pingDirectoryPath, data.id);
// Spawn an HTTP server that returns an error. We will be running the
// PingSender multiple times, trying to send the ping to this server. After the
// last time, we will resolve |deferred404Hit|.
// PingSender twice, trying to send the ping to this server. After the
// second time, we will resolve |deferred404Hit|.
let failingServer = new HttpServer();
let deferred404Hit = PromiseUtils.defer();
let hitCount = 0;
@ -108,23 +106,21 @@ add_task(async function test_pingSender() {
response.setStatusLine("1.1", 404, "Not Found");
hitCount++;
if (hitCount >= count) {
if (hitCount >= 2) {
// Resolve the promise on the next tick.
Services.tm.dispatchToMainThread(() => deferred404Hit.resolve());
}
});
failingServer.start(-1);
// Try to send the ping multiple times using the pingsender (we expect 404 every time).
// Try to send the ping twice using the pingsender (we expect 404 both times).
const errorUrl =
"http://localhost:" + failingServer.identity.primaryPort + "/lookup_fail";
TelemetrySend.testRunPingSender([{ url: errorUrl, path: pingPath }]);
TelemetrySend.testRunPingSender([{ url: errorUrl, path: pingPath }]);
for (let i = 0; i < count; i++) {
TelemetrySend.testRunPingSender([{ url: errorUrl, path: pingPath }]);
}
// Wait until we hit the 404 server enough times. After that, make sure that the pings
// still exist locally.
// Wait until we hit the 404 server twice. After that, make sure that the ping
// still exists locally.
await deferred404Hit.promise;
Assert.ok(
await OS.File.exists(pingPath),
@ -139,12 +135,12 @@ add_task(async function test_pingSender() {
Assert.equal(
req.getHeader("User-Agent"),
"pingsender/2.0",
"pingsender/1.0",
"Should have received the correct user agent string."
);
Assert.equal(
req.getHeader("X-PingSender-Version"),
"2.0",
"1.0",
"Should have received the correct PingSender version string."
);
Assert.equal(

Просмотреть файл

@ -682,8 +682,14 @@ add_task(async function test_telemetryCleanFHRDatabase() {
});
add_task(async function test_sendNewProfile() {
if (gIsAndroid) {
if (
gIsAndroid ||
(AppConstants.platform == "linux" && OS.Constants.Sys.bits == 32)
) {
// We don't support the pingsender on Android, yet, see bug 1335917.
// We also don't suppor the pingsender testing on Treeherder for
// Linux 32 bit (due to missing libraries). So skip it there too.
// See bug 1310703 comment 78.
return;
}
@ -756,12 +762,12 @@ add_task(async function test_sendNewProfile() {
// Check that the new-profile ping is sent at shutdown using the pingsender.
Assert.equal(
req.getHeader("User-Agent"),
"pingsender/2.0",
"pingsender/1.0",
"Should have received the correct user agent string."
);
Assert.equal(
req.getHeader("X-PingSender-Version"),
"2.0",
"1.0",
"Should have received the correct PingSender version string."
);

Просмотреть файл

@ -1235,8 +1235,14 @@ add_task(async function test_savedPingsOnShutdown() {
});
add_task(async function test_sendShutdownPing() {
if (gIsAndroid) {
if (
gIsAndroid ||
(AppConstants.platform == "linux" && OS.Constants.Sys.bits == 32)
) {
// We don't support the pingsender on Android, yet, see bug 1335917.
// We also don't suppor the pingsender testing on Treeherder for
// Linux 32 bit (due to missing libraries). So skip it there too.
// See bug 1310703 comment 78.
return;
}

Просмотреть файл

@ -92,7 +92,7 @@ skip-if =
apple_silicon # bug 1707747
apple_catalina # Bug 1713329
[test_PingSender.js]
skip-if = os == "android" # pingsender is disabled on Android in TelemetrySend.jsm
skip-if = (os == "android") || (os == "linux" && bits == 32)
[test_TelemetryAndroidEnvironment.js]
[test_TelemetryUtils.js]
[test_ThirdPartyModulesPing.js]