From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- layout/tools/reftest/reftest-content.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'layout/tools/reftest/reftest-content.js') diff --git a/layout/tools/reftest/reftest-content.js b/layout/tools/reftest/reftest-content.js index 4fdd5de26f..9aab933ed0 100644 --- a/layout/tools/reftest/reftest-content.js +++ b/layout/tools/reftest/reftest-content.js @@ -83,7 +83,7 @@ function IDForEventTarget(event) { } var progressListener = { - onStateChange(webprogress, request, flags, status) { + onStateChange(webprogress, request, flags) { let uri; try { request.QueryInterface(Ci.nsIChannel); @@ -286,7 +286,7 @@ function setupViewport(contentRootElement) { // XXX support viewconfig when needed } -function setupDisplayport(contentRootElement) { +function setupDisplayport() { let promise = content.windowGlobalChild .getActor("ReftestFission") .SetupDisplayportRoot(); @@ -896,7 +896,7 @@ function WaitForTestEnd( LogInfo("MakeProgress: STATE_WAITING_FOR_APZ_FLUSH"); gFailureReason = "timed out waiting for APZ flush to complete"; - var flushWaiter = function (aSubject, aTopic, aData) { + var flushWaiter = function (aSubject, aTopic) { if (aTopic) { LogInfo("MakeProgress: apz-repaints-flushed fired"); } @@ -1357,9 +1357,7 @@ function SynchronizeForSnapshot(flags) { // Setup async scroll offsets now, because any scrollable layers should // have had their AsyncPanZoomControllers created. - return setupAsyncScrollOffsets({ allowFailure: false }).then(function ( - result - ) { + return setupAsyncScrollOffsets({ allowFailure: false }).then(function () { setupAsyncZoom({ allowFailure: false }); }); }, @@ -1370,9 +1368,7 @@ function SynchronizeForSnapshot(flags) { // Setup async scroll offsets now, because any scrollable layers should // have had their AsyncPanZoomControllers created. - return setupAsyncScrollOffsets({ allowFailure: false }).then(function ( - result - ) { + return setupAsyncScrollOffsets({ allowFailure: false }).then(function () { setupAsyncZoom({ allowFailure: false }); }); } @@ -1380,7 +1376,7 @@ function SynchronizeForSnapshot(flags) { } function RegisterMessageListeners() { - addMessageListener("reftest:Clear", function (m) { + addMessageListener("reftest:Clear", function () { RecvClear(); }); addMessageListener("reftest:LoadScriptTest", function (m) { @@ -1392,7 +1388,7 @@ function RegisterMessageListeners() { addMessageListener("reftest:LoadTest", function (m) { RecvLoadTest(m.json.type, m.json.uri, m.json.uriTargetType, m.json.timeout); }); - addMessageListener("reftest:ResetRenderingState", function (m) { + addMessageListener("reftest:ResetRenderingState", function () { RecvResetRenderingState(); }); addMessageListener("reftest:PrintDone", function (m) { @@ -1552,7 +1548,7 @@ function SendPrintResult(runtimeMs, status, fileName) { }); } -function SendExpectProcessCrash(runtimeMs) { +function SendExpectProcessCrash() { sendAsyncMessage("reftest:ExpectProcessCrash"); } -- cgit v1.2.3