0 Favourites

C2 Javascript error on Firefox 42.0

  • Not sure where to post this, but it needs a javascript gurus eye, so........

    When recently updated FF to 42.0 (also latest Nightly build), C2 throws an error every time I tried to run preview in C2.

    The error is in 'preview_prelude.js' line 189:

    watch = JSON.parse(localStorage.getItem("__c2_watch") || "{}");[/code:1g8cde1r]
    
    REMming the line allows FF to preview without the security error.
    
    Rolling back to previous version of FireFox gets rid of error.
    
    Anyone have any ideas?
    
    Using r217, but tried r216 and same problem.  Considering that the datestamp on 'preview_prelude.js' is 26 Feb 2015, then it's obvious that this hasn't changed.
    
    *Edit*
    
    Ok. It's cookie related.
    
    I have always had cookies 'unticked' in firefox, and only allow those that I deem acceptable.  This is now causing a problem with FF.
    
    If I allow all cookies, then the error is gone. Not cool.
  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • R217 or r216? If it's the former then it might be associated with the NW.js save problem - there's nothing in the changelog about a local storage update in the beta though.... I'm not a JavaScript guru, however...

  • Good point. Should really add more relevant info :/

    Edited OP.

  • So it sounds like if you disable cookies in Firefox, accessing storage throws exceptions. (I don't know why they'd do that - returning empty results would be easier to support!) That line is the debugger trying to load from storage which items you added to the watch, which throws an exception. Post it to the bugs forum and I can try and make storage exception-proof.

  • Will do, Ashley.

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