[Laszlo-dev] For Review: Change 20090305-hqm-o Summary: make onerror event work again for loading a bad resource

Henry Minsky henry.minsky at gmail.com
Thu Mar 5 09:15:21 PST 2009


Change 20090305-hqm-o by hqm at badtzmaru.home on 2009-03-05 12:05:57 EST
     in /Users/hqm/openlaszlo/trunk6
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: make onerror event work again for loading a bad resource

New Features:

Bugs Fixed: LPP-7494

Technical Reviewer: andre
QA Reviewer: philr
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ the old swf8 datacompiler is still needed to compile "error swfs"  
which are sent in lieu of the requested
resource,

-- for swf8, the datacompiler support had rotted, uncomment the _m,  
_t, globals shortcuts in LzDatapointer.

-- for swf9, we need to make Responder.java do something useful if the  
swf runtime > 8; I believe sending
a 404 may be the best we can do, that will signal an IOErrorEvent in  
swf9's Loader.

Tests:

  http://localhost:8080/trunk6/test/lfc/legals/multiframeresource.lzx

look at the "should fail" test case on the right

SWF8
PROXIED  gets onerror
SOLO	 onerror after five seconds ; canvas.mediaerrortimeout = 4.5secs
          In SOLO don't know if we can detect the failure to load any  
faster than via timeout

SWF9
PROXIED  gets onerror
SOLO     gets onerror

DHTML
SOLO     onerror, but also onloadratio:1 and onframesloadratio:1
PROXIED  onerror, but also onloadratio:1 and onframesloadratio:1


Files:
M      WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M      WEB-INF/lps/lfc/services/LzBrowser.lzs
M      WEB-INF/lps/lfc/data/LzDatapointer.lzs
M      WEB-INF/lps/server/src/org/openlaszlo/server/LPS.java
M      WEB-INF/lps/server/src/org/openlaszlo/servlets/responders/ 
Responder.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090305-hqm-o.tar


More information about the Laszlo-dev mailing list