23 Nov 2026
Planet Mozilla
Firefox Nightly: New Urlbar Design, Fixed macOS 27 Browser Imports, and More – These Weeks in Firefox: Issue 212
Highlights
- New updates to the urlbar design have been enabled by default for Nightly, including a permanently visible search button and other quality of life improvements. If you have feedback, please reach out to us on Connect and file any bugs against the Address Bar here.
- The DevTools Browser Toolbox connection prompt is now enabled on Nightly and Local Builds.

- You can flip the pref devtools.debugger.prompt-connection to disable the prompt.
- You can also consult our documentation to set it automatically for your local builds (tldr: set the preference in ~/.mozbuild/machrc).
- If you find the local change too inconvenient, please let us know on #devTools (Matrix).
- Thanks to spohl for fixing imports from other browsers on macOS 27!
Friends of the Firefox team
Resolved bugs (excluding employees)
Script to find new contributors from bug list
Volunteers that fixed more than one bug
- Ahmed ElGendy
- Dave Vandyke [:kzar]
- Han Yue
- Magnus Melin [:mkmelin]
- Mirko Kerezovic
- 綾波レイ (Kayano04)
New contributors (🌟 = first patch)
- Ahmed ElGendy:
- Han Yue:
- 🌟 Chris Monteiro: Custom connection error message for localhost connection failure
- 🌟 eldjiikgull (EDS): Downloader.cacheAll() leaves the attachment bundle zip in the temp directory
- 綾波レイ:
- Jaron: [HCM] Disabled toolbar buttons should use GrayText and be opaque
- 🌟 Michał Fox: "View Saved Passwords" button opens "about:logins" unfocused
- Mirko Kerezovic:
- 🌟 Masanari Mizuno [:mznms]: about:memory Measure and Save button appears to be broken on android
- 🌟 Rashell Guerrero: Remove unused prefs browser.usedOnWindows10.introURL and browser.contentblocking.introCount from RecommendedPreferences
- Roberto Vidal [:_rvidal]: Find better CM6 API to determine the langauge used for synax highlighting a file
- Nazeer Ahmed Shaikh: Test the rest of the metric types' profiler markers under IPC
Project Updates
Add-ons / Web Extensions
Addon Manager & about:addons
- As part of hardening work, we have applied the changes needed to pass the expected add-on id/type/version to AddonManager.getInstallForURL when installing recommended add-ons, system add-ons (like the Firefox DevTools adb xpi package and the about:newtab built-in add-on train-hop versions), langpacks and dictionaries installed through about:settings, themes installed from Firefox Nova themes pickers, extensions installed through the Firefox Onboarding Chrome Extensions import, add-ons installed through Firefox Sync and by Enterprise Policies - Bug 2076009
WebExtensions Framework
- As part of cleaning up unused emergency rollback prefs, we have removed the extensions.web_accessible_workers.deprecated_behavior emergency rollback pref - Bug 2074192
WebExtension APIs
- Made tabs.discard set the tab's discarded state so the favicon dims, as with the built-in "Unload Tab" - Bug 2000401
- Thanks to kernp25 for the patch to the tabs API.
- Added MessageSender.windowId - Bug 2072133
- Thanks to Carlos for implementing the new MessageSender property.
DevTools
External contributions
- Ahmed ElGendy fixed a keyboard navigation issue that was happening after removing an attribute in the markup view with the Delete key (#1327787)
- Ahmed ElGendy improved support for (inline-)grid-lanes in the Inspector by fixing some erroneous inactive CSS warnings (#2076777) and showing a badge in the markup view for elements with such display values (#2076779)
- Roberto Vidal [:_rvidal] refactored our Editor component so it uses the appropriate CodeMirror 6 APIs to determine language for syntax highlighting (#1918990)
- Sajid Anwar [:sajidanwar] added support for the random() function in the CSS Explainer tooltip (#2072506)
- Tom Schuster [:tschuster] properly marked requests that are blocked because of Connection-Allowlists header (#2073466)
- https://wicg.github.io/connection-allowlists/

- Pref: security.connection_allowlists.enabled
- Chutian (Sky) Ning and Hubert Boma Manilla (:bomsy) added a Speculative Loads tab in the Application panel. It shows the speculative loading status of the current page (#2078876), as well as the list of initiated speculations (#2078901)
- Marco Castelluccio [:marco] fixed an error originating from the JSONViewer that was polluting the logs (#2083679)
Team/Project Update
- Leo McArdle [:leo] is making good progress on the rewrite of the settings panel (#2080237, #2081320, #2081745, #2081864)
- Pref: devtools.settings.redesign-enabled
- Julian Descottes [:jdescottes] fixed a frequent toolbox crash (#2080839)
WebDriver
- Rashell Guerrero removed two outdated preferences from Remote Agent's recommended preferences: browser.usedOnWindows10.introURL and browser.contentblocking.introCount.
- Julian Descottes fixed the handling of Set-Cookie response headers so that \n separated values now show up as individual entries instead of a single merged value. Also applies to other "newline-merged" headers: proxy-authenticate and www-authenticate.
- Julian Descottes updated the WebDriver BiDi network events monitoring to stop computing unused security details, which could have visible impacts on the performance, e.g. during a page load.
- Julian Descottes updated the script.evaluate and script.callFunction commands to stop clearing a pre-existing user activation flag when called with userActivation: false.
- Sasha Borovova fixed a bug where preload script channel messages sent from window.open popups were missing the context field.
Lint, Docs and Workflow
- ahochheiden is working to improve the speed of ./mach lint by optimising how the linters are set up and run. A couple of bugs landed earlier today, more are on the way.
- moz-src:// conversion continues - now about 45% of the way through.
- Various Stylelint improvements have been continuing to be made, with more code being changed to pass the use-design-tokens rules.
Migration Improvements
- nbarrett made it so that the migration wizard can be opened as a tab modal dialog via OMC
- Gijs cleaned up some leftover cruft that we don't need anymore
New Tab Page
- Some regions were getting the Picture-of-the-Day widget by default accidentally. We've fixed that issue, but if you're missing it, it's available in the Customize menu for newtab (the pencil in the bottom right!)

- Relatedly, Maxx Crawford enabled the POTD "set as wallpaper" feature by default on the New Tab Page, flipping the default pref so users now see the set-as-wallpaper control immediately and can apply POTD images as their wallpaper without toggling settings. This should be available on release in the coming weeks.
- Jack Brown fixed the New Tab Page three-dot (more) menu being cut off by the bottom of the window by updating New Tab CSS/positioning so the menu stays within the viewport on desktop.
- Dre fixed a slight shift of the Clock widget when resizing/moving widgets on the New Tab Page by correcting widget transform/layout math to remove visual jank during resize.
- Dre eliminated a brief 'Check back tomorrow' flash when toggling the Picture of the Day widget off and back on by preventing a transient visible state on widget toggle so hidden images no longer momentarily appear.
- Dre truncated the Picture of the Day Author/License label to two lines with an ellipsis in the New Tab Page PoTD widget, applying a two-line CSS clamp/text-overflow change to prevent long author or license strings from causing layout overflow, multiline overlap, or UI shift on narrow viewports and mobile breakpoints.
- Mike Conley added a CI smoke test covering the newtab trainhop langpack observer re-entrancy, introducing a reproducible Taskcluster/GitHub Actions check that exercises the observer re-registration/race with trainhop loading so regressions that would break language-specific newtab content are caught before release.
- Fred Chasen prevented HNT widgets from appearing on default profiles when a VPN reports US geo, tightening the New Tab Page HNT gating logic to enforce profile-type plus region checks (network-derived geo) so users on default profiles using VPNs don't receive unexpected region-restricted Highlights widgets.
- Dre improved handling when the picture is set as the wallpaper in POTD on the New Tab Page, preventing wallpaper state loss and incorrect tile reflow/visual glitches after users apply the image as their wallpaper.
- Reem Hamoui standardized the search UI across the Weather, Stocks, and Clocks widgets on the New Tab Page so input/placeholder/focus behavior and styles are consistent across these widget surfaces, reducing confusion when switching between widget searches.
- Dre updated the "Your Clocks" panel UI in the Clocks widget to clarify add/edit controls and improve layout/affordances, which makes adding, editing, and managing clocks easier and less error-prone for users who rely on multiple timezones.
- Dre fixed a visual flash where POTD alt-text briefly appears in new windows and in new-tabs that bypass preload by adjusting preload/visibility timing so the alt text stays hidden until the image is rendered.
- Irene Ni fixed the edit flow for user-added shortcuts so edits preserve the original shortcut id and update the existing tile in NTP storage instead of creating a new duplicate, preventing duplicated shortcuts and lost edits for users customizing their top sites.
- Nina Pypchenko [:nina-py] added the Travel widget strings, enabling proper localized UI text when the Travel widget is shown.
- Nina Pypchenko [:nina-py] added the Travel widget scaffold, introducing the initial component and placeholder UI so opt-in users can see travel cards and engineers can wire up data sources.
- Reem Hamoui added the game widget scaffold to the New Tab Page, introducing the UI scaffold and integration points that will surface a games widget in the NTP widget area and expose hooks for telemetry and interaction handling.
- David Durfee implemented a linear regression model for Newtab score-based selection, updating the scoring pipeline so tile ranks are computed via a learned linear combination of features which will change visible topsite suggestion ordering on the New Tab Page.
- David Durfee ensured Newtab score-based selection data is cleared when history is cleared, making selection state removal consistent with history.clear to improve privacy for users who clear browsing history.
- Brendan Birdsong updated sponsored shortcut requests to support score-based selection, which changes request payloads/selection logic and can alter which sponsored tiles are shown to users served sponsored content.
- Reem Hamoui added an en-xx locale preview file for New Tab, which enables correct preview/localization rendering for en-xx test builds (no wide user-impact beyond localized previews).
- Scott Downe implemented a floating tab bar with hover preview for Spaces, which introduces a desktop hover-preview UI and floating tab-bar behavior that changes how users discover and navigate tabs inside Spaces.
- Jack Brown enabled edge arrows and rendering of spaces without stories in Thematic Spaces on the New Tab Page, which fixes navigation for edge-positioned spaces and ensures empty user-created spaces display properly.
- Julien Cristau made newtab bundles build once in clean builds and start as soon as pre-export runs, which reduces developer/CI build times but does not change runtime behavior for users.
- Brendan Birdsong made the score selection provider a singleton managed by TopSitesFeed which consolidates provider ownership and prevents multiple provider instances from delivering conflicting score outputs so users see fewer duplicate or inconsistent Top Sites tiles on New Tab across platforms.
- Nathan Barrett added functionality to turn off widgets during the ActivationWindow by gating widget rendering during ActivationWindow, which lets the New Tab page skip widget JS/CSS work during activation to reduce activation-time CPU and rendering jank, improving perceived startup smoothness and reducing tile/widget flashes especially on low-end devices and cold starts.
- David Durfee serialized score refreshes and clearing with an exclusive lock by adding exclusive locking around score refresh/clear operations, which prevents race-induced score corruption and non-deterministic feed updates so users experience more stable and consistent Top Sites ranking and fewer sudden tile disappearances or reorderings on the New Tab feed.
- Jared Wein fixed TypeScript errors in more files newtab/libs which eliminates build-time type-check failures in newtab/libs (reducing CI/local compile breaks) and lowers the risk of shipping regressions in the New Tab Page, though there is no direct UI change for end users.
- Brendan Birdsong added provider debug logs to newtab score-based selection which instruments the score-based selection provider to log selection decisions and score weights for each candidate, improving our ability to triage why specific tiles/rows appear or disappear for users without altering the selection algorithm itself.
- Irene Ni developed peek into adjacent space for New Tab Spaces which introduces a UI preview when navigating between Spaces in the New Tab Page (changes to New Tab Spaces navigation/DOM to render adjacent-space previews), so users of Spaces will see contextual previews when switching spaces-a visible UX change confined to the New Tab Page experience.
- Mike Conley constrained the set of surface_id values to a strict format for New Tab, validating and enforcing a specific format/regex in New Tab codepaths to prevent malformed surface_id values from breaking tile rendering and telemetry.
- Reem Hamoui enabled Weather widget availability in SG for New Tab, flipping the region/config gating so users in Singapore will see the weather tile and its associated API/network calls.
- Reem Hamoui added documentation for the new newtabPreview.ftl file, clarifying the template's fields and integration points for localization and New Tab preview rendering.
- Jack Brown fixed a TypeScript build error that caused perma tier2 failures for newtab worker builds by correcting a 'string | number' → 'number' argument mismatch, which removes CI blockage and prevents release automation delays for New Tab artifacts while producing no change to the New Tab UI experienced by end users.
- Dão Gottwald updated the New Tab build documentation (2085056) to reflect that the build now emits bundles into the objdir; this is a docs-only change that improves local build and debugging workflows for engineers and has no direct user-facing impact.
- Mike Conley updated the New Tab Page allowlist/CSP so framed widgets can load from *.merino.nonprod.webservices.mozgcp.net and *.merino.prod.webservices.mozgcp.net.
- View bugs in Bugzilla
Picture-in-Picture
- Thanks to Lukáš Lipinský for fixing missing PiP player captions on YouTube playlists. Captions should now remain visible on PiP whenever a video changes.
- Thanks to SMRehan, PiP windows now appear over fullscreen applications on macOS.
- A quick FYI for other devs - PiP's governance has recently changed.
Search and Urlbar
- Address Bar
- Work continues on improving the address bar based search bar in the new tab page, and tidying up the code. This is currently in-testing on nightly.
- Moritz improved TypeScript definitions for various address bar code.
- Search
- Work is progressing on a new version of the search configuration - v3 - which resolves a few backwards compatibility issues that we recently discovered in v2, and gives more configuration options for the future.
- Thank you to Florian and others for fixing lots of issues with intermittent test failures.
23 Nov 2026 7:48pm GMT
22 Nov 2026
Planet Mozilla
Florian Quèze: Debugging a Windows crash that left no crash report
How, without ever starting my Windows laptop, I understood why Firefox crashes on Windows when opening its 500th window. From a crash that left nothing but an exit code to a fix that landed only a few hours later!
The symptom
Two changes landed on the same day: the mochitest harness started to fail the running test when the browser exits abnormally without a minidump, and mochitest-browser-chrome-repeat jobs started running on autoland and mozilla-central. Together, they made the aiwindow manifest perma-fail on Windows 11 with "application terminated with exit code 3762701893".
No minidump, no stack, nothing else to look at. The only useful observation was that the failure was deterministic: the browser always died at about the same point of the run, after roughly 14 minutes. Something was accumulating.
A quick online search gave only one result about this exit code (0xE0464645 in hexadecimal): a bug write-up in Chinese for another project, analyzing crash dumps with the same exception code. Their stacks show it's raised by CoreMessaging!CFlat::Abandonment::Fail calling RaiseFailFastException, which "bypasses all exception handlers": this is why our crash reporter never saw anything. A Windows UI component giving up after 14 minutes of tests suggested it was running out of something.
Measuring resources after each test
Finding out what only required adding a few lines to the browser-chrome harness (browser-test.js) to log, after each test, the parent process's GDI and USER object counts, handle count, and private and committed memory:
let GetGuiResources = user32.declare(
"GetGuiResources",
ctypes.winapi_abi,
ctypes.uint32_t,
ctypes.voidptr_t,
ctypes.uint32_t
);
let proc = GetCurrentProcess();
parts.push(`gdi ${GetGuiResources(proc, 0)}`);
parts.push(`gdiPeak ${GetGuiResources(proc, 2)}`);
parts.push(`user ${GetGuiResources(proc, 1)}`);
parts.push(`userPeak ${GetGuiResources(proc, 4)}`);
// ... handle count, private bytes, system commit, kernel pools ...
dump(`DEBUG-RESOURCES | ${parts.join(" | ")}\n`);
Using ctypes means no compilation is needed, so the try pushes could use artifact builds to iterate quickly.
The answer was clear: the number of GDI objects climbed steadily from 45 to 9,950-9,999 after the last test that completed, and the peak value reported by Windows was exactly 10,000. 10,000 is the maximum number of GDI objects a Windows process can own. Nothing else was anywhere near a limit.
A smaller test case
The Smart Window tests open and close a lot of windows, about 500 in a single browser session, so opening windows was the obvious suspect. A new test opening and closing 30 browser windows, in its own folder so it can run alone on try and give fast results, confirmed it, and showed the problem had nothing to do with Smart Window: each window leaked about 20 GDI objects, never released, even after memory minimization.
Which objects? Walking the GDI handle table
Again, some help was found on GitHub: a gdi-leaks project has code reading the GDI handle table that Windows maps into every process. Still from ctypes, this table can be accessed from an undocumented field (GdiSharedHandleTable) of a per-process Windows structure, keeping the entries owned by our process, and asking GDI for the type and size of each object:
// GdiSharedHandleTable, undocumented, at 0xF8 on x64.
let table = ctypes.cast(
ctypes
.cast(peb, ctypes.uint8_t.array(0x100).ptr)
.contents.addressOfElement(0xf8),
ctypes.voidptr_t.ptr
).contents;
// 65536 cells of 24 bytes: kernel pointer, pid, count, upper, type, user
// pointer.
let cells = ctypes.cast(
table,
ctypes.uint16_t.array(65536 * 12).ptr
).contents;
let pid = GetCurrentProcessId() & 0xffff;
for (let i = 0; i < 65536; i++) {
if (cells[i * 12 + 4] != pid) {
continue;
}
let handle = ctypes.cast(
ctypes.uintptr_t(cells[i * 12 + 6] * 65536 + i),
ctypes.voidptr_t
);
let type = TYPES[GetObjectType(handle) - 1];
if (type == "BITMAP" && GetObjectW(handle, BITMAP.size, bitmap.address())) {
type += ` ${bitmap.bmWidth}x${bitmap.bmHeight}`;
}
counts[type] = (counts[type] || 0) + 1;
}
Before and after opening and closing 30 windows, this gives:
| GDI objects | Before | After 30 windows |
|---|---|---|
| Memory device contexts (DCs) | 7 | 303 |
| Bitmaps 64×32 | 3 | 177 |
| Bitmaps 64×64 | 1 | 91 |
| Bitmaps 32×32 | 1 | 33 |
| Regions | 8 | 8 |
| Brushes | 2 | 2 |
| Fonts | 2 | 2 |
| Bitmaps 8×8 | 1 | 1 |
| Total | 43 | 635 |
So each window leaves behind about 10 memory DCs and 10 small bitmaps of 64×32, 64×64 and 32×32 pixels.
Who allocates them?
Each leaked bitmap comes with a memory DC: that's the pair Windows creates when graphics code asks for a DC to draw with GDI into a GPU surface. With hooks on the native functions that create this pair (NtGdiDdDDICreateDCFromMemory) and destroy it (NtGdiDdDDIDestroyDCFromMemory), the Firefox Profiler can record markers with stacks for each call:
static LONG NTAPI CreateHook(CreateArgs* aArgs) {
LONG status = sCreateStub(aArgs);
if (status >= 0) {
PROFILER_MARKER_TEXT(
"GDI CreateDCFromMemory", GRAPHICS, MarkerStack::Capture(),
nsPrintfCString("DC %08x bitmap %08x %ux%u", Handle(aArgs->mDc),
Handle(aArgs->mBitmap), aArgs->mWidth,
aArgs->mHeight));
}
return status;
}
static LONG NTAPI DestroyHook(const DestroyArgs* aArgs) {
PROFILER_MARKER_TEXT(
"GDI DestroyDCFromMemory", GRAPHICS, MarkerStack::Capture(),
nsPrintfCString("DC %08x bitmap %08x", Handle(aArgs->mDc),
Handle(aArgs->mBitmap)));
return sDestroyStub(aArgs);
}
static void Install() {
sWin32uIntercept.Init("win32u.dll");
sCreateStub.Set(sWin32uIntercept, "NtGdiDdDDICreateDCFromMemory",
&CreateHook);
sDestroyStub.Set(sWin32uIntercept, "NtGdiDdDDIDestroyDCFromMemory",
&DestroyHook);
}
The mochitest harness profiles every test, but to keep the overhead low it doesn't walk native stacks, so marker stacks only contain JS frames. Pushing to try with --profiler gives a normally configured profiler, with native stacks. The harness only uploads profiles of failing tests, so the test ends with an assertion that always fails.
Here is the resulting profile, filtered to show only the new markers. There are 428 GDI CreateDCFromMemory markers and 127 GDI DestroyDCFromMemory markers. Pairing them by handle leaves 301 DCs that are never destroyed: 177 with a 64×32 bitmap, 91 with a 64×64 one and 33 with a 32×32 one, exactly the bitmaps found in the handle table at the end of the test.
Here is the stack of one of the leaked DCs, innermost frame first:
D3D10Warp.dll!UMDevice::InternalGetDC
d3d11.dll!NDXGI::CResource::CGdiInterop::GetDC
d3d11.dll!NDXGI::CResource::GetDCCore
Microsoft.UI.Windowing.Core.dll!CTitleBar::PaintButton
Microsoft.UI.Windowing.Core.dll!CTitleBar::UpdateButtonState
Microsoft.UI.Windowing.Core.dll!CTitleBar::UpdateAllButtonStates
Microsoft.UI.Windowing.Core.dll!CTitleBar::UpdateColors
Microsoft.UI.Windowing.Core.dll!CTitleBar::UpdateExtendsContentIntoTitleBar
Microsoft.UI.Windowing.Core.dll!...::put_ExtendsContentIntoTitleBar
xul.dll!WindowsUIUtils::SetIsTitlebarCollapsed
xul.dll!nsWindow::SetCustomTitlebar
The leaked objects are the images of the title bar buttons and icon. To draw its tabs in the title bar, Firefox asks the Windows App SDK (Microsoft.UI.Windowing.Core.dll) to let the window content extend into the title bar, and the SDK then paints these buttons itself.
The destroy markers explain why some are freed and others aren't. Each window creates 14 DCs while setting up its title bar. When the window is closed, 4 of them are destroyed, all at once, when their surface is destroyed while DirectComposition commits (CTitleBar::CommitDCompDevice, called from nsWindow::Show(false) in AppWindow::Destroy). The 10 others are never destroyed. My understanding is that they live as long as the title bar object, which nothing destroys when the window is closed. This looks like a bug in the Windows App SDK.
The fix
The fix is to undo the extension of the window content into the title bar, resetting it to its default state, before destroying the window:
// Destroying the window doesn't release the GDI objects the Windows App SDK
// allocates for a title bar extended into the client area, so undo that
// first.
if (mCustomNonClient) {
WindowsUIUtils::SetIsTitlebarCollapsed(mWnd, false);
}
Each window leaked 20 of the 10,000 GDI objects a process can own, hence the crash around the 500th window. With the fix, closing a window leaks 0 GDI objects, and Firefox can now open more than 500 windows on Windows without crashing. This landed in bug 2096020.
How it really happened
The story above is the method I would follow next time, but a few things happened slightly differently. Claude found the fix before having the stacks. Once it was clear that each window leaked 20 objects, Claude proposed variants to test on try: popups, a chrome window without a title bar, browser.tabs.inTitlebar=0, disabling Mica. Only browser windows drawing tabs in the title bar leaked. Claude then read the code of that path, found the SetIsTitlebarCollapsed call, and tested resetting it behind a pref: that removed the leak. The clean profile shared above came last, when preparing this blog post. The profiles produced during the actual investigation were a bit messier, as they hooked several other GDI functions (creating DIB sections, compatible DCs and bitmaps), and at first not the one Direct3D uses to create the leaked DCs.
Things to take away
- To investigate a resource leak, start by measuring resources after each test. ctypes in the test harness gives answers on try without compiling anything.
- Walking the tables the OS keeps for the process shows what the leaked objects look like, which gives a hint about which functions to watch.
- Profiler markers with native stacks show what happens inside the OS: a nice way to pinpoint the code responsible for a leak without guessing.
- All of this works in try pushes, without a machine reproducing locally, and mostly with artifact builds: only the native hooks and the patch itself needed full builds.
22 Nov 2026 11:03pm GMT
21 Nov 2026
Planet Mozilla
Mozilla Data YouTube Channel: Data Incident Process
Mike Droettboom talks about Data @ Mozilla's process for handling incidents.
21 Nov 2026 1:20pm GMT



