1. have a mac with Firefox 3.0.x installed ; warning: NOT Firefox
3.1b*
2. download
http://glazman.org/tmp/testGeoloc.tar
3. untar it wherever you want, it creates a xulapp directory
4. go into that directory
5. make sure to disable Geode in Firefox if you have it installed
6. call
/Applications/Firefox.app/Contents/MacOS/firefox-bin -app `pwd`/
application.ini
7. that will show a small window with a button inside, click that
button
8. first alert should show you a JS object, it's an instantiation
of Loki
9. second alert should show your longitude and latitude if it's
possible to determine your location based on your wifi context ;
integers are VERY unlikely here so if you see integers, that's the
bug...
The code of this xulapp is trivial, only calls loki.
See xulapp/chrome/content/main.js
Daniel Glazman