Skip to content

Update Chrome extension manifest to v3#26

Draft
filso with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-25
Draft

Update Chrome extension manifest to v3#26
filso with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-25

Conversation

Copilot AI commented Sep 8, 2025

Copy link
Copy Markdown

This PR migrates the Chrome extension from Manifest v2 to Manifest v3 to comply with Chrome's recommendations and ensure continued compatibility with modern Chrome versions.

Key Changes Made

Manifest Configuration

  • Updated manifest_version from 2 to 3
  • Converted background page to service worker (app/background.js)
  • Updated Content Security Policy to v3 object format
  • Split permissions into permissions and host_permissions for better security
  • Raised minimum Chrome version to 88 (required for Manifest v3)

API Migration

The extension now uses Manifest v3 compatible APIs:

  • chrome.extension.onConnectchrome.runtime.onConnect
  • chrome.extension.connectchrome.runtime.connect
  • chrome.extension.sendRequestchrome.runtime.sendMessage
  • chrome.tabs.sendRequestchrome.tabs.sendMessage

Service Worker Conversion

  • Removed app/background.html (not needed for service workers)
  • Updated background script to work as a service worker
  • Added message listener for runtime messages

Files Modified

  • manifest.json - Core v3 configuration updates
  • app/background.js - Service worker implementation with v3 APIs
  • app/scripts/app/AppCtrl.js - Runtime detection update
  • app/scripts/core/appContext.js - Connection API migration
  • app/scripts/core/chromeExtension.js - Message API updates
  • app/scripts/core/dev.js - Tab messaging API update

Backward Compatibility

The extension maintains all existing functionality while being compatible with current and future Chrome versions. The changes are minimal and surgical, preserving the AngularJS dependency graph features users rely on.

Fixes #25.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: filso <875141+filso@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Chrome extension manifest to v3 Update Chrome extension manifest to v3 Sep 8, 2025
Copilot AI requested a review from filso September 8, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Chrome extension manifest to v3

2 participants