Foros de discusión
Java Script Error in Firefox
angu manikandan, modificado hace 11 años.
Java Script Error in Firefox
Junior Member Mensajes: 72 Fecha de incorporación: 16/07/12 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, modificado hace 11 años.
RE: Java Script Error in Firefox
Regular Member Mensajes: 234 Fecha de incorporación: 13/03/12 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.
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.
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.
Ext.onReady(function(){
if (Ext.firefoxVersion >= 18) {
var noArgs = [];
Ext.override(Ext.Base, {
callParent : function(args) {
var method, superMethod = (method = this.callParent.caller) && (method.$previous || ((method = method.$owner ?
method :
method.caller) && method.$owner.superclass[method.$name]));
// Workarround for Firefox 18. I don't know why this works, but it does. Perhaps functions wich have
// a try-catch block are handled differently
try {
} catch (e) {
}
return superMethod.apply(this, args || noArgs);
}
});
}
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.