Reply
Thread Tools
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#1
This is a problem I would like to solve specifically for using a TiddlyWiki, in my case the Tiddly Wiki with the Tablet-oriented UI created as nWiki by mucahidz.

Someone who knows JavaScript or Mozilla configuring better than I do may be able to figure it out from Mozilla's configurable security policies. lbalogh, on this forum, already used that information to selectively disable JavaScript.

I can't use his solution, however, since I want JavaScript enabled for the TiddlyWiki, I just don't want to keep getting these warnings (which show up four times every time I save my TiddlyWiki):

Javascript confirmation

A script from "file://" is requesting enhance abilities that are UNSAFE and could be used to compromise this device or your data:
Run or install software on device
Allow these abilities only if you trust this source to be free of viruses or malicious programs.
Then it asks me to click OK or Cancel. Four times!

Any help would be greatly appreciated.
 
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#2
1st shameless bump.

(Has everything not about the N900 in this forum just been left behind?? <whine> )
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#3
noAccess: web sites can never access this property or call this function.
sameOrigin (default): web sites can access this property, but only for pages on the same site. See this document for an explanation of how Mozilla determines whether two pages have the same origin.
allAccess: a web site can access this property within the same site and on any other site.
So you want

user_pref("capability.policy.policynames", "tiddywiki");
user_pref("capability.policy.default.javascript.en abled", "sameOrigin");
user_pref("capability.policy.tiddywiki.sites", "http://yourtiddy.com/wiki");
user_pref("capability.policy.tiddywiki.javascript. enabled", "allAccess");
The italic line should not be necessary as it is the default. It is added for clarity.

First bold = your policy name
Second bold = your URL
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#4
Thank you, allnameswereout, for posting a solution -- but I didn't use it since first I came across this solution (posts 4 and 5), which worked:

http://talk.maemo.org/showthread.php?t=21620
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:55.