Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / bug2051594_profiler_marker_cpp_investigation.diff
Created July 8, 2026 06:44
Adding profiler markers with MarkerStack::Capture to investigate bug 2051594
diff --git a/uriloader/base/nsDocLoader.cpp b/uriloader/base/nsDocLoader.cpp
index 524451a83e03..6f3e7f7b83fd 100644
--- a/uriloader/base/nsDocLoader.cpp
+++ b/uriloader/base/nsDocLoader.cpp
@@ -42,6 +42,7 @@
#include "nsIBrowserDOMWindow.h"
#include "mozilla/ThrottledEventQueue.h"
#include "mozilla/ClearOnShutdown.h"
+#include "GeckoProfiler.h"

HTML spec integration plan for WebDriver BiDi CSP bypass

Context

PR w3c/webappsec-csp#799 currently adds get-effective-csp-list checks at enforcement points in the CSP spec. Reviewers (@dveditz, @antosart) suggested a cleaner approach: have BiDi override the policy container's CSP list instead, which pushes the integration into the HTML spec and minimises (or eliminates) CSP spec changes.


DevTools Toolbox Error Analysis - Component (React) Errors

Period: 2026-06-23 12:22 to 2026-07-05 23:22 Total Errors: 318

Overview

The analysis reveals 318 component (React) errors, with the most common error being 'TypeError' (63.2%). 91.5% occur on release. Windows users account for 70.1% of all errors.

Platform Distribution

DevTools Toolbox Error Analysis - Server Protocol Errors

Period: 2026-06-01 18:22 to 2026-07-06 07:13 Total Errors: 2793

Overview

The analysis reveals 2793 server protocol errors, with the most common error type being 'TypeError @ WeakMapMap.js' (32.4%). 81.6% occur on release. Windows users account for 74.5% of all errors.

Platform Distribution

DevTools Toolbox Error Analysis - Component (React) Errors

Period: 2026-04-10 07:25 to 2026-06-28 23:51 Total Errors: 422

Overview

The analysis reveals 422 component (React) errors, with the most common error being 'TypeError' (64.7%). 95.7% occur on release. Windows users account for 74.6% of all errors.

Platform Distribution

DevTools Toolbox Error Analysis - Server Protocol Errors

Period: 2026-03-04 08:00 to 2026-06-28 23:54 Total Errors: 3521

Overview

The analysis reveals 3521 server protocol errors, with the most common error type being 'TypeError @ WeakMapMap.js' (28.5%). 89.1% occur on release. Windows users account for 75.4% of all errors.

Platform Distribution

Gap Analysis: Replacing DevTools RDP with WebDriver BiDi in vscode-firefox-debug

Context

The VS Code Firefox debug extension (https://github.com/firefox-devtools/vscode-firefox-debug) currently uses Firefox's proprietary Remote Debugging Protocol (RDP) over a raw TCP socket. This analysis assesses whether WebDriver BiDi (specifically the moz:debugging module) could replace it.

Already covered by BiDi

DevTools Toolbox Error Analysis - Component (React) Errors

Period: 2026-04-28 04:59 to 2026-06-21 22:09 Total Errors: 475

Overview

The analysis reveals 475 component (React) errors, with the most common error being 'TypeError' (79.4%). 92.8% occur on release. Windows users account for 66.3% of all errors.

Platform Distribution

DevTools Toolbox Error Analysis - Server Protocol Errors

Period: 2026-04-13 23:19 to 2026-06-21 23:44 Total Errors: 4086

Overview

The analysis reveals 4086 server protocol errors, with the most common error type being 'TypeError @ WeakMapMap.js' (27.8%). 94.1% occur on release. Windows users account for 82.1% of all errors.

Platform Distribution

▗ ▗ ▖ ▖ Claude Code v2.1.177
Sonnet 4.6 · API Usage Billing
▘▘ ▝▝ ~/Development/git/firefox-devtools-mcp
❯ using firefox-devtools mcp, open http://localhost:3000/logpoints-demo/
I'll open that URL in Firefox using the MCP tools.