Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
Check spreadsheet:
- either TODO or missing category
- or check the scripted tab "To Add" - those are tests which failed and are not listed in the other tab
@juliandescottes
juliandescottes / gist:3c27d829084b2f61cb3b217bb6d772a5
Last active April 17, 2025 08:47
Intermittent practical tips
Tips focused on quickly addressing intermittent issues in the least intrusive way.
1. Investigation
Check the platforms: OS and variants are relevant.
If it happens on a variety of platforms + variants, it's usually a good sign that this is an actual implementation issue or a basic race condition in the test.
Try to reproduce locally. If it only fails on debug, use a debug build first.
Run the test with --repeat 10, if it doesn't fail try with --verify (which takes more time).
@juliandescottes
juliandescottes / moz_module_pptr.js
Created March 31, 2025 14:22
Use moz module from puppeteer
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch({
browser: 'firefox',
headless: false,
// Path to your local build of FF with moz:browserConsole module.
executablePath: '/Users/juliandescottes/Development/mozilla/hg/mozilla-unified/objdir.noindex/dist/Nightly.app/Contents/MacOS/firefox'
});
@juliandescottes
juliandescottes / moz_module.diff
Created March 31, 2025 14:20
Add simple browserConsole moz:module
# HG changeset patch
# User Julian Descottes <[email protected]>
# Date 1743094445 -3600
# Thu Mar 27 17:54:05 2025 +0100
# Node ID e415e9cb08dc5ca94fb3a81af07e5a22c30bf90a
# Parent 882dc1e20711a4d5a4c7fd55e6733086c985f973
XXX Add simple browserConsole moz:module
diff --git a/remote/webdriver-bidi/jar.mn b/remote/webdriver-bidi/jar.mn
--- a/remote/webdriver-bidi/jar.mn

Proposal for response bodies for pre review

Response bodies configuration (new)

New struct for BiDi session

A BiDi session has a an optional response bodies configuration which is a
network.ResponseBodiesConfiguration. It is initially null.

network.ResponseBodiesConfiguration = (

@juliandescottes
juliandescottes / gist:fc8d30dbcd09a98c6699ecdb7da63b92
Created January 31, 2025 13:17
Create videos for treeherder
- `./mach try fuzzy --rebuild 10 devtools/client/debugger/test/mochitest/browser_dbg-breakpoints-columns.js --env MOZ_RECORD_TEST=1`
- In Artifact and debugging tools, find artifact video_mochitest-devtools-chrome.webm
- (?) brew install ffmpeg
- ffmpeg -i path/to/webm -vcodec copy -acodec copy out.webm
@juliandescottes
juliandescottes / find_css_ids.md
Last active January 17, 2025 11:04
Find all ids used in devtools CSS
@juliandescottes
juliandescottes / bidi_navigate_top1000.js
Created October 28, 2024 15:15
Small script for the bidi web client to test navigation to top 1000 websites
(async function() {
const topSites = [
["1","youtube.com","440752994","15665149874.118353"],
["2","facebook.com","339577736","9589908764.521015"],
["3","wikipedia.org","273327976","37860666524.64178"],
["4","reddit.com","226775459","5500222213.766945"],
["5","instagram.com","208492752","10015364198.690928"],
["6","tiktok.com","189077770","1392147411.753438"],
["7","pinterest.com","161036140","4510761388.202763"],
["8","quora.com","126679778","1597307327.397523"],
function matchURLPattern(pattern, input) {
return pattern.test(input);
}
function parseURLPattern(patternObj) {
if (patternObj.type === "string") {
return new URLPattern(patternObj.pattern);
} else {