LocalStorage bug in Firefox (up-to-date) with capx

Bugs will be moved here once resolved.

Post » Mon Sep 07, 2015 4:28 pm

Problem Description
The LocalStorage object doesn't work in Firefox (version 41.0b7, was the same with 39 and 40)

Attach a Capx
http://www.ID-Games.net/TesTLS/ (Your template says attach/upload I can't find a way to do this...what do I miss?)

Description of Capx
And empty project that "set" a LocalStorage object after 3 seconds and then verify if it's set and then "get" it.
The second line of text turn green when the item is "get" and show the key's value.

Steps to Reproduce Bug
  • Step 1: Add a LocalStorage Object and set one.
  • Step 2: On item set it...
  • Step 3 On item get it...

Observed Result
It works well in IE and Chrome but returns an error in Firefox. (see screenshots at the end of this post)

Expected Result
The item is "get" and the text return the value and turns green.

Affected Browsers
  • Chrome: (NO)
  • FireFox: (YES)
  • Internet Explorer: (NO)

Operating System and Service Pack
Windows 7 (SP1)

Construct 2 Version ID
212.2 (64 bits)

Image showing the error msg in C2 Inspector:
Image
(The inspector says that the LocalStorage is "Loading..." when I click on it in Firefox.)
Image
Image

Image showing the expected result:
Image
I made 2 games so far: www.ID-Games.net
B
11
S
2
Posts: 54
Reputation: 1,403

Post » Tue Sep 08, 2015 4:24 pm

Closing as can't reproduce: it works correctly in Firefox Nightly here. As per the previous report it seems to be a Firefox bug, and one workaround is to create a new Firefox profile.
Scirra Founder
B
399
S
236
G
89
Posts: 24,529
Reputation: 195,390

Post » Tue Sep 08, 2015 4:46 pm

Can you tell me how to do this?

A real in-code workaround would have been great because...I can't ask all my visitors to create a new Firefox profile... :/ It's not really user-friendly...

No problem before with WebStorage...
I made 2 games so far: www.ID-Games.net
B
11
S
2
Posts: 54
Reputation: 1,403


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests