Is there a way to make `clipboard.writeText()` work even for "moz-extension://"(javascript on popup)?

The what? :smiley:
I’m just interpreting the error - clipboard write was blocked due to lack of user activation. This means that you can’t use clipboard.write API outside of a ā€œuser-actionā€ handler.
So if you want to write to clipboard, you can only do it in a event handler that handles some user action, like a button click.

This is a security measure to prevent extensions from changing your clipboard when you are not interacting with the extension.

Can you share the piece of code that sets your clipboard? And when does it run? And is it executed in an async function?