Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / bot_commands.md
Last active August 14, 2025 06:04
Bot commands for W3C meeting notes

Meeting setup

(Add RRSAgent and Zakim)

Chair: chair_username

Scribe: scribe_username

RRSAgent, make logs public

@juliandescottes
juliandescottes / pw_2025-08-11.txt
Created August 11, 2025 06:08
pw failures 2025-08-11
+tests/library/popup.spec.ts:158:3 › should respect routes from browser context when using window.open
+tests/page/page-request-continue.spec.ts:27:3 › should amend HTTP headers
+tests/page/page-request-continue.spec.ts:43:3 › should not allow to override unsafe HTTP headers
+tests/page/page-request-continue.spec.ts:76:3 › should delete header with undefined value
+tests/page/page-request-continue.spec.ts:205:5 › post data › should compute content-length from post data
+tests/page/page-request-continue.spec.ts:299:3 › should work with Cross-Origin-Opener-Policy
+tests/page/page-request-continue.spec.ts:352:3 › should delete the origin header
+tests/page/page-request-continue.spec.ts:382:3 › should continue preload link requests
+tests/page/page-request-continue.spec.ts:405:3 › should respect set-cookie in redirect response
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Mozilla Firefox WebDriver BiDi Development
This repository contains the Mozilla Firefox browser source code, with a focus on WebDriver BiDi development in the `/remote` folder.
### Key Development Commands
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