summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/browser
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /toolkit/content/tests/browser
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/content/tests/browser')
-rw-r--r--toolkit/content/tests/browser/browser_about_logging.js4
-rw-r--r--toolkit/content/tests/browser/browser_bug982298.js2
-rw-r--r--toolkit/content/tests/browser/browser_f7_caret_browsing.js2
-rw-r--r--toolkit/content/tests/browser/browser_isSynthetic.js2
-rw-r--r--toolkit/content/tests/browser/browser_media_wakelock_webaudio.js1
-rw-r--r--toolkit/content/tests/browser/browser_save_folder_standalone_image.js2
-rw-r--r--toolkit/content/tests/browser/browser_save_resend_postdata.js2
-rw-r--r--toolkit/content/tests/browser/common/mockTransfer.js3
-rw-r--r--toolkit/content/tests/browser/datetime/head.js2
-rw-r--r--toolkit/content/tests/browser/head.js2
10 files changed, 10 insertions, 12 deletions
diff --git a/toolkit/content/tests/browser/browser_about_logging.js b/toolkit/content/tests/browser/browser_about_logging.js
index fdf8eab57b..d9a2459c12 100644
--- a/toolkit/content/tests/browser/browser_about_logging.js
+++ b/toolkit/content/tests/browser/browser_about_logging.js
@@ -201,7 +201,7 @@ add_task(async function testURLParameters() {
url: PAGE + "?invalid-param",
},
async browser => {
- await SpecialPowers.spawn(browser, [profilerPresetInURL], async inURL => {
+ await SpecialPowers.spawn(browser, [profilerPresetInURL], async () => {
let $ = content.document.querySelector.bind(content.document);
Assert.ok(
!$("#error").hidden,
@@ -368,7 +368,7 @@ add_task(async function testProfilerOpens() {
"https://example.com/",
false
);
- SpecialPowers.spawn(browser, [], async savedLogModules => {
+ SpecialPowers.spawn(browser, [], async () => {
let $ = content.document.querySelector.bind(content.document);
// Override the URL the profiler uses to avoid hitting external
// resources (and crash).
diff --git a/toolkit/content/tests/browser/browser_bug982298.js b/toolkit/content/tests/browser/browser_bug982298.js
index ffbc916a5e..9b6f636db3 100644
--- a/toolkit/content/tests/browser/browser_bug982298.js
+++ b/toolkit/content/tests/browser/browser_bug982298.js
@@ -50,7 +50,7 @@ add_task(async function () {
let awaitFindResult2 = new Promise(resolve => {
let listener = {
- onFindResult(aData) {
+ onFindResult() {
info("got find result #2");
browser.finder.removeResultListener(listener);
resolve();
diff --git a/toolkit/content/tests/browser/browser_f7_caret_browsing.js b/toolkit/content/tests/browser/browser_f7_caret_browsing.js
index be6ae7d1f7..c0413c459b 100644
--- a/toolkit/content/tests/browser/browser_f7_caret_browsing.js
+++ b/toolkit/content/tests/browser/browser_f7_caret_browsing.js
@@ -37,7 +37,7 @@ registerCleanupFunction(function () {
let gCaretPromptOpeningObserver;
function promiseCaretPromptOpened() {
return new Promise(resolve => {
- function observer(subject, topic, data) {
+ function observer(subject) {
info("Dialog opened.");
resolve(subject);
gCaretPromptOpeningObserver();
diff --git a/toolkit/content/tests/browser/browser_isSynthetic.js b/toolkit/content/tests/browser/browser_isSynthetic.js
index 21b22fe171..3473dfc915 100644
--- a/toolkit/content/tests/browser/browser_isSynthetic.js
+++ b/toolkit/content/tests/browser/browser_isSynthetic.js
@@ -11,7 +11,7 @@ LocationChangeListener.prototype = {
this.browser.removeProgressListener(this);
},
- onLocationChange(webProgress, request, location, flags) {
+ onLocationChange() {
this.wasSynthetic = this.browser.isSyntheticDocument;
},
diff --git a/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js b/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js
index 7c40b5fe1a..9e18cc89f3 100644
--- a/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js
+++ b/toolkit/content/tests/browser/browser_media_wakelock_webaudio.js
@@ -56,7 +56,6 @@ async function checkWakelockWhenChangeTabVisibility({
description,
additionalParams,
needLock,
- elementIdForEnteringPIPMode,
}) {
const originalTab = gBrowser.selectedTab;
info(`start a new tab for '${description}'`);
diff --git a/toolkit/content/tests/browser/browser_save_folder_standalone_image.js b/toolkit/content/tests/browser/browser_save_folder_standalone_image.js
index 073e71a88b..6bcc95ae65 100644
--- a/toolkit/content/tests/browser/browser_save_folder_standalone_image.js
+++ b/toolkit/content/tests/browser/browser_save_folder_standalone_image.js
@@ -49,7 +49,7 @@ add_task(async function () {
const IMAGE_URL =
"http://mochi.test:8888/browser/toolkit/content/tests/browser/doggy.png";
- await BrowserTestUtils.withNewTab(IMAGE_URL, async function (browser) {
+ await BrowserTestUtils.withNewTab(IMAGE_URL, async function () {
let tmpDir = FileUtils.getDir("TmpD", []);
let dir = newDirectory();
let downloadLastDir = new DownloadLastDir(null);
diff --git a/toolkit/content/tests/browser/browser_save_resend_postdata.js b/toolkit/content/tests/browser/browser_save_resend_postdata.js
index 3f3e729dab..b028cac4ae 100644
--- a/toolkit/content/tests/browser/browser_save_resend_postdata.js
+++ b/toolkit/content/tests/browser/browser_save_resend_postdata.js
@@ -59,7 +59,7 @@ function test() {
var file = destDir.clone();
file.append("no_default_file_name");
MockFilePicker.setFiles([file]);
- MockFilePicker.showCallback = function (fp) {
+ MockFilePicker.showCallback = function () {
MockFilePicker.filterIndex = 1; // kSaveAsType_URL
};
diff --git a/toolkit/content/tests/browser/common/mockTransfer.js b/toolkit/content/tests/browser/common/mockTransfer.js
index f4afa44903..0240d9c14b 100644
--- a/toolkit/content/tests/browser/common/mockTransfer.js
+++ b/toolkit/content/tests/browser/common/mockTransfer.js
@@ -51,8 +51,7 @@ MockTransfer.prototype = {
onStatusChange: function MTFC_onStatusChange(
aWebProgress,
aRequest,
- aStatus,
- aMessage
+ aStatus
) {
// If at least one notification reported an error, the download failed.
if (!Components.isSuccessCode(aStatus)) {
diff --git a/toolkit/content/tests/browser/datetime/head.js b/toolkit/content/tests/browser/datetime/head.js
index 46e2c78af5..532f7743b2 100644
--- a/toolkit/content/tests/browser/datetime/head.js
+++ b/toolkit/content/tests/browser/datetime/head.js
@@ -69,7 +69,7 @@ class DateTimeTestHelper {
[selector],
async selector => {
let input = content.document.querySelector(selector);
- await ContentTaskUtils.waitForEvent(input, "change", false, e => {
+ await ContentTaskUtils.waitForEvent(input, "change", false, () => {
ok(
content.window.windowUtils.isHandlingUserInput,
"isHandlingUserInput should be true"
diff --git a/toolkit/content/tests/browser/head.js b/toolkit/content/tests/browser/head.js
index be15cd9684..03a239463d 100644
--- a/toolkit/content/tests/browser/head.js
+++ b/toolkit/content/tests/browser/head.js
@@ -177,7 +177,7 @@ function leave_icon(icon) {
* Used to listen events if you just need it once
*/
function once(target, name) {
- var p = new Promise(function (resolve, reject) {
+ var p = new Promise(function (resolve) {
target.addEventListener(
name,
function () {