Hi Eric,

Taking YSlow as an example, I suppose it would be good as a starting
point to define the "security rules" your extension will be looking for,
like "don't use window.eval()" etc.

To get started with Firebug Lite code, I suggest reading the
"d) Development mode" section under "Install" instructions:

http://getfirebug.com/releases/lite/beta/#Install

If you're not familiar with Firebug (Lite or not) extension development,
I suggest you read the awesome tutorial Honza wrote (you can skip
the XUL related content and start reading where it says "This is how the
JS script looks like):

http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-hello-world-part-i/

So, here's the basic structure of an extension:
-----------------------------------------------------------
FBL.ns(function() { with (FBL) {

function HelloWorldPanel() {}

HelloWorldPanel.prototype = extend(Firebug.Panel,
{
    name: "HelloWorld",
    title: "Hello World!",

    initialize: function() {
        Firebug.Panel.initialize.apply(this, arguments);
    }
});

Firebug.registerPanel(HelloWorldPanel);

}});
-----------------------------------------------------------

Note that while I tried to use the exact same API for Firebug Lite,
currently some parts of the API are different. This means that not
every tutorial in Honza's site will work as it is.

You can also read about domplate (Firebug's template engine):

http://www.softwareishard.com/blog/firebug-tutorial/extending-firebug-domplate-part-v/


We currently don't have a good documentation for Firebug Lite
development (I'll try to address this soon), so feel free to ask
me if you have any doubts about the code.

regards,

Pedro Simonetti.

2010/2/23 Eric Dorman <[email protected]>:
> Hey guys,
>
> Pedro and I have been talking about this new extension I would like to
> build for FireBug,but it is manly focused on finding bad code or
> malious code in websites. It's sort of like the YSlow Extensio.This
> extension would be used not only for web developers,but for users to
> see code that could be used for dangerous purposes.  I am sort of
> thinking of doing a extension that could help people find out or track
> potential Security Problems.
>
> Thanks & God Bless,
> Eric Dorman
>
> --
> 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.
>
>

-- 
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.

Reply via email to