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: Sat, 06 Feb 2016 12:19:43 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.8) Gecko/20151123 Firefox/31.9 PaleMoon/25.8.1

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

This is another test SWF file (created with MTASC again) to show difference
on ExternalInterface exception handing between Flash player and Gnash,
but in Flash-calls-JavaScript direction.

Text output from running `flash2js-exception.html` under browser with Flash
Player:

JavaScript's exception_call function is called.


Player's trace output from the run:

Warning: Reference to undeclared variable, 'Flash2JSException'
caller: JavaScript's exception_call() returned type undefined, value:
undefined


You'd see that ActionScript side got `undefined` return value when JavaScript
side thrown exception.

Text output from running `flash2js-exception.html` under browser with Gnash:

JavaScript's exception_call function is called.


Gnash's debug output from the run:

69 SECURITY: Extensions disabled
69 ACTIONSCRIPT ERROR: reference to non-existent variable 'Flash2JSException'
71 TRACE: VAL: [string:Error]
71 TRACE: caller: JavaScript's exception_call() returned type undefined,
value: undefined


You'd see that ActionScript side also got `undefined`, which is correct.
But container-player communication dump shown that libgnashplugin sent
following return value to Gnash player:

<string>Error</string>


This is indistinguishable from ordinary string "Error" return value,
causing the problem that previously mentioned in comment 2
<https://savannah.gnu.org/bugs/?47004#comment2>.

Test SWF, source code, HTML container, build script, text output and logs
are attached as `flash2js-exception.zip`.

Gnash: 0.8.11dev (git 02ec1e6 3-Feb-2016)
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


(file #36267)
    _______________________________________________________

Additional Item Attachment:

File name: flash2js-exception.zip         Size:6 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]