[TW5] "SecurityError: The operation is insecure." when trying to save (Firefox on OS X)

713 views
Skip to first unread message

Christian Platzer

unread,
Jul 3, 2014, 1:27:47 PM7/3/14
to tiddl...@googlegroups.com
When I try to save (either by clicking the download button, or whenever I make an edit while autosave is on), I get the following error message:

Internal JavaScript Error

Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
SecurityError: The operation is insecure.

The Tiddler is edited successfully, but I am unable to download/save any changes to a file.

My system:
TiddlyWiki 5.0.13-beta
Firefox 30.0
OS X Version 10.9.3

I tried installing the TiddlyFox extension - but I still get the same error message whether it is installed or not (I do get the popup from TiddlyFox that asks me to allow file system access, but afterwars I end up with the same error message from TiddlyWiki again).

Christian Platzer

unread,
Jul 3, 2014, 4:52:51 PM7/3/14
to tiddl...@googlegroups.com
PS: Below is the console output I receive when going to http://tiddlywiki.com/empty.html and clicking the download button:

SecurityError: The operation is insecure. empty.html line 4506 > eval:109
"SecurityError: The operation is insecure." empty.html:4217

Perhaps the line numbers can help narrowing this down...

Christian Platzer

unread,
Jul 4, 2014, 3:29:56 PM7/4/14
to tiddl...@googlegroups.com
Update: I think I found what's causing the problem for me. It is my cookie settings in Firefox:

the error message occurs if the cookie settings are set to never allow cookies - or if they are set to always ask.
If I set my cookie settings to allow all cookies, saving tiddly wiki works flawlessly.
Also, if I set an exception to always allow cookies from "tiddlywiki.com", I can edit tiddlers on that website without problems.
However, Firefox doesn't allow me to set such an exception for local files. So I would still have to allow cookies globally in order to be able to use a local tiddly wiki.

Is there any way to stop tiddly wiki from trying to create a cookie when saving?

Stephan Hradek

unread,
Jul 4, 2014, 5:11:43 PM7/4/14
to tiddl...@googlegroups.com
Would it help to allow cookies but not from third party? If I understand this correct, this will only allow cookies to be set for the site you're visiting and not from any flash or javascript or gif the page is loading from some ad-server.

Christian Platzer

unread,
Jul 5, 2014, 4:13:31 AM7/5/14
to tiddl...@googlegroups.com
Yes, tiddlywiki still works if I disallow 3rd party cookies.
But still I would prefer if tiddlywiki was working with all possible cookie settings - or at the very least if it would give a more useful error message in this case ("Please allow cookies" instead of "Internal JavaScript Error")

Stephan Hradek

unread,
Jul 5, 2014, 5:37:51 AM7/5/14
to tiddl...@googlegroups.com


Am Samstag, 5. Juli 2014 10:13:31 UTC+2 schrieb Christian Platzer:
But still I would prefer if tiddlywiki was working with all possible cookie settings

Agreed. If @Jeremy doesn't see this, why not hop over to github to open an issue there?

Jeremy Ruston

unread,
Jul 5, 2014, 7:28:23 AM7/5/14
to TiddlyWiki
Hi Christian

TiddlyWiki5 doesn't use cookies at all, so this is quite strange. Have you got any other Firefox extensions loaded that may be interfering with TiddlyFox?

Best wishes

Jeremy


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Christian Platzer

unread,
Jul 5, 2014, 12:44:16 PM7/5/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

even with a brand new Firefox profile (which should be perfectly blank, without any addons or plugins), the error occurs as soon as I change the cookie settings.
I can also reproduce the same problem on my second computer (Window 8 32bit), so it seems to be independent of the operating system as well.
Also, it happens regardless of whether TiddlyFox is installed or not.

Can't you reproduce the error at all?
The only special thing about my configuration that I can think of is that I am using German language and unit formatting (for my OS and Firefox - tiddlywiki is set to the default English language).

Stephan Hradek

unread,
Jul 5, 2014, 2:07:46 PM7/5/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
FF30.0 Windows. Portable FF Edition English. Blank TW5

Error confirmed when disallowing cookies.

Jeremy Ruston

unread,
Jul 6, 2014, 5:11:51 AM7/6/14
to Stephan Hradek, TiddlyWiki
OK, it took me about 5 minutes to discover how to turn off cookies in Firefox (grrr) but I can now duplicate the error.

It turns out that the problem is that when cookies are disabled Firefox fails access to localStorage with an error:


I've fixed it for 5.0.14:


Best wishes

Jeremy




On Sat, Jul 5, 2014 at 7:07 PM, Stephan Hradek <stephan...@gmail.com> wrote:
FF30.0 Windows. Portable FF Edition English. Blank TW5

Error confirmed when disallowing cookies.



Reply all
Reply to author
Forward
0 new messages