summaryrefslogtreecommitdiffstats
path: root/devtools/client/responsive
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 /devtools/client/responsive
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 'devtools/client/responsive')
-rw-r--r--devtools/client/responsive/reducers/devices.js6
-rw-r--r--devtools/client/responsive/reducers/screenshot.js4
-rw-r--r--devtools/client/responsive/test/browser/browser_device_pixel_ratio_change.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_device_state_restore.js4
-rw-r--r--devtools/client/responsive/test/browser/browser_ext_messaging.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_many_toggles.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_network_throttling.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_page_style.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_picker_link.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_telemetry_activate_rdm.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_touch_event_iframes.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_typeahead_find.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_viewport_changed_meta.js2
-rw-r--r--devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js2
-rw-r--r--devtools/client/responsive/test/browser/geolocation.html2
-rw-r--r--devtools/client/responsive/test/browser/touch.html8
-rw-r--r--devtools/client/responsive/ui.js4
17 files changed, 25 insertions, 25 deletions
diff --git a/devtools/client/responsive/reducers/devices.js b/devtools/client/responsive/reducers/devices.js
index 98f0602175..960ecc336a 100644
--- a/devtools/client/responsive/reducers/devices.js
+++ b/devtools/client/responsive/reducers/devices.js
@@ -70,21 +70,21 @@ const reducers = {
};
},
- [LOAD_DEVICE_LIST_START](devices, action) {
+ [LOAD_DEVICE_LIST_START](devices) {
return {
...devices,
listState: Types.loadableState.LOADING,
};
},
- [LOAD_DEVICE_LIST_ERROR](devices, action) {
+ [LOAD_DEVICE_LIST_ERROR](devices) {
return {
...devices,
listState: Types.loadableState.ERROR,
};
},
- [LOAD_DEVICE_LIST_END](devices, action) {
+ [LOAD_DEVICE_LIST_END](devices) {
return {
...devices,
listState: Types.loadableState.LOADED,
diff --git a/devtools/client/responsive/reducers/screenshot.js b/devtools/client/responsive/reducers/screenshot.js
index 67f26f1f9a..dcf962a9eb 100644
--- a/devtools/client/responsive/reducers/screenshot.js
+++ b/devtools/client/responsive/reducers/screenshot.js
@@ -14,14 +14,14 @@ const INITIAL_SCREENSHOT = {
};
const reducers = {
- [TAKE_SCREENSHOT_END](screenshot, action) {
+ [TAKE_SCREENSHOT_END](screenshot) {
return {
...screenshot,
isCapturing: false,
};
},
- [TAKE_SCREENSHOT_START](screenshot, action) {
+ [TAKE_SCREENSHOT_START](screenshot) {
return {
...screenshot,
isCapturing: true,
diff --git a/devtools/client/responsive/test/browser/browser_device_pixel_ratio_change.js b/devtools/client/responsive/test/browser/browser_device_pixel_ratio_change.js
index c11313a188..798cec8c5d 100644
--- a/devtools/client/responsive/test/browser/browser_device_pixel_ratio_change.js
+++ b/devtools/client/responsive/test/browser/browser_device_pixel_ratio_change.js
@@ -27,7 +27,7 @@ addDeviceForTest(testDevice);
addRDMTask(
TEST_URL,
- async function ({ ui, manager }) {
+ async function ({ ui }) {
await waitStartup(ui);
await testDefaults(ui);
diff --git a/devtools/client/responsive/test/browser/browser_device_state_restore.js b/devtools/client/responsive/test/browser/browser_device_state_restore.js
index f8778795c2..8bfda3e5c6 100644
--- a/devtools/client/responsive/test/browser/browser_device_state_restore.js
+++ b/devtools/client/responsive/test/browser/browser_device_state_restore.js
@@ -75,7 +75,7 @@ addRDMTask(
addRDMTaskWithPreAndPost(
TEST_URL,
- function rdmPreTask({ browser }) {
+ function rdmPreTask() {
reloadOnUAChange(true);
},
async function ({ ui }) {
@@ -115,7 +115,7 @@ addRDMTaskWithPreAndPost(
reloadOnUAChange(false);
},
- function rdmPostTask({ browser }) {},
+ function rdmPostTask() {},
{ waitForDeviceList: true }
);
diff --git a/devtools/client/responsive/test/browser/browser_ext_messaging.js b/devtools/client/responsive/test/browser/browser_ext_messaging.js
index 5d1b5cf317..4704946976 100644
--- a/devtools/client/responsive/test/browser/browser_ext_messaging.js
+++ b/devtools/client/responsive/test/browser/browser_ext_messaging.js
@@ -120,7 +120,7 @@ addRDMTask(TEST_URL, async function test_tab_sender() {
let extTab;
const contentMessage = new Promise(resolve => {
browser.test.log("Listen to content");
- const listener = async (msg, sender, respond) => {
+ const listener = async (msg, sender) => {
browser.test.assertEq(
msg,
"hello-from-content",
diff --git a/devtools/client/responsive/test/browser/browser_many_toggles.js b/devtools/client/responsive/test/browser/browser_many_toggles.js
index a0fe19dba4..beb8e0eafa 100644
--- a/devtools/client/responsive/test/browser/browser_many_toggles.js
+++ b/devtools/client/responsive/test/browser/browser_many_toggles.js
@@ -21,7 +21,7 @@ addRDMTask(
info(`Toggling RDM #${i + 1}`);
// This may throw when we were just closing is still ongoing,
// ignore any exception.
- openRDM(tab).catch(e => {});
+ openRDM(tab).catch(() => {});
// Sometime pause in order to cover both full synchronous opening and close
// but also the same but with some pause between each operation.
if (i % 2 == 0) {
diff --git a/devtools/client/responsive/test/browser/browser_network_throttling.js b/devtools/client/responsive/test/browser/browser_network_throttling.js
index fbf97b172a..a9d1c1f076 100644
--- a/devtools/client/responsive/test/browser/browser_network_throttling.js
+++ b/devtools/client/responsive/test/browser/browser_network_throttling.js
@@ -10,7 +10,7 @@ const {
// Tests changing network throttling
const TEST_URL = "data:text/html;charset=utf-8,Network throttling test";
-addRDMTask(TEST_URL, async function ({ ui, manager }) {
+addRDMTask(TEST_URL, async function ({ ui }) {
// Test defaults
testNetworkThrottlingSelectorLabel(ui, "No Throttling", "No Throttling");
await testNetworkThrottlingState(ui, null);
diff --git a/devtools/client/responsive/test/browser/browser_page_style.js b/devtools/client/responsive/test/browser/browser_page_style.js
index c59ba03b47..7f470baa94 100644
--- a/devtools/client/responsive/test/browser/browser_page_style.js
+++ b/devtools/client/responsive/test/browser/browser_page_style.js
@@ -8,7 +8,7 @@ http://creativecommons.org/publicdomain/zero/1.0/ */
const TEST_URL = `${URL_ROOT}page_style.html`;
-addRDMTask(TEST_URL, async function ({ ui, manager }) {
+addRDMTask(TEST_URL, async function ({ ui }) {
// Store the RDM body text color for later.
const rdmWindow = ui.toolWindow;
const rdmTextColor = rdmWindow.getComputedStyle(
diff --git a/devtools/client/responsive/test/browser/browser_picker_link.js b/devtools/client/responsive/test/browser/browser_picker_link.js
index 1aedb06dd0..6a7df43130 100644
--- a/devtools/client/responsive/test/browser/browser_picker_link.js
+++ b/devtools/client/responsive/test/browser/browser_picker_link.js
@@ -9,7 +9,7 @@
*/
const TEST_URI = `${URL_ROOT}doc_picker_link.html`;
-addRDMTask(TEST_URI, async function ({ ui, manager }) {
+addRDMTask(TEST_URI, async function ({ ui }) {
info("Open the rule-view and select the test node before opening RDM");
const { inspector, toolbox } = await openRuleView();
await selectNode("body", inspector);
diff --git a/devtools/client/responsive/test/browser/browser_telemetry_activate_rdm.js b/devtools/client/responsive/test/browser/browser_telemetry_activate_rdm.js
index 7c3927fb11..1ec8e5976d 100644
--- a/devtools/client/responsive/test/browser/browser_telemetry_activate_rdm.js
+++ b/devtools/client/responsive/test/browser/browser_telemetry_activate_rdm.js
@@ -111,6 +111,6 @@ async function checkResults() {
// extras
is(extra.host, expected.extra.host, "host is correct");
- ok(extra.width > 0, "width is greater than 0");
+ Assert.greater(Number(extra.width), 0, "width is greater than 0");
}
}
diff --git a/devtools/client/responsive/test/browser/browser_touch_event_iframes.js b/devtools/client/responsive/test/browser/browser_touch_event_iframes.js
index 11b94d2ab1..6ad963f4c0 100644
--- a/devtools/client/responsive/test/browser/browser_touch_event_iframes.js
+++ b/devtools/client/responsive/test/browser/browser_touch_event_iframes.js
@@ -72,7 +72,7 @@ for (const mvcontent of META_VIEWPORT_CONTENTS) {
`style="margin:0; border:0; width:100%; height:100%"></iframe>` +
`</body></html>`;
- addRDMTask(TEST_URL, async function ({ ui, manager, browser }) {
+ addRDMTask(TEST_URL, async function ({ ui, manager }) {
await setViewportSize(ui, manager, VIEWPORT_DIMENSION, VIEWPORT_DIMENSION);
await setTouchAndMetaViewportSupport(ui, true);
diff --git a/devtools/client/responsive/test/browser/browser_typeahead_find.js b/devtools/client/responsive/test/browser/browser_typeahead_find.js
index 7bc22de1ef..2d162c074f 100644
--- a/devtools/client/responsive/test/browser/browser_typeahead_find.js
+++ b/devtools/client/responsive/test/browser/browser_typeahead_find.js
@@ -17,7 +17,7 @@ const TEST_URL =
"data:text/html;charset=utf-8," +
'<body id="body"><input id="input" type="text"/><p>text</body>';
-addRDMTask(TEST_URL, async function ({ ui, manager }) {
+addRDMTask(TEST_URL, async function ({ ui }) {
// Turn on the pref that allows meta viewport support.
await pushPref("accessibility.typeaheadfind", true);
diff --git a/devtools/client/responsive/test/browser/browser_viewport_changed_meta.js b/devtools/client/responsive/test/browser/browser_viewport_changed_meta.js
index f0bafdd551..c5a13b407a 100644
--- a/devtools/client/responsive/test/browser/browser_viewport_changed_meta.js
+++ b/devtools/client/responsive/test/browser/browser_viewport_changed_meta.js
@@ -71,7 +71,7 @@ const TEST_URL = `data:text/html;charset=utf-8,
</body>
</html>`;
-addRDMTask(TEST_URL, async function ({ ui, manager, browser }) {
+addRDMTask(TEST_URL, async function ({ ui, manager }) {
await setViewportSize(ui, manager, WIDTH, HEIGHT);
await setTouchAndMetaViewportSupport(ui, true);
diff --git a/devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js b/devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js
index 400bfa99a9..d6d2625492 100644
--- a/devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js
+++ b/devtools/client/responsive/test/browser/browser_viewport_zoom_toggle.js
@@ -17,7 +17,7 @@ function setZoomForBrowser(browser, zoom) {
addRDMTask(
null,
- async function ({ message }) {
+ async function () {
const INITIAL_ZOOM_LEVEL = 1;
const PRE_RDM_ZOOM_LEVEL = 1.5;
const MID_RDM_ZOOM_LEVEL = 2;
diff --git a/devtools/client/responsive/test/browser/geolocation.html b/devtools/client/responsive/test/browser/geolocation.html
index df0014dd02..086bd7eaa8 100644
--- a/devtools/client/responsive/test/browser/geolocation.html
+++ b/devtools/client/responsive/test/browser/geolocation.html
@@ -7,7 +7,7 @@
<body>
<script type="text/javascript">
"use strict";
- navigator.geolocation.getCurrentPosition(function(pos) {});
+ navigator.geolocation.getCurrentPosition(function() {});
</script>
</body>
</html>
diff --git a/devtools/client/responsive/test/browser/touch.html b/devtools/client/responsive/test/browser/touch.html
index eed55426bd..c19f26cd8f 100644
--- a/devtools/client/responsive/test/browser/touch.html
+++ b/devtools/client/responsive/test/browser/touch.html
@@ -41,18 +41,18 @@
}
}, true);
- div.addEventListener("mouseenter", function (evt) {
+ div.addEventListener("mouseenter", function () {
div.style.backgroundColor = "red";
}, true);
- div.addEventListener("mouseover", function(evt) {
+ div.addEventListener("mouseover", function() {
div.style.backgroundColor = "red";
}, true);
- div.addEventListener("mouseout", function (evt) {
+ div.addEventListener("mouseout", function () {
div.style.backgroundColor = "blue";
}, true);
- div.addEventListener("mouseleave", function (evt) {
+ div.addEventListener("mouseleave", function () {
div.style.backgroundColor = "blue";
}, true);
diff --git a/devtools/client/responsive/ui.js b/devtools/client/responsive/ui.js
index 713158d654..7784887eb3 100644
--- a/devtools/client/responsive/ui.js
+++ b/devtools/client/responsive/ui.js
@@ -56,8 +56,8 @@ const RELOAD_CONDITION_PREF_PREFIX = "devtools.responsive.reloadConditions.";
const RELOAD_NOTIFICATION_PREF =
"devtools.responsive.reloadNotification.enabled";
-function debug(msg) {
- // console.log(`RDM manager: ${msg}`);
+function debug(_msg) {
+ // console.log(`RDM manager: ${_msg}`);
}
/**