#760 JavaScript demo doesn't work for Mozilla

Yuri Strot Thu 24 Sep 2009

I am using latest fan version from the repository, but examples/js/demo.fan doesn't completely work for Mozilla 3.5.3 at Windows XP. There are two exceptions occurred:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage]"  nsresult:
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: 
http://localhost:8080/sys/pod/fwt/fwt.js :: anonymous :: line 7544"  data: no]

Error: uncaught exception: sys::ParseErr: Invalid Uri: 'mem-3'

However some elements are displaying: http://img8.imageshack.us/img8/7707/ss20090924150623.png

andy Thu 24 Sep 2009

Thanks ystrot. There were a few regression bugs here:

  • Canvas attempted to use images before they were loaded
  • Font metrics not using correct syntax for field storage access
  • Image.resize needed fix for JavaScript Uri implementation

Fixes available from hg.

There is still a bug with image loading. It needs to trigger a repaint when loaded, but not working yet.

Yuri Strot Fri 25 Sep 2009

Thanks a lot for quick fix! Now it works fine.

Login or Signup to reply.