Current page source from Firefox?

Hello,

I’m looking for a way to grab the source of the current Firefox page with AppleScript. In Safari I can do something like this:

tell application "Safari" to set theSource to source of document 1

Is it possible to do the same thing in Firefox?

Thanks,

Marco