summaryrefslogtreecommitdiffstats
path: root/devtools/client/aboutdebugging/src
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/aboutdebugging/src')
-rw-r--r--devtools/client/aboutdebugging/src/actions/debug-targets.js6
-rw-r--r--devtools/client/aboutdebugging/src/actions/runtimes.js4
-rw-r--r--devtools/client/aboutdebugging/src/actions/telemetry.js2
-rw-r--r--devtools/client/aboutdebugging/src/actions/ui.js10
-rw-r--r--devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane.js2
-rw-r--r--devtools/client/aboutdebugging/src/components/debugtarget/InspectAction.js2
-rw-r--r--devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions.js4
-rw-r--r--devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions.js6
-rw-r--r--devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller.js2
-rw-r--r--devtools/client/aboutdebugging/src/middleware/extension-component-data.js2
-rw-r--r--devtools/client/aboutdebugging/src/middleware/process-component-data.js4
-rw-r--r--devtools/client/aboutdebugging/src/middleware/tab-component-data.js2
-rw-r--r--devtools/client/aboutdebugging/src/middleware/worker-component-data.js2
-rw-r--r--devtools/client/aboutdebugging/src/modules/extensions-helper.js2
14 files changed, 25 insertions, 25 deletions
diff --git a/devtools/client/aboutdebugging/src/actions/debug-targets.js b/devtools/client/aboutdebugging/src/actions/debug-targets.js
index 9ac3bee3b5..fa768c3d22 100644
--- a/devtools/client/aboutdebugging/src/actions/debug-targets.js
+++ b/devtools/client/aboutdebugging/src/actions/debug-targets.js
@@ -7,7 +7,7 @@
const { AddonManager } = ChromeUtils.importESModule(
"resource://gre/modules/AddonManager.sys.mjs",
// AddonManager is a singleton, never create two instances of it.
- { loadInDevToolsLoader: false }
+ { global: "shared" }
);
const {
remoteClientManager,
@@ -133,7 +133,7 @@ function installTemporaryExtension() {
const message = l10n.getString(
"about-debugging-tmp-extension-install-message"
);
- return async ({ dispatch, getState }) => {
+ return async ({ dispatch }) => {
dispatch({ type: TEMPORARY_EXTENSION_INSTALL_START });
const file = await openTemporaryExtension(window, message);
try {
@@ -146,7 +146,7 @@ function installTemporaryExtension() {
}
function pushServiceWorker(id, registrationFront) {
- return async ({ dispatch, getState }) => {
+ return async () => {
try {
// The push button is only available if canDebugServiceWorkers is true.
// With this configuration, `push` should always be called on the
diff --git a/devtools/client/aboutdebugging/src/actions/runtimes.js b/devtools/client/aboutdebugging/src/actions/runtimes.js
index fba620951e..52148f80b2 100644
--- a/devtools/client/aboutdebugging/src/actions/runtimes.js
+++ b/devtools/client/aboutdebugging/src/actions/runtimes.js
@@ -202,7 +202,7 @@ function connectRuntime(id) {
}
function createThisFirefoxRuntime() {
- return ({ dispatch, getState }) => {
+ return ({ dispatch }) => {
const thisFirefoxRuntime = {
id: RUNTIMES.THIS_FIREFOX,
isConnecting: false,
@@ -488,7 +488,7 @@ function updateRemoteRuntimes(runtimes, type) {
* before leaving about:debugging.
*/
function removeRuntimeListeners() {
- return ({ dispatch, getState }) => {
+ return ({ getState }) => {
const allRuntimes = getAllRuntimes(getState().runtimes);
const remoteRuntimes = allRuntimes.filter(
r => r.type !== RUNTIMES.THIS_FIREFOX
diff --git a/devtools/client/aboutdebugging/src/actions/telemetry.js b/devtools/client/aboutdebugging/src/actions/telemetry.js
index b418c77a50..d90b5f49e1 100644
--- a/devtools/client/aboutdebugging/src/actions/telemetry.js
+++ b/devtools/client/aboutdebugging/src/actions/telemetry.js
@@ -13,7 +13,7 @@ const {
* be processed by the event recording middleware.
*/
function recordTelemetryEvent(method, details) {
- return ({ dispatch, getState }) => {
+ return ({ dispatch }) => {
dispatch({ type: TELEMETRY_RECORD, method, details });
};
}
diff --git a/devtools/client/aboutdebugging/src/actions/ui.js b/devtools/client/aboutdebugging/src/actions/ui.js
index fb676cefd6..f8afac8bbd 100644
--- a/devtools/client/aboutdebugging/src/actions/ui.js
+++ b/devtools/client/aboutdebugging/src/actions/ui.js
@@ -97,13 +97,13 @@ function updateDebugTargetCollapsibility(key, isCollapsed) {
}
function addNetworkLocation(location) {
- return ({ dispatch, getState }) => {
+ return () => {
NetworkLocationsModule.addNetworkLocation(location);
};
}
function removeNetworkLocation(location) {
- return ({ dispatch, getState }) => {
+ return () => {
NetworkLocationsModule.removeNetworkLocation(location);
};
}
@@ -133,7 +133,7 @@ function updateAdbReady(isAdbReady) {
}
function updateNetworkLocations(locations) {
- return async ({ dispatch, getState }) => {
+ return async ({ dispatch }) => {
dispatch({ type: NETWORK_LOCATIONS_UPDATE_START });
try {
await dispatch(Actions.updateNetworkRuntimes(locations));
@@ -145,7 +145,7 @@ function updateNetworkLocations(locations) {
}
function installAdbAddon() {
- return async ({ dispatch, getState }) => {
+ return async ({ dispatch }) => {
dispatch({ type: ADB_ADDON_INSTALL_START });
try {
@@ -160,7 +160,7 @@ function installAdbAddon() {
}
function uninstallAdbAddon() {
- return async ({ dispatch, getState }) => {
+ return async ({ dispatch }) => {
dispatch({ type: ADB_ADDON_UNINSTALL_START });
try {
diff --git a/devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane.js b/devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane.js
index abfa1042b8..dec9cd792d 100644
--- a/devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane.js
+++ b/devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane.js
@@ -106,7 +106,7 @@ class DebugTargetPane extends PureComponent {
"undecorated-link debug-target-pane__title " +
"qa-debug-target-pane-title",
title,
- onClick: e => this.toggleCollapsibility(),
+ onClick: () => this.toggleCollapsibility(),
},
dom.h2(
{ className: "main-subheading debug-target-pane__heading" },
diff --git a/devtools/client/aboutdebugging/src/components/debugtarget/InspectAction.js b/devtools/client/aboutdebugging/src/components/debugtarget/InspectAction.js
index f7aff438a4..13370ecdf3 100644
--- a/devtools/client/aboutdebugging/src/components/debugtarget/InspectAction.js
+++ b/devtools/client/aboutdebugging/src/components/debugtarget/InspectAction.js
@@ -44,7 +44,7 @@ class InspectAction extends PureComponent {
},
dom.button(
{
- onClick: e => this.inspect(),
+ onClick: () => this.inspect(),
className: "default-button qa-debug-target-inspect-button",
disabled,
title,
diff --git a/devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions.js b/devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions.js
index 38262ad511..aed0719d1f 100644
--- a/devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions.js
+++ b/devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions.js
@@ -48,7 +48,7 @@ class _ActionButton extends PureComponent {
{
className,
disabled,
- onClick: e => onClick(),
+ onClick: () => onClick(),
title: disabled && disabledTitle ? disabledTitle : undefined,
},
this.props.children
@@ -102,7 +102,7 @@ class ServiceWorkerAdditionalActions extends PureComponent {
{
className,
disabled,
- onClick: e => onClick(),
+ onClick: () => onClick(),
},
labelId
)
diff --git a/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions.js b/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions.js
index 44b7d3e167..806ddb6ac9 100644
--- a/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions.js
+++ b/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions.js
@@ -125,7 +125,7 @@ class TemporaryExtensionAdditionalActions extends PureComponent {
className:
"default-button default-button--micro " +
"qa-temporary-extension-terminate-bgscript-button",
- onClick: e => this.terminateBackgroundScript(),
+ onClick: () => this.terminateBackgroundScript(),
},
"Terminate Background Script"
)
@@ -142,7 +142,7 @@ class TemporaryExtensionAdditionalActions extends PureComponent {
className:
"default-button default-button--micro " +
"qa-temporary-extension-remove-button",
- onClick: e => this.remove(),
+ onClick: () => this.remove(),
},
"Remove"
)
@@ -166,7 +166,7 @@ class TemporaryExtensionAdditionalActions extends PureComponent {
className:
"default-button default-button--micro " +
"qa-temporary-extension-reload-button",
- onClick: e => this.reload(),
+ onClick: () => this.reload(),
},
"Reload"
)
diff --git a/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller.js b/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller.js
index e515c647ec..fe229d2da6 100644
--- a/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller.js
+++ b/devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller.js
@@ -41,7 +41,7 @@ class TemporaryExtensionInstaller extends PureComponent {
dom.button(
{
className: `${className} default-button qa-temporary-extension-install-button`,
- onClick: e => this.install(),
+ onClick: () => this.install(),
},
"Load Temporary Add-on…"
)
diff --git a/devtools/client/aboutdebugging/src/middleware/extension-component-data.js b/devtools/client/aboutdebugging/src/middleware/extension-component-data.js
index 5987f36398..53e6fd22f1 100644
--- a/devtools/client/aboutdebugging/src/middleware/extension-component-data.js
+++ b/devtools/client/aboutdebugging/src/middleware/extension-component-data.js
@@ -18,7 +18,7 @@ const {
* This middleware converts extensions object that get from DevToolsClient.listAddons()
* to data which is used in DebugTargetItem.
*/
-const extensionComponentDataMiddleware = store => next => action => {
+const extensionComponentDataMiddleware = () => next => action => {
switch (action.type) {
case REQUEST_EXTENSIONS_SUCCESS: {
action.installedExtensions = toComponentData(action.installedExtensions);
diff --git a/devtools/client/aboutdebugging/src/middleware/process-component-data.js b/devtools/client/aboutdebugging/src/middleware/process-component-data.js
index d5cdc6365b..c4947453a0 100644
--- a/devtools/client/aboutdebugging/src/middleware/process-component-data.js
+++ b/devtools/client/aboutdebugging/src/middleware/process-component-data.js
@@ -17,7 +17,7 @@ const {
* This middleware converts tabs object that get from DevToolsClient.listProcesses() to
* data which is used in DebugTargetItem.
*/
-const processComponentDataMiddleware = store => next => action => {
+const processComponentDataMiddleware = () => next => action => {
switch (action.type) {
case REQUEST_PROCESSES_SUCCESS: {
const mainProcessComponentData = toMainProcessComponentData(
@@ -31,7 +31,7 @@ const processComponentDataMiddleware = store => next => action => {
return next(action);
};
-function toMainProcessComponentData(process) {
+function toMainProcessComponentData() {
const type = DEBUG_TARGETS.PROCESS;
const icon = "chrome://devtools/skin/images/aboutdebugging-process-icon.svg";
diff --git a/devtools/client/aboutdebugging/src/middleware/tab-component-data.js b/devtools/client/aboutdebugging/src/middleware/tab-component-data.js
index f468926f81..2de8dca86f 100644
--- a/devtools/client/aboutdebugging/src/middleware/tab-component-data.js
+++ b/devtools/client/aboutdebugging/src/middleware/tab-component-data.js
@@ -13,7 +13,7 @@ const {
* This middleware converts tabs object that get from DevToolsClient.listTabs() to data
* which is used in DebugTargetItem.
*/
-const tabComponentDataMiddleware = store => next => action => {
+const tabComponentDataMiddleware = () => next => action => {
switch (action.type) {
case REQUEST_TABS_SUCCESS: {
action.tabs = toComponentData(action.tabs);
diff --git a/devtools/client/aboutdebugging/src/middleware/worker-component-data.js b/devtools/client/aboutdebugging/src/middleware/worker-component-data.js
index 178c99e322..cf13eccd5d 100644
--- a/devtools/client/aboutdebugging/src/middleware/worker-component-data.js
+++ b/devtools/client/aboutdebugging/src/middleware/worker-component-data.js
@@ -15,7 +15,7 @@ const {
* This middleware converts workers object that get from DevToolsClient.listAllWorkers()
* to data which is used in DebugTargetItem.
*/
-const workerComponentDataMiddleware = store => next => action => {
+const workerComponentDataMiddleware = () => next => action => {
switch (action.type) {
case REQUEST_WORKERS_SUCCESS: {
action.otherWorkers = toComponentData(action.otherWorkers);
diff --git a/devtools/client/aboutdebugging/src/modules/extensions-helper.js b/devtools/client/aboutdebugging/src/modules/extensions-helper.js
index ec0d7c2661..cf6c7641e9 100644
--- a/devtools/client/aboutdebugging/src/modules/extensions-helper.js
+++ b/devtools/client/aboutdebugging/src/modules/extensions-helper.js
@@ -51,7 +51,7 @@ exports.getExtensionUuid = function (extension) {
exports.openTemporaryExtension = function (win, message) {
return new Promise(resolve => {
const fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
- fp.init(win, message, Ci.nsIFilePicker.modeOpen);
+ fp.init(win.browsingContext, message, Ci.nsIFilePicker.modeOpen);
// Try to set the last directory used as "displayDirectory".
try {