user167466
user167466

Reputation: 127

firefox extension don't have write permission on MAC OS X

I have a Firefox extension need to write to one files inside the extension's chrome folder, it works fine on windows and linux, but it give me 0x800520015 NS_ERROR_FILE_ACCESS_DENIED error. it is very strange, I manually set the file to have write permission, it works fine then.

My question is where should I set something to tell MAC OS to give write permission to that file.

Thanks.

Upvotes: 1

Views: 884

Answers (1)

Nickolay
Nickolay

Reputation: 32063

Which "chrome" folder (post the path)? If you're talking about application's chrome folder, it's a bad idea to write there; newer Windows will not let you do that either.

[edit] so if it's in the extension, you may have the wrong permissions set in your XPI file accidentally. You can change the permissions from your extension (see nsIFile.permissions) or create a proper ZIP while packaging. (Can you post the ZIP file to verify?)

Anyway, why do you want to write to extension's folder? It's usually a bad idea.

Upvotes: 2

Related Questions