XR 1.8.1.3 works fine for me. I used the code example found here:
http://developer.mozilla.org/en/docs/Code_snippets:Canvas

I tested it in a sample I built using XUL Explorer:
http://developer.mozilla.org/en/docs/XUL_Explorer

Check the Error Console to make sure the exception is really due
to .toDataURL and not something else.

Mark Finkle

On Jun 1, 9:29 am, Greg Bowyer <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am using xulrunner to construct a site-monitoring tool I have
> some code that can capture the current page, via the canvas widget this
> is saved as a screen shot, but seemingly the function
> context.toDataURL() chucks up an exception at me in 1.8.0.3 and 1.8.1.3
> (the eclipse contrib build) this is all naturally working fine in my 1.9
> build (even if it is a bit errrm rocky :S)
>
> I was under the impression that 1.8.1.3 was built on the firefox 2 /
> gecko 1.8.1 codebase, and that context.toDataURL is supported there,
> soooooooo my questions are:
>
> 1) Is there a better / different way to do the same thing,
>     I couldn't figure anything out from looking through xulplanet
>     - but that might be because I am stupid
>
> 2) Are there any patches or build options that I could apply to an
>     otherwise stable 1.8.xxx xulrunner that would give these versions
>     the power -of greyskull- to use context.toDataURL()
>     - I would rather not have to backport anything myself, I am far too
>       lazy and my C++ is so rusty it scares the tin man :S
>
> Many thanks
>         Greg Bowyer


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to