Console panel is always trying to find a domplate template for the object passed into the log function (so it knows how to print it). In this case the object is instance of a NetFile, which *is* actually registered, but its template doesn't specify how it should be printed within the console (this functionality has been never used in Firebug).
I have derived the FirebugReps.NetFile template from FirebugReps.Obj template so, now the file object is printed in the console just like regular JS object (R1771). Should be part of the next build (1.4.a12) Honza On Jan 24, 4:18 am, carstep <[email protected]> wrote: > Hi There, > > I'm using FF3 on Mac and FB 1.3Xb7. I tried to make an extension > extending the Netmonitor (maybe other module) where I can put some > content to the console from my external domain while loading it in an > iframe for local testing purposes. > > Meanwhile I could connect to the onLoad event of the Netmonitor and > write out some info but I don't know what exactly in the argument file > as object exists. I tried to write the file object ot the console but > it does nothing, only when I use the toString() method of the file > object I get back that this is an object. > > example I made: > <code> > /** > * Model implementation. > */ > Firebug.MonitorModel = extend(Firebug.Module, > { > initializeUI: function(detachArgs) > { > Firebug.NetMonitor.addListener(this); > }, > > shutdown: function() > { > Firebug.NetMonitor.removeListener(this); > }, > > onLoad: function(context, file) > { > if ( file.href.indexOf('externaldomain.com') > -1 ) { > Firebug.Console.log("--> " + file.method + " > " + file.href); > Firebug.Console.log(file.toString()); > } > } > }); > </code> > > I hope somebody can help me to fulfill this little task > > r. Sandor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
