
Firefox 148: AI Kill Switch
Firefox 148: AI Opt-Out + A Real Fix for XSS
Firefox 148 rolls out with a new AI kill switch, a safer way to insert HTML, and a few handy dev tweaks.
Firefox 148 is out and there are a few things worth noticing. First, there’s a central AI controls panel letting you shut off all AI features in one click or pick and choose what stays on. It covers built-in translation, link previews, tab suggestions, and the sidebar assistant, so no surprise AI pop-ups if you don’t want them.
Safer HTML Insertion
For devs, the new setHTML method replaces risky innerHTML in certain contexts. Basically, it sanitizes content before it hits the page. So, something like this works:
const container = document.getElementById('content');
const unsafe = '<img src=x onerror=alert(1)>Safe text';
container.setHTML(unsafe);
// Keeps your page safe from XSS attacks without extra boilerplate.Other Updates
There are a few other tweaks. Trusted Types support is here, CSS shape() works more reliably, and WebGPU can now run in service workers. On the user side, Android gets toolbar tweaks, PDFs are easier to read with screen readers, and more languages hit translation.
Security patches are included too, covering memory safety and sandbox issues. Nothing too fancy, just the kind of background fixes that keep the browser from going sideways.
Tags
Join the Discussion
Enjoyed this? Ask questions, share your take (hot, lukewarm, or undecided), or follow the thread with people in real time. The community’s open, join us.
Published February 25, 2026 • Updated February 25, 2026
published
Latest in Dev Digest
Right Now in Tech

Court Tosses Musk’s Claim That OpenAI Stole xAI Trade Secrets
Feb 26, 2026

Meta’s Age Verification Push Reignites Online Anonymity Debate
Feb 23, 2026

Substack Adds Polymarket Tools. Journalists Have Questions.
Feb 20, 2026

Netflix Ends Support for PlayStation 3 Streaming App
Feb 18, 2026

The Internet Archive Is Getting Caught in the AI Scraping War
Feb 5, 2026



