Skip to content

fix(supabase): resolve Firefox extension cross-context Promise error#2033

Merged
mandarini merged 1 commit into
supabase:masterfrom
7ttp:fix/firefox-extension-promise-error
Jan 20, 2026
Merged

fix(supabase): resolve Firefox extension cross-context Promise error#2033
mandarini merged 1 commit into
supabase:masterfrom
7ttp:fix/firefox-extension-promise-error

Conversation

@7ttp

@7ttp 7ttp commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Firefox extensions throw "Permission denied to access property 'then'" when initializing Supabase client with custom accessToken option.

Problem

Firefox's XRay Vision security prevents direct .then() access on Promises from different security contexts
(background script vs content script).

Solution

Wrap accessToken() Promise with Promise.resolve() to create a new Promise in the current context before chaining.

Related

@7ttp 7ttp requested a review from a team as a code owner January 19, 2026 13:32
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 80.997%. remained the same
when pulling e38d90c on 7ttp:fix/firefox-extension-promise-error
into 09aa106 on supabase:master.

@mandarini mandarini merged commit ea2f722 into supabase:master Jan 20, 2026
24 checks passed
@7ttp 7ttp deleted the fix/firefox-extension-promise-error branch January 25, 2026 14:12
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.

Error: Permission denied to access property "then" for Firefox Extensions

3 participants