Fórum
Java Script Error in Firefox
angu manikandan, modificado 11 Anos atrás.
Java Script Error in Firefox
Junior Member Postagens: 72 Data de Entrada: 16/07/12 Postagens Recentes
[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 11 Anos atrás.
RE: Java Script Error in Firefox
Regular Member Postagens: 234 Data de Entrada: 13/03/12 Postagens Recentes
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.