gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [bug #37223] JavaScript call didn't reach the ExternalInt


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #37223] JavaScript call didn't reach the ExternalInterface callback
Date: Mon, 10 Aug 2015 10:11:05 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12

Follow-up Comment #4, bug #37223 (project gnash):

These are list of problems found in Gnash's ExternalInterface implementation
(JavaScript -> Flash direction) as far as I have tested.

Problems with callback registration,
`ExternalInterface.addCallback(methodName,instance,method)`:

* `method` argument is ignored; Gnash calls `_root.methodName` instead. (The
original submission)
* Registration failed silently if `instance` argument is `null` or
`undefined`. (It shouldn't fail)
* Actual value of `instance` argument is ignored; Gnash uses `_root` instead.

Problems with the underlying callback mechanism:

* Gnash only pass maximum 3 arguments to the callback; specifiying more than 3
will have same result as passing 0 argument.
* When the callback is called and returned no value or returned `undefined`,
Gnash returns `null` to JavaScript instead.
* Gnash passes Array and Object argument (including associative array) to the
callback as `undefined`.
* Gnash passes callback return value of type Array or Object back to
JavaScript as a weird inaccessible "NPObject JS wrapper" object, and caused
the plugin to crash.

Gnash: 0.8.11dev (git 6b269f9 24-May-2015) NPAPI
Adobe Flash Player: 11.2 r202 (11.2.202.491) NPAPI binary
Browser: Iceweasel 10.0.12 (debian)
System: Debian GNU/Linux 7.0 Wheezy i386


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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