gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #32411] ExternalInterface XML parser fails with nest


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #32411] ExternalInterface XML parser fails with nested tags
Date: Thu, 28 Jan 2016 12:34:29 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.5) Gecko/20150606 Firefox/31.9 PaleMoon/25.5.0

Follow-up Comment #16, bug #32411 (project gnash):

I also made a test Flash file for checking current ExternalInterface's
support for Array-typed callback argument and return type too (in JavaScript
calls Flash direction); attached as `js2flash-arr.zip`.

Screenshot, logs (verbosity 2 + action error), and relevant GDB backtrace
are also included in the same ZIP file.

*Array-Typed Function Argument Case*

This is an image result from `js2flash-arrarg.html` under browser with Flash
Player:
http://i.imgur.com/1BcnPEL.png

Flash Player's trace output from the run:

Warning: Reference to undeclared variable, 'JS2FlashArrayArg'
callee: starting
callee: adding ExternalInterface callback
callee: finished initializing
callee: entering ExternalInterface callback
callee: ExternalInterface callback succeeded, expected array with 2 elements
[Hello, World], got array with 2 elements [Hello, World]
callee: ExternalInterface callback finished


You'll see that Flash Player passed an ExternalInterface callback's Array
argument, length, and its elements correctly.

This is an image result from `js2flash-arrarg.html` under browser with Gnash:
http://i.imgur.com/7YY6GdA.png

Gnash's console output shows:

SECURITY: Extensions disabled
ACTIONSCRIPT ERROR: reference to non-existent variable 'JS2FlashArrayArg'
TRACE: callee: starting
TRACE: callee: adding ExternalInterface callback
TRACE: callee: finished initializing
TRACE: callee: entering ExternalInterface callback
ACTIONSCRIPT ERROR: getMember called against a value that does not cast to an
as_object: [undefined]
ACTIONSCRIPT ERROR: getMember called against a value that does not cast to an
as_object: [undefined]
ACTIONSCRIPT ERROR: getMember called against a value that does not cast to an
as_object: [undefined]
TRACE: callee: ExternalInterface called incorrectly, expected array with 2
elements [Hello, World] got undefined with undefined elements [undefined,
undefined]
TRACE: callee: ExternalInterface callback finished


You'll see from console output that Gnash passed an Array-typed
ExternalInterface callback argument as `undefined`.

According to Gnash's container-player communication log, the problem also
started from libgnashplugin sending an empty `<object>` tag to player,
which is incorrect since this array is supposed to have two elements.

Gnash: 0.8.11dev (git 62cfdfe 16-Jan-2016) NPAPI
Flash Player: 11.2.202.491 NPAPI binary
Iceweasel: 10.0.12 (debian)
System: Debian GNU/Linux 7.0 Wheezy i386

(file #36190)
    _______________________________________________________

Additional Item Attachment:

File name: js2flash-arr.zip               Size:24 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32411>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]