gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Sandro Santilli
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2296-ge9eb84e
Date: Sun, 19 Feb 2017 11:28:26 -0500 (EST)

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 <address@hidden>
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



reply via email to

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