Skip to content

Add an extension messaging transport and a chrome-mv3 New Tab Page build - #3256

Merged
BogdanLykhosherstov merged 1 commit into
mainfrom
bogdan/extension-messaging-transport
Nov 27, 2026
Merged

BogdanLykhosherstov merged 1 commit into
mainfrom
bogdan/extension-messaging-transport

Conversation

@BogdanLykhosherstov

@BogdanLykhosherstov BogdanLykhosherstov commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Asana Task/Github Issue: https://app.asana.com/0/0/1220753232884750/f/

Description

Adds a messaging transport for extension pages, ExtensionMessagingConfig / ExtensionMessagingTransport in messaging/lib/extension.js, and a chrome-mv3 build of the New Tab Page that uses it. The embedded extension serves this build as its new tab page, replacing a shim that emulated the Windows transport (duckduckgo/duckduckgo-privacy-extension#3825).

  • Notifications and requests go over a chrome.runtime.Port (here named specialPages) to the extension's background service worker, which answers requests on the same port.
  • Subscription events arrive as runtime.onMessage events, so the background pushes without holding a port open.
  • The port closes whenever the service worker stops, and the next message reconnects. Messages are sent once: a request whose port closes before the reply is rejected, not re-sent.
  • A reply with a falsy result (null, false, 0, none) resolves; only an error rejects.
  • new-tab/public/index.html gains <meta name="color-scheme" content="light dark">. This is shared by every platform's New Tab Page.

Split out of #3219 (messaging transport and the New Tab Page target only).

Known limitation: if the service worker stops while a request is outstanding, that request is rejected. A New Tab Page whose initialSetup is lost this way stays blank until it is reloaded.

Testing Steps

  • npm run test-unit -w injected: the Extension block in injected/unit-test/messaging.js covers notify, request (reply matched by id, feature and context; falsy results; error reply; abort; disconnect), subscribe and reconnecting.
  • npm run build and check build/chrome-mv3/pages/new-tab exists.
  • End to end with the extension PR: build chromium-embedded, side-load it into DDG-Chromium and open a new tab (steps in that PR).
  • Verified end to end and observed the changes - NTP still working

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

[Beta] Generated file diff

Time updated: Thu, 26 Nov 2026 21:10:12 GMT

Android
    - android/adsjsContentScope.js
  • android/autofillImport.js
  • android/brokerProtection.js
  • android/contentScope.js
  • android/duckAiChatHistory.js
  • android/duckAiDataClearing.js
  • android/pageTranslation.js
  • android/pages/duckplayer/dist/index.js

File has changed

Apple
    - apple/brokerProtection.js
  • apple/contentScope.js
  • apple/contentScopeIsolated.js
  • apple/duckAiChatHistory.js
  • apple/duckAiDataClearing.js
  • apple/pageTranslation.js
  • apple/pages/duckplayer/dist/index.js
  • apple/pages/duckplayer/index.html
  • apple/pages/history/dist/index.js
  • apple/pages/new-tab/dist/index.js
  • apple/pages/new-tab/index.html
  • apple/pages/onboarding/dist/index.js
  • apple/pages/release-notes/dist/index.js
  • apple/pages/special-error/dist/index.js
  • apple/pages/special-error/index.html

File has changed

Chrome-mv3
    - chrome-mv3/inject.js

File has changed

Firefox
    - firefox/inject.js

File has changed

Integration
    - integration/contentScope.js
  • integration/pages/duckplayer/dist/index.js
  • integration/pages/example/dist/index.js
  • integration/pages/history/dist/index.js
  • integration/pages/new-tab/dist/index.js
  • integration/pages/new-tab/index.html
  • integration/pages/onboarding/dist/index.js
  • integration/pages/release-notes/dist/index.js
  • integration/pages/set-as-default/dist/index.js
  • integration/pages/special-error/dist/index.js

File has changed

Windows
    - windows/contentScope.js
  • windows/pages/duckplayer/dist/index.js
  • windows/pages/history/dist/index.js
  • windows/pages/new-tab/dist/index.js
  • windows/pages/new-tab/index.html
  • windows/pages/onboarding/dist/index.js
  • windows/pages/release-notes/dist/index.js
  • windows/pages/set-as-default/dist/index.js
  • windows/pages/special-error/dist/index.js
  • windows/pages/special-error/index.html

File has changed

New Files
    - chrome-mv3/pages/new-tab/backgrounds/bg-01-thumb.jpg
  • chrome-mv3/pages/new-tab/backgrounds/bg-01.jpg
  • chrome-mv3/pages/new-tab/backgrounds/bg-02-thumb.jpg
  • chrome-mv3/pages/new-tab/backgrounds/bg-02.jpg
  • chrome-mv3/pages/new-tab/backgrounds/bg-03-thumb.jpg
  • chrome-mv3/pages/new-tab/backgrounds/bg-03.jpg
  • chrome-mv3/pages/new-tab/burn-rebranding.json
  • chrome-mv3/pages/new-tab/burn.json
  • chrome-mv3/pages/new-tab/company-icons/33across.svg
  • chrome-mv3/pages/new-tab/company-icons/a.svg
  • chrome-mv3/pages/new-tab/company-icons/acuityads.svg
  • chrome-mv3/pages/new-tab/company-icons/adform.svg
  • chrome-mv3/pages/new-tab/company-icons/adjust.svg
  • chrome-mv3/pages/new-tab/company-icons/adobe.svg
  • chrome-mv3/pages/new-tab/company-icons/akamai.svg
  • chrome-mv3/pages/new-tab/company-icons/amazon.svg
  • chrome-mv3/pages/new-tab/company-icons/amplitude.svg
  • chrome-mv3/pages/new-tab/company-icons/appsflyer.svg
  • chrome-mv3/pages/new-tab/company-icons/automattic.svg
  • chrome-mv3/pages/new-tab/company-icons/b.svg
  • chrome-mv3/pages/new-tab/company-icons/beeswax.svg
  • chrome-mv3/pages/new-tab/company-icons/bidtellect.svg
  • chrome-mv3/pages/new-tab/company-icons/branch-metrics.svg
  • chrome-mv3/pages/new-tab/company-icons/braze.svg
  • chrome-mv3/pages/new-tab/company-icons/bugsnag.svg
  • chrome-mv3/pages/new-tab/company-icons/bytedance.svg
  • chrome-mv3/pages/new-tab/company-icons/c.svg
  • chrome-mv3/pages/new-tab/company-icons/chartbeat.svg
  • chrome-mv3/pages/new-tab/company-icons/cloudflare.svg
  • chrome-mv3/pages/new-tab/company-icons/cognitiv.svg
  • chrome-mv3/pages/new-tab/company-icons/comscore.svg
  • chrome-mv3/pages/new-tab/company-icons/crimtan-holdings.svg
  • chrome-mv3/pages/new-tab/company-icons/criteo.svg
  • chrome-mv3/pages/new-tab/company-icons/d.svg
  • chrome-mv3/pages/new-tab/company-icons/deepintent.svg
  • chrome-mv3/pages/new-tab/company-icons/e.svg
  • chrome-mv3/pages/new-tab/company-icons/exoclick.svg
  • chrome-mv3/pages/new-tab/company-icons/eyeota.svg
  • chrome-mv3/pages/new-tab/company-icons/f.svg
  • chrome-mv3/pages/new-tab/company-icons/facebook.svg
  • chrome-mv3/pages/new-tab/company-icons/g.svg
  • chrome-mv3/pages/new-tab/company-icons/google-ads.svg
  • chrome-mv3/pages/new-tab/company-icons/google-analytics.svg
  • chrome-mv3/pages/new-tab/company-icons/google.svg
  • chrome-mv3/pages/new-tab/company-icons/gumgum.svg
  • chrome-mv3/pages/new-tab/company-icons/h.svg
  • chrome-mv3/pages/new-tab/company-icons/hotjar.svg
  • chrome-mv3/pages/new-tab/company-icons/i.svg
  • chrome-mv3/pages/new-tab/company-icons/id5.svg
  • chrome-mv3/pages/new-tab/company-icons/improve-digital.svg
  • chrome-mv3/pages/new-tab/company-icons/index-exchange.svg
  • chrome-mv3/pages/new-tab/company-icons/inmar.svg
  • chrome-mv3/pages/new-tab/company-icons/instagram.svg
  • chrome-mv3/pages/new-tab/company-icons/intent-iq.svg
  • chrome-mv3/pages/new-tab/company-icons/iponweb.svg
  • chrome-mv3/pages/new-tab/company-icons/j.svg
  • chrome-mv3/pages/new-tab/company-icons/k.svg
  • chrome-mv3/pages/new-tab/company-icons/kargo.svg
  • chrome-mv3/pages/new-tab/company-icons/kochava.svg
  • chrome-mv3/pages/new-tab/company-icons/l.svg
  • chrome-mv3/pages/new-tab/company-icons/line.svg
  • chrome-mv3/pages/new-tab/company-icons/linkedin.svg
  • chrome-mv3/pages/new-tab/company-icons/liveintent.svg
  • chrome-mv3/pages/new-tab/company-icons/liveramp.svg
  • chrome-mv3/pages/new-tab/company-icons/loopme-ltd.svg
  • chrome-mv3/pages/new-tab/company-icons/lotame-solutions.svg
  • chrome-mv3/pages/new-tab/company-icons/m.svg
  • chrome-mv3/pages/new-tab/company-icons/magnite.svg
  • chrome-mv3/pages/new-tab/company-icons/mediamath.svg
  • chrome-mv3/pages/new-tab/company-icons/medianet-advertising.svg
  • chrome-mv3/pages/new-tab/company-icons/mediavine.svg
  • chrome-mv3/pages/new-tab/company-icons/merkle.svg
  • chrome-mv3/pages/new-tab/company-icons/microsoft.svg
  • chrome-mv3/pages/new-tab/company-icons/mixpanel.svg
  • chrome-mv3/pages/new-tab/company-icons/n.svg
  • chrome-mv3/pages/new-tab/company-icons/narrative.svg
  • chrome-mv3/pages/new-tab/company-icons/nativo.svg
  • chrome-mv3/pages/new-tab/company-icons/neustar.svg
  • chrome-mv3/pages/new-tab/company-icons/new-relic.svg
  • chrome-mv3/pages/new-tab/company-icons/o.svg
  • chrome-mv3/pages/new-tab/company-icons/onetrust.svg
  • chrome-mv3/pages/new-tab/company-icons/openjs-foundation.svg
  • chrome-mv3/pages/new-tab/company-icons/openx.svg
  • chrome-mv3/pages/new-tab/company-icons/opera-software.svg
  • chrome-mv3/pages/new-tab/company-icons/oracle.svg
  • chrome-mv3/pages/new-tab/company-icons/other-dark.svg
  • chrome-mv3/pages/new-tab/company-icons/other.svg
  • chrome-mv3/pages/new-tab/company-icons/outbrain.svg
  • chrome-mv3/pages/new-tab/company-icons/p.svg
  • chrome-mv3/pages/new-tab/company-icons/pinterest.svg
  • chrome-mv3/pages/new-tab/company-icons/prospect-one.svg
  • chrome-mv3/pages/new-tab/company-icons/pubmatic.svg
  • chrome-mv3/pages/new-tab/company-icons/pulsepoint.svg
  • chrome-mv3/pages/new-tab/company-icons/q.svg
  • chrome-mv3/pages/new-tab/company-icons/quantcast.svg
  • chrome-mv3/pages/new-tab/company-icons/r.svg
  • chrome-mv3/pages/new-tab/company-icons/rhythmone.svg
  • chrome-mv3/pages/new-tab/company-icons/roku.svg
  • chrome-mv3/pages/new-tab/company-icons/rtb-house.svg
  • chrome-mv3/pages/new-tab/company-icons/rubicon.svg
  • chrome-mv3/pages/new-tab/company-icons/s.svg
  • chrome-mv3/pages/new-tab/company-icons/salesforce.svg
  • chrome-mv3/pages/new-tab/company-icons/semasio.svg
  • chrome-mv3/pages/new-tab/company-icons/sharethrough.svg
  • chrome-mv3/pages/new-tab/company-icons/simplifi-holdings.svg
  • chrome-mv3/pages/new-tab/company-icons/smaato.svg
  • chrome-mv3/pages/new-tab/company-icons/snap.svg
  • chrome-mv3/pages/new-tab/company-icons/sonobi.svg
  • chrome-mv3/pages/new-tab/company-icons/sovrn-holdings.svg
  • chrome-mv3/pages/new-tab/company-icons/spotx.svg
  • chrome-mv3/pages/new-tab/company-icons/supership.svg
  • chrome-mv3/pages/new-tab/company-icons/synacor.svg
  • chrome-mv3/pages/new-tab/company-icons/t.svg
  • chrome-mv3/pages/new-tab/company-icons/taboola.svg
  • chrome-mv3/pages/new-tab/company-icons/tapad.svg
  • chrome-mv3/pages/new-tab/company-icons/teads.svg
  • chrome-mv3/pages/new-tab/company-icons/the-nielsen-company.svg
  • chrome-mv3/pages/new-tab/company-icons/the-trade-desk.svg
  • chrome-mv3/pages/new-tab/company-icons/triplelift.svg
  • chrome-mv3/pages/new-tab/company-icons/twitter.svg
  • chrome-mv3/pages/new-tab/company-icons/u.svg
  • chrome-mv3/pages/new-tab/company-icons/unruly-group.svg
  • chrome-mv3/pages/new-tab/company-icons/urban-airship.svg
  • chrome-mv3/pages/new-tab/company-icons/v.svg
  • chrome-mv3/pages/new-tab/company-icons/verizon-media.svg
  • chrome-mv3/pages/new-tab/company-icons/w.svg
  • chrome-mv3/pages/new-tab/company-icons/warnermedia.svg
  • chrome-mv3/pages/new-tab/company-icons/wpp.svg
  • chrome-mv3/pages/new-tab/company-icons/x.svg
  • chrome-mv3/pages/new-tab/company-icons/xaxis.svg
  • chrome-mv3/pages/new-tab/company-icons/y.svg
  • chrome-mv3/pages/new-tab/company-icons/yahoo-japan.svg
  • chrome-mv3/pages/new-tab/company-icons/yandex.svg
  • chrome-mv3/pages/new-tab/company-icons/yieldmo.svg
  • chrome-mv3/pages/new-tab/company-icons/youtube.svg
  • chrome-mv3/pages/new-tab/company-icons/z.svg
  • chrome-mv3/pages/new-tab/company-icons/zeotap.svg
  • chrome-mv3/pages/new-tab/company-icons/zeta-global.svg
  • chrome-mv3/pages/new-tab/dist/index.css
  • chrome-mv3/pages/new-tab/dist/index.js
  • chrome-mv3/pages/new-tab/dist/inline.js
  • chrome-mv3/pages/new-tab/gradients/gradient01.svg
  • chrome-mv3/pages/new-tab/gradients/gradient02.01.svg
  • chrome-mv3/pages/new-tab/gradients/gradient02.svg
  • chrome-mv3/pages/new-tab/gradients/gradient03.svg
  • chrome-mv3/pages/new-tab/gradients/gradient04.svg
  • chrome-mv3/pages/new-tab/gradients/gradient05.svg
  • chrome-mv3/pages/new-tab/gradients/gradient06.svg
  • chrome-mv3/pages/new-tab/gradients/gradient07.svg
  • chrome-mv3/pages/new-tab/gradients/grain.png
  • chrome-mv3/pages/new-tab/icons/Announce-96.svg
  • chrome-mv3/pages/new-tab/icons/AppUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/Bring-Stuff-128.svg
  • chrome-mv3/pages/new-tab/icons/Browser-Redesign-96.svg
  • chrome-mv3/pages/new-tab/icons/Cookie-Pops-128.svg
  • chrome-mv3/pages/new-tab/icons/CriticalUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/DDGAnnounce-96.svg
  • chrome-mv3/pages/new-tab/icons/Default-App-128.svg
  • chrome-mv3/pages/new-tab/icons/Default-App-96.svg
  • chrome-mv3/pages/new-tab/icons/Desktop-Mobile-Subscription-96.svg
  • chrome-mv3/pages/new-tab/icons/Dock-Add-Mac-128.svg
  • chrome-mv3/pages/new-tab/icons/Dock-Add-Mac-96.svg
  • chrome-mv3/pages/new-tab/icons/Dock-Add-Windows-128.svg
  • chrome-mv3/pages/new-tab/icons/Dock-Add-Windows-96.svg
  • chrome-mv3/pages/new-tab/icons/DuckAi-96.svg
  • chrome-mv3/pages/new-tab/icons/Email-Protection-128.svg
  • chrome-mv3/pages/new-tab/icons/Email-Protection-96.svg
  • chrome-mv3/pages/new-tab/icons/PIR-96.svg
  • chrome-mv3/pages/new-tab/icons/Passwords-Import-96.svg
  • chrome-mv3/pages/new-tab/icons/Preview-96.svg
  • chrome-mv3/pages/new-tab/icons/PrivacyPro.svg
  • chrome-mv3/pages/new-tab/icons/Radar-96.svg
  • chrome-mv3/pages/new-tab/icons/RadarCheckGreen-96.svg
  • chrome-mv3/pages/new-tab/icons/RadarCheckPurple-96.svg
  • chrome-mv3/pages/new-tab/icons/Shield-Check-Color-16.svg
  • chrome-mv3/pages/new-tab/icons/Shield-Color-16.svg
  • chrome-mv3/pages/new-tab/icons/Subscription-128.svg
  • chrome-mv3/pages/new-tab/icons/Subscription-Clock-96.svg
  • chrome-mv3/pages/new-tab/icons/Sync-96.svg
  • chrome-mv3/pages/new-tab/icons/Tube-Clean-128.svg
  • chrome-mv3/pages/new-tab/icons/VeryCriticalUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/YouTube-Clean-96.svg
  • chrome-mv3/pages/new-tab/icons/YoutubeNew-96.svg
  • chrome-mv3/pages/new-tab/icons/ddg-favicon.png
  • chrome-mv3/pages/new-tab/icons/favicon@2x.png
  • chrome-mv3/pages/new-tab/icons/rebrand/Announce-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/AppUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/CriticalUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/DDGAnnounce-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/DuckAi-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/PIR-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/Preview-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/PrivacyPro-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/Radar-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/RadarCheckGreen-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/RadarCheckPurple-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/Subscription-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/Subscription-Clock-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/VeryCriticalUpdate-96.svg
  • chrome-mv3/pages/new-tab/icons/rebrand/YoutubeNew-96.svg
  • chrome-mv3/pages/new-tab/icons/shield.svg
  • chrome-mv3/pages/new-tab/index.html
  • chrome-mv3/pages/new-tab/letters/a.svg
  • chrome-mv3/pages/new-tab/letters/b.svg
  • chrome-mv3/pages/new-tab/letters/c.svg
  • chrome-mv3/pages/new-tab/letters/d.svg
  • chrome-mv3/pages/new-tab/letters/e.svg
  • chrome-mv3/pages/new-tab/letters/f.svg
  • chrome-mv3/pages/new-tab/letters/g.svg
  • chrome-mv3/pages/new-tab/letters/h.svg
  • chrome-mv3/pages/new-tab/letters/i.svg
  • chrome-mv3/pages/new-tab/letters/j.svg
  • chrome-mv3/pages/new-tab/letters/k.svg
  • chrome-mv3/pages/new-tab/letters/l.svg
  • chrome-mv3/pages/new-tab/letters/m.svg
  • chrome-mv3/pages/new-tab/letters/n.svg
  • chrome-mv3/pages/new-tab/letters/o.svg
  • chrome-mv3/pages/new-tab/letters/p.svg
  • chrome-mv3/pages/new-tab/letters/q.svg
  • chrome-mv3/pages/new-tab/letters/r.svg
  • chrome-mv3/pages/new-tab/letters/s.svg
  • chrome-mv3/pages/new-tab/letters/t.svg
  • chrome-mv3/pages/new-tab/letters/u.svg
  • chrome-mv3/pages/new-tab/letters/v.svg
  • chrome-mv3/pages/new-tab/letters/w.svg
  • chrome-mv3/pages/new-tab/letters/x.svg
  • chrome-mv3/pages/new-tab/letters/y.svg
  • chrome-mv3/pages/new-tab/letters/z.svg
  • chrome-mv3/pages/new-tab/locales/de/new-tab.json
  • chrome-mv3/pages/new-tab/locales/en/new-tab.json
  • chrome-mv3/pages/new-tab/locales/es/new-tab.json
  • chrome-mv3/pages/new-tab/locales/fr/new-tab.json
  • chrome-mv3/pages/new-tab/locales/it/new-tab.json
  • chrome-mv3/pages/new-tab/locales/nl/new-tab.json
  • chrome-mv3/pages/new-tab/locales/pl/new-tab.json
  • chrome-mv3/pages/new-tab/locales/pt/new-tab.json
  • chrome-mv3/pages/new-tab/locales/ru/new-tab.json
  • chrome-mv3/pages/new-tab/next-steps-list/add-dock-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/add-dock-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/customize-ntp-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/customize-ntp-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/duck-player-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/duck-player-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/email-protection-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/email-protection-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/import-passwords-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/import-passwords-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/pin-taskbar-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/pin-taskbar-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/set-default-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/set-default-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/subscription-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/subscription-light.png
  • chrome-mv3/pages/new-tab/next-steps-list/sync-dark.png
  • chrome-mv3/pages/new-tab/next-steps-list/sync-light.png
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-comic-default.jpg
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-comic-hover.jpg
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-photo-default.jpg
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-photo-hover.jpg
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-space-default.jpg
  • chrome-mv3/pages/new-tab/suggested-prompts/thumbnail-space-hover.jpg

❌ File only exists in new changeset

@BogdanLykhosherstov BogdanLykhosherstov self-assigned this Nov 26, 2026
Adds ExtensionMessagingConfig and ExtensionMessagingTransport for
extension pages. Notifications and requests go to the extension's
background service worker over a chrome.runtime.Port, which answers
requests on the same port. Subscription events arrive as
runtime.onMessage events, so the background can push without holding a
port open.

The port closes whenever the service worker stops, and the next message
reconnects. Messages are sent once: a request whose port closes before
the reply is rejected, not re-sent. A reply with a falsy result
resolves; only an error rejects.

Special pages built for chrome-mv3 use it over the `specialPages` port.
The New Tab Page gets a chrome-mv3 build target, and a color-scheme meta
tag so its first paint follows the browser's light or dark theme.

Asana: https://app.asana.com/0/0/1220753232884750/f/

Co-Authored-By: Shane Osbourne <shane.osbourne8@gmail.com>
@BogdanLykhosherstov
BogdanLykhosherstov force-pushed the bogdan/extension-messaging-transport branch from 0f91a12 to 1f3ac66 Compare November 26, 2026 20:50
@github-actions

Copy link
Copy Markdown
Contributor

Build Branch

Branch pr-releases/bogdan/extension-messaging-transport
Commit e6d65383e3
Updated November 26, 2026 at 8:52:00 PM UTC

Static preview entry points

QR codes (mobile preview)
Entry point QR code
Docs QR for docs preview
Static pages QR for static pages preview
Integration pages QR for integration pages preview

Integration commands

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#pr-releases/bogdan/extension-messaging-transport

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/bogdan/extension-messaging-transport")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/bogdan/extension-messaging-transport
git -C submodules/content-scope-scripts checkout origin/pr-releases/bogdan/extension-messaging-transport
Pin to exact commit

npm (Android / Extension):

npm i github:duckduckgo/content-scope-scripts#e6d65383e3be92f4bfed7e097f887da2e1ce7165

Swift Package Manager (Apple):

.package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "e6d65383e3be92f4bfed7e097f887da2e1ce7165")

git submodule (Windows):

git -C submodules/content-scope-scripts fetch origin pr-releases/bogdan/extension-messaging-transport
git -C submodules/content-scope-scripts checkout e6d65383e3be92f4bfed7e097f887da2e1ce7165

@BogdanLykhosherstov
BogdanLykhosherstov marked this pull request as ready for review November 26, 2026 21:07

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@BogdanLykhosherstov
BogdanLykhosherstov added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 04a5015 Nov 27, 2026
44 checks passed
@BogdanLykhosherstov
BogdanLykhosherstov deleted the bogdan/extension-messaging-transport branch November 27, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor New feature — triggers minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants