---
title: "Learnings from migrating Accessibility Insights for Web to Chrome’s Manifest V3"
description: "Moving the Accessibility Insights for Web extension from Manifest V2 to V3 meant replacing persistent background pages with service workers that can shut down when idle."
url: "https://swe.quest/articles/learnings-from-migrating-accessibility-insights-for-web-to-chrome-s-manifest-v3-59376d341bf90ff8"
canonical: "https://devblogs.microsoft.com/engineering-at-microsoft/learnings-from-migrating-accessibility-insights-for-web-to-chromes-manifest-v3/"
source: "Engineering@Microsoft"
published: "2022-12-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["browsers","javascript","refactoring","accessibility"]
---

# Learnings from migrating Accessibility Insights for Web to Chrome’s Manifest V3

A post on [Engineering@Microsoft](https://swe.quest/sources/ms-engineering.md), published 2022-12-15, 6 min read, Case study. Original: [https://devblogs.microsoft.com/engineering-at-microsoft/learnings-from-migrating-accessibility-insights-for-web-to-chromes-manifest-v3/](https://devblogs.microsoft.com/engineering-at-microsoft/learnings-from-migrating-accessibility-insights-for-web-to-chromes-manifest-v3/)

## Summary

Moving the Accessibility Insights for Web extension from Manifest V2 to V3 meant replacing persistent background pages with service workers that can shut down when idle. In-memory state now gets backed up to IndexedDB: it is read once at worker startup and written on every update, and a PR bot flags changes to stored data shapes for backward compatibility. Placeholder event handlers registered on the first event loop defer events until async setup finishes. Content scripts poll runtime.id instead of holding runtime.connect ports, and "fire and forget" onMessage listeners were converted to properly awaited async responses so the worker isn't killed early. Dual MV2/MV3 builds in one repo and separate release channels avoided risky merges and the store's ban on downgrading MV3 extensions to MV2.

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)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)

## Prerequisites

- browser extension basics
- service workers
- JavaScript async/await ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Manifest V3, Accessibility Insights for Web, Chrome extensions, service workers, IndexedDB, Microsoft Edge

## Related posts

- [How to Use Transformers.js in a Chrome Extension](https://swe.quest/articles/how-to-use-transformers-js-in-a-chrome-extension-565affa6c1396666.md): Hugging Face · 2026-04-23 · Medium · 8 min read · Browsers, AI agents, Inference & serving, LLMs, JavaScript
  Running local AI in a Chrome Manifest V3 extension works best when the background service worker hosts all Transformers.js models and agent state, while the side panel UI and content scripts act as thin clients over a typed messaging contract.
- [News from WWDC22: WebKit Features in Safari 16 Beta](https://swe.quest/articles/news-from-wwdc22-webkit-features-in-safari-16-beta-74211827dca49267.md): WebKit · 2022-06-06 · Easy · 7 min read · Browsers, CSS, Frontend, Accessibility, Developer tools
  Safari 16 beta adds Container Queries (size queries plus cqw/cqh/cqi/cqb/cqmin/cqmax units), CSS Subgrid, Web Push on macOS Ventura via the standard Push API, Notifications API and Service Worker backed by Apple Push Notification service, and Shared Workers.
- [From latency to instant: Modernizing GitHub Issues navigation performance](https://swe.quest/articles/from-latency-to-instant-modernizing-github-issues-navigation-performance-d76fe4f2daa6064a.md): GitHub Engineering · 2026-05-14 · Medium · 13 min read · Web performance, Caching, Frontend, Local-first & sync, Browsers
  GitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background.
- [Accessibility Insights for Windows](https://swe.quest/articles/accessibility-insights-for-windows-b9d389a54b09a2fc.md): Engineering@Microsoft · 2021-12-13 · Medium · 5 min read · Accessibility, Developer tools, .NET, Testing
  Accessibility Insights for Windows is an open-source .NET/WPF tool built on Microsoft's UI Automation framework for finding and fixing accessibility issues in Windows apps.
- [Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready](https://swe.quest/articles/remixing-shopify-s-admin-how-we-made-it-30-faster-and-ai-ready-996b243df73e0345.md): Shopify Engineering · 2025-06-30 · Medium · 7 min read · Web performance, React, Frontend, Refactoring & migrations, AI agents
  Shopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite.

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)
