Approved!

On Mon, Jul 26, 2010 at 9:47 PM, Max Carlson wrote:

Change 20100722-maxcarlson-r by maxcarl...@friendly on 2010-07-22 19:41:19 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: UPDATED: Fix callMethod() argument processing to handle strings properly

Bugs Fixed: LPP-9228 - lz.embed.foo.callMethod() doesn't handle strings properly, LPP-9241 - HTML SWF: You cannot have a string with a comma when using iframemanager#asyncCallback()

Technical Reviewer: promanik
QA Reviewer: [email protected]

Details: Updated to address Andre's comments:

Not approved, because it's still too naive and contains bugs like changing "canvas.setAttribute('title', t i t l e)" to "canvas.setAttribute('title', title)". There are also other white space chars, I'd add at least the most most common one: ' ', '\t', '\r', '\n'.
This change should take care of that.

Improve handling of strings in __parseArgs() - instead of naively splitting on commas, use a string tokenizer.

Tests: Typing lz.embed.callMethod("canvas.setAttribute('title', \"string,,with,commas\")") into firebug and doesn't fail with an argument count mismatch with swf10 app. canvas.setAttribute('title', t i t l e) also comes through as-is.

Files:
M       WEB-INF/lps/lfc/services/LzUtils.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100722-maxcarlson-r.tar

Reply via email to