Very interesting, but why is the password optional? Doesn't it mean that someone with access to the S3 bucket can decrypt the data?
Note that the anchor tag part does not leave the browser so it is one of the clever thing firefox send used to share some id/key. You can double check it in the network tab ;) If you are worry about that key being leaked somehow, adding a password ontop is a good measure.