In Firefox F29,after debugging my add-on i found the error message as 'ERROR: Attempt to use .WrappedJSObject in untrusted code.What am I supposed to do now?

It worked totally fine till FF28. I feel that it is an issue related to getting connected to XPCOM from Javascript.So my webpage is not responding for any event(eg:CLICK). I believe that I can use some other wrapping technique.Do you think XPCNativeWrapper will work instead of WrappedJSobject??

You can get this error message if JavaScript uses a variable name to reference an object that has now become a reserved name and thus can no longer be used.
It will be necessary to modify the code and use another name if this is the case.
You probably can see this if you use the Web Console (Firefox/Tools > Web Developer) and start typing the name of this object and possibly get a list of available object for auto-completion.
*https://developer.mozilla.org/Tools/Web_Console

Similar Messages

Maybe you are looking for