summaryrefslogtreecommitdiffstats
path: root/layout/tools/reftest/reftest-content.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /layout/tools/reftest/reftest-content.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/tools/reftest/reftest-content.js')
-rw-r--r--layout/tools/reftest/reftest-content.js20
1 files changed, 8 insertions, 12 deletions
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");
}