SnapshotPlugin 1.3.0 does not work on Firefox Mac

2 views
Skip to first unread message

Udo Borkowski

unread,
Jan 1, 2010, 11:00:01 AM1/1/10
to TiddlyWikiDev
One of my customers uses Eric's SnapshotPlugin and noticed it does not
work on Firefox Mac. I can confirm this observation (using Firefox
3.5.5).

I had a look at the code and found the following problem/fix:

In the askForFilename function this code retrieves the selected file:

var result=picker.file.persistentDescriptor;

On Mac this fails with:

error during local file access: [Exception... "Component returned
failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND)
[nsILocalFile.persistentDescriptor]" nsresult: "0x80520012
(NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///Users/ub/Desktop/TiddlyWiki-2.5.3-empty.html :: anonymous ::
line 2045" data: no]

However when using this code instead:

var result = picker.file.path;

the snapshot file is successfully written.


Eric: Feel free to use this fix in a new release of the plugin.

Udo

P.S.: I only have tested this on Mac, don't know if picker.file.path
also works fine on Windows/Linux/...

Reply all
Reply to author
Forward
0 new messages