
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.
Latest in Dev Digest

Copilot Ads in Pull Requests? GitHub Backtracks After Backlash
Mar 30, 2026

Ubuntu 26.04 Finally Shows Asterisks When Typing Your Sudo Password
Mar 21, 2026

OpenClaw Tops GitHub Star Rankings, Surpasses React
Mar 2, 2026

React Leaves Meta, Gets a New Home
Feb 25, 2026

Firefox 148: AI Opt-Out + A Real Fix for XSS
Feb 25, 2026
Right Now in Tech

PS5 Price Hike: $650 for Standard, $900 for Pro Starting April 2
Mar 28, 2026

Apple Discontinues Mac Pro, Ends Intel Era
Mar 27, 2026

OpenAI Is Pulling the Plug on Sora
Mar 26, 2026

Meta and YouTube Ordered to Pay $3M in Landmark Social Media Ruling
Mar 25, 2026

Your Galaxy S26 Can Finally AirDrop to an iPhone
Mar 23, 2026