Firefox c2 loadingprogress NaN

0 favourites
  • 2 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • Problem Description

    C2 Runtime loadingprogress variable corrupted as NaN on Firefox since the Gecko engine does not report

    e["loaded"] / e["total"]

    Attach a Capx

    ____ Upload a Capx to this post ____

    Description of Capx

    ____ Concise description of what this CapX does ____

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    Loading layout Progress indicator doesn't increase, can not be used to reliably identify loading progress

    Expected Result

    Code in c2runtime, should have a special condition for firefox, as the properties e["loaded"] / e["total"] are not available

    if (typeof window.applicationCache !== "undefined")


    window.applicationCache.addEventListener('updateready', function() {

    self.runtime.loadingprogress = 1;

    self.runtime.trigger(cr.plugins_.Browser.prototype.cnds.OnUpdateReady, self);


    window.applicationCache.addEventListener('progress', function(e) {

    self.runtime.loadingprogress = e["loaded"] / e["total"];



    Affected Browsers

    • FireFox: (YES)

    Operating System and Service Pack


    Construct 2 Version ID

    2r221 and earlier

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've changed the next build to return 0 in this case instead. Note the loading progress is not always guaranteed to be available, e.g. if the server does not provide the Content-Length header.

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