Repository navigation
Limitations and FAQ
An honest catalog of what conversion cannot fix. Almost everything on this page is a Safari / WebKit / Apple platform constraint, not an aqueduct bug. aqueduct's job is to document these clearly, stub what it can so the extension still loads, and point you at the real remediation, so you don't file a bug for something no shim can change.
If something here bites you, please don't open a conversion bug. Read the remediation, and if you still think it's wrong, use the issue taxonomy at the bottom to pick the right template.
-
Limitations, what conversion can't fix
- Blocking
webRequestcan't block in Safari chrome.identity/ hardcoded OAuth redirect can't complete login- A site's
frame-ancestorsallowlist cannot name a Safari extension storage.syncdoesn't sync across devices- Native messaging has no host manifest / host binary
declarativeNetRequestheader rules do nothing in Safari- APIs with no Safari equivalent are stubbed
- Platform-internal issues that are NOT converter bugs
- Code evaluated in a
sandboxpage can't run runtime.idis a bundle id, not a URL host- No bookmarks API
- Blocking
- Requirements
- FAQ
- Issue taxonomy, which template to file
Each entry below follows the same shape: What breaks, Why (the platform reason), Real fix.
What breaks. Ad/content blockers built on the blocking form of webRequest, full uBlock Origin, AdGuard's blocking engine, and similar, do not block network requests in Safari. The extension still installs, and its cosmetic / element-hiding features (CSS injection that hides ad slots) still run. aqueduct reports this class of extension with an error.
Why. WebKit decides whether to allow, redirect, or cancel each request before any extension JavaScript runs, and it ignores the blocking return value your listener produces. The decision happens below the JS layer, so there is nothing for a shim to intercept, no polyfill can change an outcome that is already decided by the time your code executes.
Real fix. Convert the extension's declarativeNetRequest build instead. Safari honors DNR rulesets, so a DNR-based blocker blocks for real once converted. For uBlock Origin specifically, that means uBlock Origin Lite (uBOL), which ships as a pure-DNR extension. Convert uBOL, not full uBO. (dbe3442 added the analyzer flag for this class; 644e97e documents the uBO → uBOL guidance.)
What breaks. Extensions that authenticate with chrome.identity (launchWebAuthFlow / getAuthToken) or a hardcoded chrome-extension:// OAuth redirect URI cannot complete login after conversion. The shim stubs the call so it rejects cleanly instead of throwing, but the sign-in still fails.
Why. The OAuth client is registered on the identity provider's server against the original Chrome extension's identity and chrome-extension:// scheme. Safari can't reproduce that origin, every install gets its own per-install origin, so the redirect the provider expects never matches. This is registered state on someone else's server, not anything in your bundle.
Real fix. The provider has to register a Safari-compatible redirect or a hosted HTTPS callback flow. This cannot be fixed by conversion alone. See OAuth Bridge for the redirect patterns aqueduct supports and how to wire a hosted callback.
What breaks. An extension page that embeds a first-party site in an iframe comes up blank, with Refused to load https://… because it does not appear in the frame-ancestors directive of the Content Security Policy in that page's console. Anything the extension does inside the frame is unreachable, including whatever UI lives there.
Why. The site decides who may embed it, and the list is written for Chrome. claude.ai serves this on the panel URL its extension embeds:
frame-ancestors 'self' chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn
chrome-extension://dngcpimnedloihjnnfngkgjoidhnaolf
A converted extension page is safari-web-extension://<per-install UUID>, which is not on that list and cannot be added to it: the UUID differs per install, and the header comes from the site's server. Nothing in the bundle influences the check.
Stripping the header is not available either: Safari's declarativeNetRequest accepts a header rule and then never applies it (see limitation 5). The native-host retry covers blocked API requests, not a frame navigation the browser refuses before any request leaves.
Real fix. The site adds a source the Safari origin can match, frame-ancestors safari-web-extension: being the practical one, since per-install UUIDs make an exact origin impossible. Until then, look for a non-embedded mode: the embed is often a newer opt-in path with the older native UI still shipping beside it. Claude for Chrome is exactly that shape. Up to 1.0.91 its options page carried a "New side panel experience" toggle whose off position restored the classic panel; 1.0.94 dropped the toggle and serves the choice from its feature-flag endpoint, but still renders the classic panel when its page is opened with ?mode=window, the URL its own scheduled tasks use. aqueduct derives that query from the bundle at conversion (the windows.create form of the panel page) and opens the popover with it, so a plain conversion gets the classic panel, which signs in and runs; --panel-query overrides it (CLI Reference). For that extension the frame-ancestors list is not even the first blocker: the panel's cookie probe (claude.ai/api/bootstrap from the extension origin) comes back anonymous in Safari, and the framed page itself only talks to a host whose origin matches a Chrome id. Safari Quirks E11 carries the measurements.
What breaks. chrome.storage.sync reads and writes keep working, and data persists: but it does not sync across a user's devices.
Why. aqueduct maps storage.sync onto storage.local because Safari has no iCloud-backed sync surface for web extensions. Local persistence is preserved; cross-device replication is simply not available on the platform.
Real fix. None at the extension layer for true sync. If cross-device state is essential, back it with your own hosted sync service. For most extensions, local persistence is enough and no action is needed.
What breaks. chrome.runtime.connectNative / sendNativeMessage have no Chrome-style host manifest and no separate host binary in Safari. The analyzer flags any use.
Why. Safari routes native messages to the containing macOS app, not to a standalone host process registered by a JSON manifest. There is no equivalent of Chrome's native-messaging host registration.
Real fix. aqueduct ships a native-messaging broker (the container app runs a loopback broker that can launch a Chrome native-messaging host from its on-disk manifest and pipe the stdio framing; the sandboxed app extension relays to it). But the broker only carries the frames, you implement the actual response in the app's SafariWebExtensionHandler (its beginRequest method). The permission stays; the host model changes. See Build and Install for where the handler lives in the generated Xcode project. (Broker added in 05cc244; usage flagging in a9c2e80.)
What breaks. Every modifyHeaders rule, in both static rulesets and dynamic updateSessionRules / updateDynamicRules calls. Spoofing User-Agent or Referer, stripping Cookie, injecting an auth header, a CORS bypass, removing X-Frame-Options — none of it converts. Every other rule in the ruleset is kept and works.
Why. Safari accepts such a rule, stores it and lists it back, and then never applies it to a request. Measured on Safari 26.6.2 against a live server, with a block rule in the same call blocking correctly as the control — so the rule list is compiled and live and the header action alone is inert. Response headers are not implemented at all (WebKit bug 263818), and a header name off WebKit's 93-name allowlist makes the call throw synchronously, which would abort the extension's own registration code. Full evidence table in Safari Quirks D1.
Real fix. Move the header rewrite to a native-messaging proxy — the native host fetches server-side and can set anything. There is no in-browser substitute: JS cannot set forbidden headers, blocking webRequest cannot rewrite them, and DNR ignores them.
Two related DNR warnings (rules are dropped, not crashed):
-
regexFilter: Safari supports only a limited regex subset and silently drops any rule it can't compile. aqueduct warns when a ruleset usesregexFilterso you know coverage may be incomplete. - Rule-count overflow: enabled static rules over the count Safari honors (~the documented static-rule guideline, ~30,000) are ignored by Safari; aqueduct warns.
What breaks. Chrome APIs that Safari simply doesn't implement (e.g. chrome.declarativeContent, and others in the compat table) are stubbed so the extension loads and doesn't throw, but the underlying feature doesn't work. For example, declarativeContent rules never fire (the shim stubs the rule constructors so registration succeeds silently).
Why. A stub is the least-bad option: without it, the missing API throws on first access and can take the whole extension down at load. Stubbing keeps the extension alive; it can't conjure a capability WebKit doesn't have.
Real fix. The analyzer reports each stubbed API with a suggested remediation: read that output; it's per-API. See Runtime Shim for what each stub does and Analyzer for how to read the report.
Some failures you'll see in Safari originate inside WebKit / the OS, downstream of anything aqueduct touched. They surface during real-world debugging of converted extensions, and chasing them in the converter is wasted effort, the extension's bundle is correct; the platform is imposing its own rules. Document them, don't file conversion bugs:
- WebAuthn / passkey RPID mismatches. The relying-party ID the site asserts doesn't match the origin Safari presents for the extension context, so a passkey ceremony fails. This is origin/RPID policy enforced by WebKit + the authenticator, not a manifest or shim defect.
-
WASM-SDK / dynamic chunk loaders. aqueduct already handles the common cases, webpack's async chunks are pre-registered in
background.htmlso chunk loading keeps working, andwasm-unsafe-evalis preserved (Safari supports WebAssembly compilation and, unlike'unsafe-eval','wasm-unsafe-eval'does not enableeval()). SDKs that fetch or compile WASM in ways WebKit refuses are a WebKit limitation, not a conversion failure. -
Webfont CSP refusals. Safari refusing to load a webfont because of a strict/mismatched
font-srcis a CSP decision by the browser, independent of conversion.
If you hit one of these, treat it as a platform report (or a site/SDK issue), not an aqueduct conversion bug.
Safari doesn't sandbox the pages in sandbox.pages, and evaluating a string there is refused even though the page's own CSP allows it. An extension that downloads code and runs it there (Zotero Connector's site translators) loads and then can't do its job. See Safari Quirks A11.
Safari's runtime.id is the app extension's bundle id, for example com.viaduct.Foo.Extension (TEAMID) (the default com.viaduct. prefix predates the rename and was kept so reinstalls keep the same id). aqueduct rewrites the common ways bundles compare it against URLs, but code that drops it into a CSS selector or an HTML attribute unquoted gets an invalid selector. Hypothesis does that in its boot script, and its sidebar never starts.
Safari has no chrome.bookmarks. The shim keeps an in-memory tree so the API answers, but it isn't Safari's bookmarks, so a bookmark sync extension like Floccus has nothing real to sync.
Recapping what you need to run aqueduct at all:
-
macOS with a full Xcode install: not just the Command Line Tools. The packaging and build steps call
xcrun safari-web-extension-packagerandxcodebuild, which ship with Xcode. (This is also why aqueduct is macOS-only: there is no Xcode on Windows or Linux.) - Node.js 18 or newer.
-
No runtime dependencies. TypeScript and
@types/nodeare the only dev dependencies.
Verify your toolchain any time:
aqueduct --doctor
--doctor checks that Xcode (not just CLT), the packager, and xcodebuild are present and reports what's missing. See CLI Reference for its full output.
Expected for ad-hoc (unsigned) builds. Without --team, Safari only loads the extension while "Allow Unsigned Extensions" (Develop menu) is on, and that toggle resets every time Safari restarts. With --install, aqueduct sets the toggle and bounces Safari for you (pass --no-safari-restart to skip the bounce).
For persistence across restarts, team-sign it: --team (or --team auto, or plain --install, which auto-detects your Team ID from Xcode or your signing certificate). A team-signed build loads without the unsigned toggle and survives quitting Safari. See Build and Install.
Safari does not dispatch action.onClicked on the toolbar button. aqueduct wires a workaround at convert time: if your background registers action.onClicked, it installs a synthetic popup that replays the click to your listeners on open (a brief popover), or an in-page hotkey path that avoids the popover entirely.
The catch: the bridge only fires listeners it can statically determine at convert time. If your click handler is registered dynamically or indirectly, aqueduct can't see it to bridge it. Check that your action.onClicked registration is a statically-determinable message. See Safari Quirks.
Usually one of two dynamic-URL problems:
-
use_dynamic_url: trueonweb_accessible_resources. This is Chrome-only; in Safari the resource fails to serve andchrome.runtime.getURL()hands back an unservable URL, so the panel 404s silently. aqueduct clears it (setsuse_dynamic_url: false) so the resource loads at its static extension URL. If you're on an older conversion, re-convert. - The general dynamic-URL 404 class: a page requested at a rotated/dynamic URL that Safari never registered. Point the UI at the static extension URL.
No, macOS only. Conversion depends on Xcode (safari-web-extension-packager, xcodebuild), which only exists on macOS. There is no Windows or Linux path.
No, not for development. For local dev / temp-load, no signing account is needed. For a build that persists across Safari restarts, use team signing (--team). The App Store is only for distribution to other users, not required to run your own converted extension.
In Safari → Settings → Extensions. Safari has no chrome://extensions/shortcuts page. Note also that Safari honors at most 4 command shortcuts with a suggested key; if your extension declares more, aqueduct keeps the first four's default chords and strips the rest's, those commands still exist and stay bindable by the user in Safari → Settings → Extensions, they just ship without a default shortcut. Shortcuts also require a Ctrl/Command/Alt modifier or Safari ignores them.
Use the DNR-based build, not the blocking-webRequest one. For uBlock Origin that means uBlock Origin Lite (uBOL). Full uBO's blocking can't work in Safari (see Limitation #1); uBOL blocks for real because Safari honors DNR rulesets.
--temp-load. It stages the extension for Safari 18+'s "Add Temporary Extension" (Develop menu), no Xcode build, no signing, fastest edit-reload loop:
aqueduct ./my-extension.zip --temp-load
Then in Safari: Settings → Developer → enable "Allow Unsigned Extensions", then Develop → "Add Temporary Extension". See Testing and Debugging.
A free personal Apple team works, but its provisioning profile expires about every 7 days: just re-run the command to re-sign. A paid Apple Developer Program account lasts about a year. Auto-detection picks a team Xcode holds an account for (IDEProvisioningTeamByIdentifier / IDEProvisioningTeams, in both the com.apple.dt.Xcode and com.apple.dt.xcodebuild domains) or one with a codesigning identity in your keychain. The provisioning profiles on disk only choose among those, newest first; a profile never nominates a team on its own, because profiles outlive the account that installed them. Only when neither source has a team does the build drop to ad-hoc signing.
Xcode caches the team id only after it has provisioned something, and it does not create a development certificate until the first signed build, so a freshly added account can leave every on-disk source empty. Open Xcode → Settings → Accounts, select the account, Manage Certificates → + → Apple Development; that writes both the certificate and the cached team, and the next run detects it. Or skip detection entirely and pass the id: --team <TEAMID>, from developer.apple.com → Account → Membership details.
Until a team is found the run still completes — it warns, falls back to ad-hoc, and exits 0. Only a team that reached xcodebuild and came out ad-hoc anyway is a failure.
Something on your Mac is removing the old app from macOS's app registry while aqueduct replaces it. Safari then treats the reinstall as an uninstall followed by a fresh install and deletes the extension's saved data, sign-in included. Seen live with Replacicon (the icon-customizing app): when an app bundle is replaced, Replacicon fails to resolve its saved link to the old copy and unregisters the app. The system log shows the sequence: log show --last 10m --predicate 'process CONTAINS "Replacicon" OR (process == "lsd" AND eventMessage CONTAINS "will unregister")', then nehelper … Received an apps uninstalled notification with bundle IDs (com.viaduct.<Name>). Quit the tool while you install. After such a wipe the extension runs its first-install behavior once, as Chrome would on a fresh install; if a later reload strands the page bridge in the sign-in tab it opened, aqueduct reloads that tab (Safari Quirks E17).
The three issue templates on Viaduct-CLI, where aqueduct bugs are filed, encode a real failure taxonomy. Pick the one that matches your symptom: filing under the wrong one slows triage, and many "bugs" are the platform limits above.
| Your situation | Template | What to include |
|---|---|---|
| The extension failed to convert: aqueduct exited with an error and produced no working output. |
Conversion Failure (conversion-failure) |
The Chrome extension (.zip or Chrome Web Store URL), the full terminal error output (paste it all), and your OS & Xcode version (e.g. macOS 15.2, Xcode 16.2). |
| It converted fine but misbehaves in Safari: no conversion error, wrong runtime behavior. |
Converted but broken (bug) |
Extension name/version, expected vs actual behavior (with Safari console errors), exact steps to reproduce (convert command → load → …), and Safari & macOS version. |
| You want a capability aqueduct doesn't have yet. |
Feature request (enhancement) |
The problem/motivation (what you can't do today), a proposed solution, and any alternatives / workarounds you tried. |
Before filing anything, check this page: if your symptom is a documented limitation (blocking webRequest, chrome.identity OAuth, storage.sync not syncing, DNR header rules being inert, a stubbed API, or a WebKit-internal issue), it is working as designed and a bug report won't change the platform. The right move there is the listed remediation, or a Feature request if you have a concrete idea for a bridge aqueduct could add.
See also: OAuth Bridge · Build and Install · Safari Quirks · Manifest Transform · Runtime Shim · Analyzer · CLI Reference · Testing and Debugging
Aqueduct · @magicelk235/aqueduct · PolyForm Shield 1.0.0 · Verified against src/ and grounded in git history.