[add-art dev] Auto image update status
Ethan Ham
ethan at ethanham.com
Mon Jun 23 08:53:38 PDT 2008
Ok, I've done the fix mentioned below. New image jar files are saved off as
"~image.jar." When Firefox next launches, the ~image.jar is renamed (and
replaces) image.jar.
There's one problem I wasn't able to fix, however... If after a new image
set is downloaded, the user opens a new Firefox window (not tab) before
restarting Firefox, then the add-art images disappear the next time a page
with ads is browsed to (or is refreshed).
This is a bit of an outside case. Is it acceptable? I can't think of any
way around it :( I tried putting the file copy code in addart.js because
that code is called only once, upon Firefox's initialization...
Unfortunately the file copy code won't work there because the services
needed are yet available.
Ethan
On 6/23/08 11:16 AM, "Ethan Ham" <ethan at ethanham.com> wrote:
> It was great to meet you on Saturday, Steve!
>
> I've tracked down the problem we were having with the image update process.
> The Americana set of images had a bunch of problems (corrupted files,
> different sizes, misnamed extensions (jpeg instead of jpg).
>
> When I made a set of images myself (I used the Japanese print set as the
> basis for the new set, and then painted a green stripe on them), it worked
> fine.
>
> I checked in a fix for the problem we found on Saturday (that the extension
> was using a cached version of image_set.xml).
>
> I've noticed that the extension doesn't like the images.jar file being
> changed while it is running (it stops showing the images until Firefox is
> restarted). I'm going to do a fix for that today (after a new images.jar
> file is downloaded, we won't replace the old one until the new time Firefox
> launches).
>
>
>
> _______________________________________________
> Supperclub mailing list
> Supperclub at lists.add-art.org
> http://lists.add-art.org/listinfo.cgi/supperclub-add-art.org
>
More information about the Supperclub
mailing list