The Gtkmozembed widget does not provide this level of functionality.
However, I have devised a cunning way of building a bridge between Ruby
Basically the nuts and bolts of it are a parser that transforms
source code into a one-liner which I then ask Mozilla to load using the
data through a JSON handler and assigning it to document.title - which I
then pick back up on the ruby side by using the Gtkmozembed title
I use it to get the dimensions of a rendered page and then manipulate
scrollbars such that I can stitch together a full-page screenshot image.
works beautifully. I was also thinking about extending it into a full
testing framework… not convinced this could be entirely useful yet.
Concerning your problem: using the method I have described I can
the html source from the DOM - either
a representation of the “real” DOM by calling xml.serializeToString(
So, you could certainly retrieve the source and get a list of all of the
page assets but you’d have to retrieve them again separately from your
app… or perhaps dig them out of the Mozilla disk cache.
If you’d like a copy of my source then let me know and I’ll try and find
some time to clean it up.