Hi Okido

Good to hear of your progress.

When it is enabled on a TiddlyWiki document, TiddlyFox already injects a
file of JavaScript:

https://github.com/TiddlyWiki/TiddlyFox/blob/master/content/inject.js

Can you override the getFileList function in the same way that it already
overrides the mozillaSaveFile, mozillaLoadFile etc functions?

A further consideration is that we need to be careful about extending
TiddlyFox too randomly, lest it becomes a vector for security threats.
Right now, TiddlyFox lets TW save files to arbitrary locations
(XMLHttpRequest is used for loading files, so TiddlyFox doesn't change
anything from a security perspective).

At first I felt that TiddlyFox should be restricted so that it only writes
to the host HTML file itself, and that backup creation be delegated to
TiddlyFox itself. Given the number of useful things that that would break,
I now think it makes more sense for TiddlyFox to sandbox the host TW to
only be able to write to its own folder (and subfolders). I think we may
need the same restriction on directory listing.

Best wishes

Jeremy



On Wed, Aug 14, 2013 at 4:00 PM, okido <[email protected]> wrote:

> Hello Jeremy and others,
>
> This thread is a branch from this 
> post.<https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/oB8RlyPAuuw>
> I made some modifications to TFox so I can read file names in directories
> from the local file system with TWc and FF22.
> The issue is now that I need to overload the getFileList function somehow
> and format the data in the right structure.
>
> Would injecting a systemConfig tiddler from TFox with the right code a
> good option maybe?
>
> In this way I keep tiddler and FireFox addon code in one file, probably
> would rename it to TiddlyDir.
>
> Would this injecting mechanism also be useful to serve as a repo for all
> kinds of tiddlers so that you are always working with the latest version?
>
> Thanks, Okido
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to