Looks like we can't reproduce the issue or there's a problem in the test case provided.
-
Sencha User
Application hungs in FireFox version >= 39
Ext version tested:
- Ext 5.1.1.451
- Ext 5.1.0.107
- Ext 6.0.0.640
- Ext 6.0.1.250
Browser versions tested against:
DOCTYPE tested against:
Description:
ExtJs application hungs up during start up in Firefox versions 39, 40, 41 when doing Ext.Object.freeze(this) in root controller init method.
When using ExtJs v.5.0.1.1255 application loads just fine.
Steps to reproduce the problem:
The result that was expected:
The result that occurs instead:
-
I don't really think it's reasonable to expect this to be possible. It would be dictating that Ext written classes wouldn't be able to modify their internal state at any arbitrary point. Imagine:
Code:
Ext.define('Foo', {
extend: 'Ext.Component',
initComponent: function() {
Ext.Object.freeze(this);
this.callParent();
}
});
The methods in Ext.Object are typically meant for use with object literals.
What's likely happening in your example is that freeze is preventing the _init flag from being set on the controller, so it is never able to fully initialize and ends up in a loop trying to do so.
Twitter - @evantrimboli
Former Sencha framework engineer, available for consulting.
As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.