[josm-dev] JOSM WMS does not work with Firefox 3

andrzej zaborowski balrogg at gmail.com
Sat Jul 5 03:10:16 BST 2008


Hi,

2008/7/5 Roy Rankin <rrankin at ihug.com.au>:
> There is a thread in OSM-talk
> http://lists.openstreetmap.org/pipermail/talk/2008-May/026384.html
> concerning the fact that the JOSM WMS pluging does not work with Firefox 3.
> The issue has also been raised in TRAC in the following ticket
> http://josm.openstreetmap.de/ticket/785.
> This is to move the discussion to this list as there may be people
> better able to address this issue then myself or those on the OSM-talk list.
>
> The problem is a result of the mozilla bug report
> https://bugzilla.mozilla.org/show_bug.cgi?id=379015 where the feature
> that JOSM uses in Firefox to dump Yahoo images has been removed in
> Firefox 3 as it "was not being used" and I have checked the Firefox 3
> source code and it has indeed been removed.
>
> In the mozilla bug report Andrzej Zaborowski asked what JOSM should be
> using and Robert O'Callahan responded
>  >
>  > Use an embedding tool like gnome-web-photo.
>  >
>  > Or write a Firefox extension or a .xul app (launched using -chrome)
> that loads
>  > pages, snapshots them using canvas.drawWindow, and uses toDataURL to
> produce a
>  > PNG image

I'm afraid I went the quick and dirty way after asking that, and
readded the feature in my copy of firefox 3, attached to this mail is
the patch. It's not a strict revert of the patch from that bugreport
because everything seems to have changed in Mozilla since last year.
The patch applies to the xulrunner-1.9 package on Gentoo, I imagine on
other distros xulrunner and firefox aren't split.  It's less accurate
than the YWMS+Firefox 2 because I couldn't figure out a way to get the
exact dimensions of the rendered page. It also causes Firefox to exit
after dumping the image so you don't have to close it.

I would like to attempt to finish Francisco Santos' work but I noticed
his mail too late and I'll be offline for a while.
Cheers


More information about the josm-dev mailing list