Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
angu manikandan
Java Script Error in Firefox
25 febbraio 2013 1.32
Risposta

angu manikandan

Punteggio: Junior Member

Messaggi: 72

Data di Iscrizione: 16 luglio 2012

Messaggi recenti

[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 febbraio 2013 3.29
Risposta

Subhash Pavuskar

Punteggio: Regular Member

Messaggi: 234

Data di Iscrizione: 12 marzo 2012

Messaggi recenti

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.