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
Operating System and Service Pack
PC
Construct 2 Version ID
2r221 and earlier