I'm currently migrating my image uploader from Gears to Firefox 3.6/HTMLv5. I used a Gears Worker in conjunction with Gears Canvas to scale down the selected photos before upload. By doing this, I kept the browser window responsive and avoided the "Do you want to stop this script"-warnings.
However, this doesn't seem to be feasible in HTMLv5: Web Workers don't have access to the DOM and can only receive JSON-serialized data. Even if I managed to serialize the contents of the selected image files, I am not sure if I can use the Canvas object in my worker to perform the downscaling.
Doing the scaling without workers will likely cause browser freezes with multi-megapixel images. Any ideas how to solve this problem?