Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

Add Chrome Manifest V3 support#1062

Merged
fwouts merged 1 commit intofwouts:masterfrom
mkusaka:manifestv3
Sep 26, 2025
Merged

Add Chrome Manifest V3 support#1062
fwouts merged 1 commit intofwouts:masterfrom
mkusaka:manifestv3

Conversation

@mkusaka
Copy link
Copy Markdown
Contributor

@mkusaka mkusaka commented Aug 25, 2025

Summary

This PR migrates the extension to Chrome Manifest V3, which is required for all Chrome extensions as V2 is being phased out.

Issue

close: #1061

Changes

  • 🔄 Manifest Migration: Updated manifest.json to V3 format

    • Changed from background.scripts to background.service_worker
    • Replaced browser_action with action
  • 🛠️ API Updates:

    • Migrated from deprecated chrome.browserAction to chrome.action API
    • Updated badge text and color APIs accordingly
  • 🐛 Service Worker Compatibility:

    • Fixed XMLHttpRequest error by configuring GraphQLClient to use native fetch
    • Service Workers don't support XMLHttpRequest, so we pass globalThis.fetch explicitly
  • 📦 Dependencies:

    • Updated @types/chrome from 0.0.195 to 0.1.4 for proper V3 type definitions

Testing

  • Extension loads without errors in Chrome
  • Background service worker initializes correctly
  • Badge updates work properly
  • GraphQL requests work without XMLHttpRequest errors
  • TypeScript compilation passes
  • Build process completes successfully

- Update manifest.json to use Manifest V3 format with service_worker
- Replace chrome.browserAction API with chrome.action API
- Fix XMLHttpRequest error in Service Worker by using native fetch
- Update @types/chrome to v0.1.4 for proper Manifest V3 types
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 25, 2025

CLA assistant check
All committers have signed the CLA.

@fwouts fwouts merged commit 13496c1 into fwouts:master Sep 26, 2025
2 checks passed
@mkusaka mkusaka deleted the manifestv3 branch September 27, 2025 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No longer supported by Chrome

3 participants