---
title: "In March, we see Firefox 87"
description: "Firefox 87 enables the beforeinput event and InputEvent.getTargetRanges() by default, letting web apps inspect and cancel text edits in inputs and contenteditable elements before the DOM changes, with an example that protects metadata spans inside an editable comment."
url: "https://swe.quest/articles/in-march-we-see-firefox-87-89133003c9c65b13"
canonical: "https://hacks.mozilla.org/2021/03/in-march-we-see-firefox-87/"
source: "Mozilla Hacks"
published: "2021-03-23"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["browsers","privacy","developer-tools","accessibility"]
---

# In March, we see Firefox 87

A post on [Mozilla Hacks](https://swe.quest/sources/mozilla-hacks.md), published 2021-03-23, 4 min read, Release. Original: [https://hacks.mozilla.org/2021/03/in-march-we-see-firefox-87/](https://hacks.mozilla.org/2021/03/in-march-we-see-firefox-87/)

## Summary

Firefox 87 enables the beforeinput event and InputEvent.getTargetRanges() by default, letting web apps inspect and cancel text edits in inputs and contenteditable elements before the DOM changes, with an example that protects metadata spans inside an editable comment. DevTools gains prefers-color-scheme light/dark emulation and a :target pseudo-class toggle. The default Referrer-Policy becomes strict-origin-when-cross-origin, so paths and query strings are no longer sent cross-origin. SmartBlock substitutes bundled stand-ins for blocked tracking scripts so sites keep working, and VoiceOver screen reader support now ships on macOS.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)

## Prerequisites

- DOM events
- HTTP headers

## Keywords

Firefox 87, beforeinput, getTargetRanges, Referrer-Policy, SmartBlock, prefers-color-scheme, VoiceOver, contenteditable

## Related posts

- [Looking fine with Firefox 89](https://swe.quest/articles/looking-fine-with-firefox-89-bc7d05601914559d.md): Mozilla Hacks · 2021-06-01 · Medium · 3 min read · Browsers, CSS, JavaScript, Web performance, Accessibility
  Firefox 89 ships a slimmer, more minimalist interface alongside several new web platform features.
- [New to the web platform in June](https://swe.quest/articles/new-to-the-web-platform-in-june-7816d4d94fd092d9.md): web.dev · 2026-06-30 · Easy · 4 min read · Browsers, CSS, Frontend, Accessibility
  Chrome 149, Chrome 150 and Firefox 152 reached stable in June 2026.
- [Never too late for Firefox 88](https://swe.quest/articles/never-too-late-for-firefox-88-69478850ac7be10f.md): Mozilla Hacks · 2021-04-19 · Medium · 3 min read · Browsers, CSS, JavaScript, Frontend
  Firefox 88 adds the CSS :user-valid and :user-invalid pseudo-classes, which apply form validity styling only after the user leaves a field.
- [WebKit Features for Safari 27.2](https://swe.quest/articles/webkit-features-for-safari-27-2-f545f4ccec69d87b.md): WebKit · 2026-10-26 · Medium · 5 min read · Browsers, CSS, Frontend, Accessibility
  Safari 27.2 refines Customizable Select with a new \`::field-content\` pseudo-element for styling the displayed selected option without \`\<selectedcontent\>\`, adjusts \`appearance: base-select\` UA styles (flex-based button spacing, inherited \`text-overflow\`, simpler \`::picker-icon\`), and uses \`safe\` alignment so large pickers stay within the viewport.
- [WebKit Features in Safari 17.4](https://swe.quest/articles/webkit-features-in-safari-17-4-28d81cae61957dde.md): WebKit · 2024-03-05 · Medium · 31 min read · Browsers, CSS, Frontend
  Safari 17.4 ships 46 web platform features and 146 bug fixes, alongside completion of WebKit's multi-year rewrite of its inline layout engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
