[Laszlo-dev] For Review: Change 20071023-hqm-8 Summary: fix to report errors in media loading
Henry Minsky
henry.minsky at gmail.com
Tue Oct 23 09:14:56 PDT 2007
Change 20071023-hqm-8 by hqm at IBM-2E06404CB67 on 2007-10-23 12:09:47 EDT
in /cygdrive/c/users/hqm/openlaszlo/trunk/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc
Summary: fix to report errors in media loading
New Features:
Bugs Fixed: LPP-4099
Technical Reviewer: max
QA Reviewer: pbr
Doc Reviewer:
Documentation:
Release Notes:
Details:
In the case of a server media error, the media loader calls returnData
twice, once from the testLoad loop, when the image swf is loaded
(normal path), and
then if an error swf was actually returned by the server, it contains swf code
that calls returnData itself.
That second call was being ignored by returnData because it ignored
any loader which was marked as loaded.
This fix adds a check for non-null data being returned, and if so, returns
processes it.
Tests:
test/lfc/data/testhttpdata.lzx
test/lfc/data/alldata.lzx
This should report an error immediately in proxied mode
<canvas width="100%" height="80%" debug="true">
<debug fontsize="12"/>
<view resource="http://www.javawen.info/try/news_bg.png"
onload="Debug.write('onload', this)"
ontimeout="Debug.write('ontimeout', this)"
onerror="Debug.write('onerror', this)"
/>
</canvas>
Files:
M kernel/swf/LzLoader.lzs
M kernel/swf/LzLoadQueue.as
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071023-hqm-8.tar
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list