Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / debugger-lazy-loading.txt
Created April 28, 2018 12:19
Debugger module loading, step by step
# when opening a fully empty debugger
resource://devtools/client/debugger/new/src/main.js
resource://devtools/client/debugger/new/vendors.js
resource://devtools/client/shared/vendor/react.js
resource://devtools/client/shared/vendor/react-dom.js
resource://devtools/client/shared/source-map/index.js
resource://devtools/client/debugger/new/src/client/index.js
resource://devtools/client/debugger/new/src/client/firefox.js
resource://devtools/client/debugger/new/src/client/firefox/commands.js
resource://devtools/client/debugger/new/src/client/firefox/events.js
# HG changeset patch
# User Julian Descottes <[email protected]>
# Date 1522448117 -7200
# Sat Mar 31 00:15:17 2018 +0200
# Node ID b7818b24c7977c3bdf3eb00dd64aff4ad352d068
# Parent 0405f6006f3a3f653dd42d587c3eefe08cffa37d
Backed out changeset aee255d8336c
MozReview-Commit-ID: 68v5gVWVC0Q
Shortlist of commits to uplift to 60 Beta as release 19.3:
- Prevent items[selectedIndex] error (#5517)
https://github.com/devtools-html/debugger.html/commit/14ab3b28519b89160b342b2a66dc0de8681842e9
- [Editor] Prevent multiple search boxes from opening on Windows (#5569)
https://github.com/devtools-html/debugger.html/commit/c42e3f3b72b92824624f6d14b3e07e0ed553d3f6
- Removes sad face when source+goto (#5444)
https://github.com/devtools-html/debugger.html/commit/ff59534df48a064757c057f008034c5917ae42a3
- fix tabs using the selected source (#5535)
https://github.com/devtools-html/debugger.html/commit/c19ae46247cf77592b443bd6c675d6004229c4d6
- Give command bar buttons full background on hover (#5548)
Questions
1 - Panel skeleton
The goal is to start with a basic skeleton that fits our needs but would evolve
naturally to what console/netmonitor look like today. In aboutdebugging, we said
"no redux in the beginning", but in the end we have inconsistent code compared to
React panels.
Looking at the current netmonitor and console folders, I'd like to start with the following folder hierarchy:
# HG changeset patch
# User Julian Descottes <[email protected]>
# Date 1520277297 -3600
# Mon Mar 05 20:14:57 2018 +0100
# Node ID cc20e5c6b4cb54dde9fa3362afc46a45a7990f21
# Parent 8109be9a13aca79b3f4bf22dd2847b24ad820f52
WIP - wait for grid panel update before starting layoutview tests
MozReview-Commit-ID: 3RWpI1pbsj9
diff --git a/packages/devtools-launchpad/webpack.config.devtools.js b/packages/devtools-launchpad/webpack.config.devtools.js
index be7f9cb..f7f9bc2 100644
--- a/packages/devtools-launchpad/webpack.config.devtools.js
+++ b/packages/devtools-launchpad/webpack.config.devtools.js
@@ -31,6 +31,21 @@ module.exports = (webpackConfig, envConfig, options) => {
return;
}
+ // I would like to run this only for parser-worker but I'm not sure how :)
+ if (request.includes("lodash/")) {
@juliandescottes
juliandescottes / debugger_release_metrics.js
Last active April 26, 2024 22:58
Debugger release metrics
"use strict";
(function () {
const BUGZILLA_API_URL = "https://bugzilla.mozilla.org";
const BUG_URL = BUGZILLA_API_URL + "/rest/bug/${BUG_ID}";
const COMMENTS_URL = BUGZILLA_API_URL + "/rest/bug/${BUG_ID}/comment";
const HISTORY_URL = BUGZILLA_API_URL + "/rest/bug/${BUG_ID}/history";
const TRY_URL = "https://treeherder.mozilla.org";
@juliandescottes
juliandescottes / debugger-review-checklist.txt
Last active February 13, 2018 22:14
Debugger review checklist
- Meta:
- assigned, P3, enhancement, blocks meta:
- commit message:
- less than 20 commits:
- TRY
- try run green:
- try run has rebuild:
- Manual test
- OK
- README review
@juliandescottes
juliandescottes / mercurial_phase_revert.txt
Created February 9, 2018 18:42
Mark mercurial changesets as local again
hg phase -f -d REV
@juliandescottes
juliandescottes / hg-mv-bash
Created January 19, 2018 11:57
hg mv bulk
ROOT="devtools/client/webconsole/new-console-output/test/mochitest"
for FILE in $(ls $ROOT)
do
if [[ "$FILE" == *"test-bug-595934"* ]]; then
NEW_FILE="${FILE/bug-595934/message-categories}"
hg mv $ROOT/$FILE $ROOT/$NEW_FILE
echo "Moved $FILE to $NEW_FILE"
fi
done