Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / remote_documentation_review.txt
Created January 31, 2019 17:11
Review of existing documentation for remote debugging on MDN
New about:debugging aims to sunset:
- old about:debugging
- WebIDE
- Connect... page
Most documentation pages for those applications screens will have to be updated/modified to describe the experience using the new about:debugging. For WebIDE:
- some features are not going to be in the MVP of the new about:debugging
- some features will not be ported
- some features have already been dropped from WebIDE but are still documented (eg, everything about developping apps or debugging Firefox OS)
- 3 bananes
- 100g de beurre
- 2 oeufs
- 150g de sucre (dont 1 sachet de sucre vanillé)
- chocolat en poudre non sucré
- 175g de farine
- 1/2 sachet levure (5g)
- 2 cuilleres a cafe de bicarbonate
Melanger beurre, sucre, fouetter pour blanchir. Ajouter oeufs 1 par 1, melanger. Ecraser bananes ajouter

Debug a local Firefox using about:debugging

This is a quick documentation to explain how to setup Firefox on OSX in order to try the "Network Locations" remote debugging in about:debugging.

Start the Client Firefox

Let's assume we are using a "Firefox Nightly" located in the Applications folder.

1 - You can start it once "as usual" by double clicking on the icon. This will be the "Client" where you will open about:debugging.

diff --git a/devtools/client/aboutdebugging-new/src/components/RuntimePage.js b/devtools/client/aboutdebugging-new/src/components/RuntimePage.js
--- a/devtools/client/aboutdebugging-new/src/components/RuntimePage.js
+++ b/devtools/client/aboutdebugging-new/src/components/RuntimePage.js
@@ -126,17 +126,19 @@ class RuntimePage extends PureComponent
);
});
return Message(
{
level: MESSAGE_LEVEL.ERROR,
diff --git a/devtools/client/framework/components/ToolboxController.js b/devtools/client/framework/components/ToolboxController.js
--- a/devtools/client/framework/components/ToolboxController.js
+++ b/devtools/client/framework/components/ToolboxController.js
@@ -131,16 +131,20 @@ class ToolboxController extends Componen
unhighlightTool(id) {
const { highlightedTools } = this.state;
if (highlightedTools.has(id)) {
highlightedTools.delete(id);
this.setState({ highlightedTools });
}
@juliandescottes
juliandescottes / run-find-dupes.shell
Created April 8, 2019 10:18
duplicates find dupes allowed-dupes.mn
RUN_FIND_DUPES=1 ./mach package
@juliandescottes
juliandescottes / run-find-dupes.shell
Created April 8, 2019 10:18
duplicates find dupes allowed-dupes.mn
RUN_FIND_DUPES=1 ./mach package
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
// Tests that preference helpers work properly with custom types of Float and Json.
const { PrefObserver } = require("devtools/client/shared/prefs");
// Use sinon for mocking.
const {sinon} = ChromeUtils.import("resource://testing-common/Sinon.jsm");
diff --git a/devtools/client/aboutdebugging-new/src/actions/debug-targets.js b/devtools/client/aboutdebugging-new/src/actions/debug-targets.js
--- a/devtools/client/aboutdebugging-new/src/actions/debug-targets.js
+++ b/devtools/client/aboutdebugging-new/src/actions/debug-targets.js
@@ -124,28 +124,25 @@ function installTemporaryExtension() {
await AddonManager.installTemporaryAddon(file);
dispatch({ type: TEMPORARY_EXTENSION_INSTALL_SUCCESS });
} catch (e) {
dispatch({ type: TEMPORARY_EXTENSION_INSTALL_FAILURE, error: e });
}
};
diff --git a/devtools/shared/client/deprecated-thread-client.js b/devtools/shared/client/deprecated-thread-client.js
--- a/devtools/shared/client/deprecated-thread-client.js
+++ b/devtools/shared/client/deprecated-thread-client.js
@@ -28,16 +28,17 @@ loader.lazyRequireGetter(
*
* @param client DebuggerClient
* @param actor string
* The actor ID for this thread.
*/
function ThreadClient(client, actor) {