Open limdingwen opened 6 months ago
It doesn't seem to work in Firefox Extensions. Both Manifest v2 and v3 are tested.
This error is created:
Error: Permission denied to access property "then"
Please see screenshots for the stacktrace; I can't seem to copy it.
const supabase = createClient(supabaseUrl, supabaseKey);
It is initialized.
It seems to be something to do with Firefox's XRay Vision. I heard it works in Chrome extensions.
According to this old bug report:
That usually means that you're not creating the Promise out of the right window object. Eg. in chrome JS, don't pass a |new Promise()| to content, but get the window object for the page and do |new pageWindow.Promise()|
Probably something to do with globalThis?
globalThis
I realise a possible issue is that I was running it in a content script, not a service worker.
Bug report
Describe the bug
It doesn't seem to work in Firefox Extensions. Both Manifest v2 and v3 are tested.
This error is created:
Please see screenshots for the stacktrace; I can't seem to copy it.
To Reproduce
Expected behavior
It is initialized.
Screenshots
System information
Additional context
It seems to be something to do with Firefox's XRay Vision. I heard it works in Chrome extensions.
According to this old bug report:
Probably something to do with
globalThis
?