Hi,
I’m using Firefox nightly and trying to create an extension using SQLite and OPFS. When I go to this URL in Firefox, I see the message “The OPFS is available.”.
When I convert that same example into an extension, and load it in Firefox nightly via web-ext, I get a message that OPFS is not supported.
In my manifest.json, I have the following lines:
"cross_origin_embedder_policy": {
"value": "require-corp"
},
"cross_origin_opener_policy": {
"value": "same-origin"
},
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
}
The COEP/COOP entries are supported in Chrome’s manifest.json since Chrome v93, but I don’t see any mention of them in Firefox’s documentation.
Is there some other way of specifying COEP/COOP for a Firefox extension?
Thanks