evilpie

Joined 16 years ago

Karma
2,006
Submissions
156
Member since
Jan 16
Mozilla Software Engineer.

https://hachyderm.io/@evilpie

View on Hacker News

Recent submissions

Comment · 6 months ago
Comment · 6 months ago
Comment · 8 months ago
Yes. It's in about:keyboard.
Comment · 8 months ago
You aren't reading it right.

  new Sanitizer({})
This Sanitizer will allow everything by default, but setHTML will still block elements/attributes that can lead to XSS.

You might want something like:

  new Sanitizer({ replaceWithChildrenElements: ["h1"], elements: [], attributes: [] })
This will replace <h1> elements with their children (i.e. text in this case), but disallow all other elements and attributes.
Comment · 8 months ago
Using an allowlist based Sanitizer you are definitely less likely to shoot yourself in the foot, but as long as you use setHTML you can't introduce XSS at least.
Comment · 8 months ago
We made sure to exclude WebExtensions code from web pages's Trusted Types restrictions enforcement. (Bugs can happen of course)
Comment · 1 year ago
If you want to use an XSS-unsafe Sanitizer you have to use setHTMLUnsafe.
Comment · 1 year ago
We enabled this by default in Firefox Nightly (only) this week.
Comment · 1 year ago
Make sure you have Firefox 138! From the release notes: > You can also now reposition a tab group on the tab bar by dragging it.
Comment · 1 year ago
Comment · 1 year ago
Comment · 2 years ago
If it's disabled (greyed-out), then you already have telemetry disabled.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton