Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
angu manikandan
Java Script Error in Firefox
February 25, 2013 1:32 AM
Answer

angu manikandan

Rank: Junior Member

Posts: 72

Join Date: July 16, 2012

Recent Posts

[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
February 25, 2013 3:29 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

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!