[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-commit
Subject:    [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2296-ge9eb84e
From:       strk () kbt ! io (Sandro Santilli)
Date:       2017-02-19 16:28:26
Message-ID: 20170219162826.719EE26013 () vcs0 ! savannah ! gnu ! org
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  e9eb84e128f7f0ba4558d00cf794027bf9125a7d (commit)
      from  e90fc76cd653c5ecb481d845ae07c96715412443 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnash.git/commit/?id=e9eb84e128f7f0ba4558d00cf794027bf9125a7d


commit e9eb84e128f7f0ba4558d00cf794027bf9125a7d
Author: Nutchanon Wetchasit <Nutchanon.Wetchasit@gmail.com>
Date:   Sun Feb 19 17:26:20 2017 +0100

    Add FSCommand URL scheme implementation to MovieClip.getURL().
    
    See bug #46944 <https://savannah.gnu.org/bugs/?46944>

diff --git a/libcore/asobj/MovieClip_as.cpp b/libcore/asobj/MovieClip_as.cpp
index 02b8cce..8973066 100644
--- a/libcore/asobj/MovieClip_as.cpp
+++ b/libcore/asobj/MovieClip_as.cpp
@@ -1,6 +1,6 @@
 // MovieClip_as.cpp:  ActionScript "MovieClip" class, for Gnash.
 //
-//   Copyright (C) 2009, 2010, 2011, 2012, 2014, 2016
+//   Copyright (C) 2009, 2010, 2011, 2012, 2014, 2016, 2017
 //   Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify
@@ -1129,6 +1129,15 @@ movieclip_getURL(const fn_call& fn)
              break;
     }
 
+    movie_root& m = getRoot(fn);
+
+    // If the URL uses "FSCommand:" scheme, it is a message for the player
+    // or host container.
+    StringNoCaseEqual noCaseCompare;
+    if (noCaseCompare(urlstr.substr(0, 10), "FSCommand:")) {
+        m.handleFsCommand(urlstr.substr(10), target);
+        return as_value();
+    }
 
     MovieClip::VariablesMethod method =
         static_cast<MovieClip::VariablesMethod>(toInt(val, getVM(fn)));
@@ -1139,8 +1148,6 @@ movieclip_getURL(const fn_call& fn)
         // Get encoded vars.
         vars = getURLEncodedVars(*movieclip);
     }
-
-    movie_root& m = getRoot(fn);
     
     m.getURL(urlstr, target, vars, method);
 

-----------------------------------------------------------------------

Summary of changes:
 libcore/asobj/MovieClip_as.cpp | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Gnash

_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/gnash-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic