gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [bug #47004] Gnash didn't pass string return value "Error


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #47004] Gnash didn't pass string return value "Error" and "SecurityError" from ExternalInterface callback
Date: Mon, 01 Feb 2016 05:27:31 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.5) Gecko/20150606 Firefox/31.9 PaleMoon/25.5.0

Follow-up Comment #2, bug #47004 (project gnash):

This issue is not limited to JavaScript-calls-Flash direction,
Flash-calls-JavaScript direction (`ExternalInterface.call()`) has the
similar problem.

I have made a test SWF (using libming's makeswf) that tries to call three
JavaScript functions which return string "Error", "SecurityError", and
"Hello!" to demonstrate this issue:

Trace output from running `flash2js-errorstring.html` under browser with Flash
Player:

caller: JavaScript's error_call() returned type string value: Error
caller: JavaScript's securityerror_call() returned type string value:
SecurityError
caller: JavaScript's hello_call() returned type string value: Hello!


You'd see that string "Error", "SecurityError", and "Hello!" are passed back
to ActionScript correctly.

Log output from running `flash2js-errorstring.html` under browser with Gnash:

81 SECURITY: Extensions disabled
81 UNIMPLEMENTED: FileAttributes tag in the SWF requests that network access
is not granted to this movie (or application?) when loaded from the
filesystem. Anyway Gnash won't care; use white/black listing in your .gnashrc
instead
107 TRACE: VAL: [string:Error]
107 TRACE: caller: JavaScript's error_call() returned type undefined value:
undefined
108 TRACE: VAL: [string:SecurityError]
108 TRACE: caller: JavaScript's securityerror_call() returned type undefined
value: undefined
119 TRACE: caller: JavaScript's hello_call() returned type string value:
Hello!


You'd see that "Error", and "SecurityError" string are passed back to
ActionScript as `undefined`, which is incorrect. Also, there are unknown
"VAL: " trace messages popped-up too.

According to container-player communication dump, each "<string>" return
value
are correctly sent from libgnashplugin. So this side of the issue is likely
to be Gnash (player)'s fault.

Test SWF, HTML container, source code, build script, screenshots, logs, and
container-player communication dump are attached as
`flash2js-errorstring.zip`.

Gnash: Gnash 0.8.11dev (git e705394 29-Jan-2016) NPAPI
Flash Player: 11.2 r202 (11.2.202.491) NPAPI binary
Browser: Iceweasel 10.0.12
System: Debian GNU/Linux 7.0 Wheezy i386


(file #36226)
    _______________________________________________________

Additional Item Attachment:

File name: flash2js-errorstring.zip       Size:7 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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