TRE crashes in Firefox

3 views
Skip to first unread message

Mike Baranczak

unread,
Mar 24, 2011, 2:35:40 PM3/24/11
to The Render Engine
I see this error in the console upon startup:

Security error" code: "1000
[Break On This Error] "local" : (typeof localStorage !== "undefined"),
engine.js (line 1636)

This happens in every single one of the demos that I tried to start.
I'm sure that it's not happening for every Firefox user out there, or
somebody would have noticed. So what's going on?

-MB

bfat...@gmail.com

unread,
Mar 24, 2011, 3:09:19 PM3/24/11
to The Render Engine
What version of Firefox are you using? localStorage has been in since
Firefox 3.5. How are you getting to the demos? Are you just loading
the index file in the URL, or do you have a server (either Jibble or
Tomcat) set up? This will not work if you go to "file:///" addresses.

- Brett

Mike Baranczak

unread,
Mar 24, 2011, 4:11:57 PM3/24/11
to The Render Engine
I'm using 4.0. I'm getting to the demos by following the links on your
website - nothing exotic at all. I see the same thing on http://pistolslut.com/.

If localStorage was simply unavailable, then there shouldn't be any
problem with just checking if it's undefined - right?

Mike Baranczak

unread,
Mar 24, 2011, 4:55:26 PM3/24/11
to The Render Engine
It's a Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=389002
If cookies are disabled for the current site, then merely trying to
access the localStorage variable will cause an error. I had Firefox
set up to deny cookies unless I add an exception; after I turned the
cookies back on, everything worked.

You might want to add a work-around for that, since it looks like
several versions of Firefox are affected. Maybe check if cookies are
enabled before checking localStorage.

-MB

Brett Fattori

unread,
Mar 24, 2011, 4:57:11 PM3/24/11
to the-rend...@googlegroups.com
I just tried each of the demos in Firefox 4.0 and every one of the known working demos came up.  Some of the 2.0 demos might not work because they are being run out of the development repo.  Checking if the type of the object is the string "undefined" shouldn't be a problem, but I do recall running into an issue with sessionStorage.  In fact, if I bring up Firebug and type in: "typeof sessionStorage", I get an NS Exception the first time I try it.  Second time around, it works fine.  Obviously, something is wrong in the browser as all I'm doing is a simple check.

- Brett




--
You received this message because you are subscribed to "The Render Engine" group.
To post to this group, send email to the-rend...@googlegroups.com
To unsubscribe from this group, send email to
the-render-eng...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/the-render-engine?hl=en

Brett Fattori

unread,
Mar 24, 2011, 4:57:55 PM3/24/11
to the-rend...@googlegroups.com
Good point, thanks for helping me to figure that out.

- Brett
Reply all
Reply to author
Forward
0 new messages