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:01:28 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.8) Gecko/20151123 Firefox/31.9 PaleMoon/25.8.1

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

I also made a test SWF file (using MTASC) to show difference on how Flash
and Gnash handle exception in ExternalInterface, in JavaScript-calls-Flash
direction.

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

Flash's exception_call() returned type undefined, value: undefined


Player's trace output from the run:

Warning: Reference to undeclared variable, 'JS2FlashException'
callee: finished initializing
callee: exception_call callback is called
Warning: Uncaught exception, This is a test Error


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

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

Flash's exception_call() returned type object, value: null


Gnash's debug output from the run:

76 SECURITY: Extensions disabled
76 ACTIONSCRIPT ERROR: reference to non-existent variable 'JS2FlashException'
77 TRACE: callee: finished initializing
2940 TRACE: callee: exception_call callback is called


You'd see that JavaScript side got `null` when ActionScript side thrown
exception. According to container-player communication dump, Gnash (player)
correctly sent `<undefined/>` return value to libgnashplugin.

Test SWF, source code, HTML container, build script, text output and logs
are attached as `js2flash-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 #36266)
    _______________________________________________________

Additional Item Attachment:

File name: js2flash-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]