[R139] WebStorage JS error in Internet Explorer 10

0 favourites
  • 3 posts
From the Asset Store
Creepy Sprite Font suitable font for your Dark/Horror/Halloween games.
  • Link to .capx file (required!):

    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:

    SCRIPT5007: Unable to get property 'getItem' of undefined or null reference 
    c2runtime.js, line 14278 character 3

    If trying to clear values with "Clear local storage":

    SCRIPT5007: Unable to get property 'clear' of undefined or null reference 
    c2runtime.js, line 14234 character 4

    Observed result from IE10 Metro when debugging with Visual Studio in Windows 8.1 Preview:

        Application crashes. Debugger shows the following:

    When accessing values:

    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

    When clearing values with "Clear local storage":

    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

    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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)