Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
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,

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.

- 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
@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)
# HG changeset patch
# User Julian Descottes <[email protected]>
# Date 1547839671 -3600
# Fri Jan 18 20:27:51 2019 +0100
# Node ID dc839e90091d78c21d4933c1bcf1ded7ef00e7d2
# Parent 3aa256c255f664c500714c34a3b9e353e545d196
WIP reduced coverage test case
diff --git a/devtools/client/aboutdebugging-new/test/browser/browser.ini b/devtools/client/aboutdebugging-new/test/browser/browser.ini
--- a/devtools/client/aboutdebugging-new/test/browser/browser.ini
ac_add_options --enable-artifact-builds
# ac_add_options --with-ccache=/usr/local/bin/ccache
ac_add_options --enable-debug-js-modules
# ac_add_options --enable-debug
# ac_add_options --with-branding=browser/branding/official
# ac_add_options --with-branding=browser/branding/aurora
# ac_add_options --enable-official-branding

What is the original test about?

Read the existing test, run it and understand what it is asserting. The shared methods used in those tests should be in one of the following files

  • devtools/client/aboutdebugging/test/head.js
  • devtools/client/shared/test/shared-head.js

Is this already ported?

Sometimes we may already have implemented the test as a side-effect of another bug, so try to check if by any chance this has not already been ported to the new about:debugging.

Can it be ported?

Identify if the features used in the test to migrate are already implemented in the new about:debugging. If they are not, either:

Running Tests for the new about:debugging

Tests overview

Tests are located in devtools/client/aboutdebugging-new/test. There are two subfolders, browser and unit. browser contains our browser mochitests. Most of our tests are browser mochitests. unit contains our xpc-shell unit tests. At the moment of writing we only have one.

Test coverage

You can get some code coverage information at https://codecov.io/gh/mozilla/gecko-dev/tree/master/devtools/client/aboutdebugging-new/src . The service is sometimes very slow, be patient! You might have to reload the page several times to get a result.

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const {
DEBUG_TARGETS,
REQUEST_WORKERS_SUCCESS,
SERVICE_WORKER_FETCH_STATES,
class Front {
async initialize() {
throw new Error("initialize Mandatory");
}
static async createFront() {
const front = new this();
await front.initialize();
return front;
}