gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [bug #50393] `undefined` FSCommand parameter is not corre


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #50393] `undefined` FSCommand parameter is not correctly passed to host container
Date: Wed, 1 Mar 2017 03:47:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.8) Gecko/20151123 Firefox/31.9 PaleMoon/25.8.1

Follow-up Comment #1, bug #50393 (project gnash):

Currently, it is not very clear whether `undefined` value treatment behavior
of `MovieClip.getURL()` is specific to FSCommand usage or not.

So I conducted tests on how `undefined` and `null` and empty target parameter
are treated in normal usage of `getURL(url,target)` and
`MovieClip.getURL(url,target)` under Flash Player...

When testing Flash Player with SWF version 5:

* getURL("loaded.html",undefined): _The main page redirected to
"loaded.html"._
* getURL("loaded.html",null): File "loaded.html" got loaded into a frame named
"null".
* getURL("loaded.html",""): The main page redirected to "loaded.html".
* getURL("loaded.html"): The main page redirected to "loaded.html".
* MovieClip.getURL("loaded.html",undefined): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html",null): File "loaded.html" got loaded into a
frame named "null".
* MovieClip.getURL("loaded.html",""): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html"): The main page redirected to "loaded.html".

When testing Flash Player with SWF version 6:

* getURL("loaded.html",undefined): _The main page redirected to
"loaded.html"._
* getURL("loaded.html",null): File "loaded.html" got loaded into a frame named
"null".
* getURL("loaded.html",""): The main page redirected to "loaded.html".
* getURL("loaded.html"): The main page redirected to "loaded.html".
* MovieClip.getURL("loaded.html",undefined): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html",null): File "loaded.html" got loaded into a
frame named "null".
* MovieClip.getURL("loaded.html",""): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html"): The main page redirected to "loaded.html".

When testing Flash Player with SWF version 7:

* getURL("loaded.html",undefined): _File "loaded.html" got loaded into a frame
named "undefined"._
* getURL("loaded.html",null): File "loaded.html" got loaded into a frame named
"null".
* getURL("loaded.html",""): The main page redirected to "loaded.html".
* getURL("loaded.html"): The main page redirected to "loaded.html".
* MovieClip.getURL("loaded.html",undefined): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html",null): File "loaded.html" got loaded into a
frame named "null".
* MovieClip.getURL("loaded.html",""): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html"): The main page redirected to "loaded.html".

When testing Flash Player with SWF version 8:

* getURL("loaded.html",undefined): _File "loaded.html" got loaded into a frame
named "undefined"._
* getURL("loaded.html",null): File "loaded.html" got loaded into a frame named
"null".
* getURL("loaded.html",""): The main page redirected to "loaded.html".
* getURL("loaded.html"): The main page redirected to "loaded.html".
* MovieClip.getURL("loaded.html",undefined): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html",null): File "loaded.html" got loaded into a
frame named "null".
* MovieClip.getURL("loaded.html",""): The main page redirected to
"loaded.html".
* MovieClip.getURL("loaded.html"): The main page redirected to "loaded.html".

(SWF version-specific results are _italicized_)

Behavior summary:

* ActionGetURL2-based `getURL()` uses SWF's string representation of target
parameter.
** This means `undefined` is equivalent to empty string under SWF6-below and
"undefined" under SWF7-above.
** When target is omitted, it works as if target is empty string.
** When target is an empty string, it works as if target is "_self"
(redirecting current frame/tab/window to the specified URL).
* MovieClip-based `getURL()` do the same things as ActionGetURL2-based one,
except...
** *When target is `undefined`, it will work as if target is an empty string,
no matter of SWF version.*

Test files and screenshots are attached as `geturl-targettest.zip`. Testing on
older Flash Player version (e.g. Flash 8) may require JavaScript to be enabled
in the browser.

Side notes:

* If target is non-empty, but denotes an unknown HTML frame, it will work as
if the target is "_blank" (opening new tab/window).
* I haven't test the behavior of empty target V.S. "_top" target yet (when SWF
is in a child frame).
* Writing HTML-based semi-automated tests in this case, could be difficult.
(Container-emulated/shell-based one, on the other hand, is pretty simple)

Flash Player: 8.0.42.0 (NPAPI)
Browser: Mozilla Firefox 11.0
System: Microsoft Windows XP Professional SP3


(file #39861)
    _______________________________________________________

Additional Item Attachment:

File name: geturl-targettest.zip          Size:82 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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