[R139] WebStorage JS error in Internet Explorer 10

Bugs will be moved here once resolved.

Post » Sun Jul 21, 2013 4:30 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/23585053/web_store_test.capx

Steps to reproduce:
1. Create a project where you to save, retrieve or clear data from local web storage
2. Export to HTML5
3. Open IE10 and press F12 to see the developer console before opening your project.
4. Drag and drop your exported index.html into IE10
5. Execute event that interacts with WebStorage

Alternative steps:
1. Create a project where you to save, retrieve or clear data from local web storage
2. Export to Windows 8
3. Open solution with Visual Studio, create test certificate and debug solution in Local Machine (press F5)
4. Execute event that interacts with WebStorage

Observed result from IE10 in Windows 7 Pro 64-bit:
If trying to access value:[CODE]SCRIPT5007: Unable to get property 'getItem' of undefined or null reference
c2runtime.js, line 14278 character 3[/CODE]
If trying to clear values with "Clear local storage":
[CODE]SCRIPT5007: Unable to get property 'clear' of undefined or null reference
c2runtime.js, line 14234 character 4[/CODE]


Observed result from IE10 Metro when debugging with Visual Studio in Windows 8.1 Preview:
    Application crashes. Debugger shows the following:
When accessing values:
[CODE]SCRIPT12004: Unhandled exception at line 14278, column 3 in ms-appx://75e7f9e6-4e1e-44f4-97bf-f9f221de47c3/c2runtime.js
0x80072ee4 - JavaScript runtime error: An internal error occurred in the Microsoft Internet extensionsFile: c2runtime.js, Line: 14278, Column: 3[/CODE]
When clearing values with "Clear local storage":
[CODE]SCRIPT12004: Unhandled exception at line 14234, column 4 in ms-appx://75e7f9e6-4e1e-44f4-97bf-f9f221de47c3/c2runtime.js
0x80072ee4 - JavaScript runtime error: An internal error occurred in the Microsoft Internet extensionsFile: c2runtime.js, Line: 14234, Column: 4[/CODE]

Expected result:
    Data should be saved or retrieved from web storage without crashing or throwing JS errors.

Browsers affected:
Chrome: no
Firefox: no
Internet Explorer: yes

Operating system & service pack:
    Windows 7 Pro 64-bit / Windows 8.1 Pro Preview 64-bit

Construct 2 version:
    Release 139 stable 64-bit

Visual Studio version:
    Visual Studio 2013 Ultimate Preview

Notes:
The project works fine when running from Construct preview in Firefox in Windows 7.

Exported to HTML5 works on Firefox and Chrome.MakubeX2013-07-21 16:42:46
B
12
S
3
G
3
Posts: 36
Reputation: 3,048

Post » Mon Jul 22, 2013 3:01 pm

The issue with dragging an exported .html file in to the IE window is not a bug. Exported projects cannot be run from disk, they must be run from a server, so we can't fix anything that doesn't work when you run from disk.

I can't reproduce the issue with a Windows 8 app on Windows 8.0 (not preview). The preview is pre-release software so it's probably an IE bug which you should report to Microsoft.
Scirra Founder
B
382
S
223
G
86
Posts: 24,003
Reputation: 189,833

Post » Mon Jul 22, 2013 5:26 pm

@Ashley I didn't realize that HTML5 exports have to be run from a server. I thought that since it's client side scripting it would work directly from disk, like it does with Firefox and Chrome.

I'll install Windows 8.0 and try again.
B
12
S
3
G
3
Posts: 36
Reputation: 3,048


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests