Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
angu manikandan
Java Script Error in Firefox
25 de febrero de 2013 1:32
Respuesta

angu manikandan

Ranking: Junior Member

Mensajes: 72

Fecha de incorporación: 16 de julio de 2012

Mensajes recientes

[Exception... "'JavaScript component does not have a method named: "onProgressChange"' when calling method: [nsIWebProgressListener::onProgressChange]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: no]
Subhash Pavuskar
RE: Java Script Error in Firefox
25 de febrero de 2013 3:29
Respuesta

Subhash Pavuskar

Ranking: Regular Member

Mensajes: 234

Fecha de incorporación: 12 de marzo de 2012

Mensajes recientes

Hi Angu,

Not Sure there seems to be a bug in new JIT compiler ionMonkey that is released in firefox 18.0.
Putting the following directly in the beginning of the Ext.onReady function.

 1Ext.onReady(function(){
 2
 3   if (Ext.firefoxVersion >= 18) {
 4      var noArgs = [];
 5      Ext.override(Ext.Base, {
 6      callParent : function(args) {
 7         var method, superMethod = (method = this.callParent.caller) && (method.$previous || ((method = method.$owner ?
 8method :
 9method.caller) && method.$owner.superclass[method.$name]));
10
11         // Workarround for Firefox 18. I don't know why this works, but it does. Perhaps functions wich have
12         // a try-catch block are handled differently
13         try {
14         } catch (e) {
15         }
16
17         return superMethod.apply(this, args || noArgs);
18      }
19     });
20  }


Another fix is to disable the ion compiler.
Type about:config in the address of the browser, search for javascript.options.ion.content and disable it by clicking on it.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!