This is an automated email from the ASF dual-hosted git repository.

gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 83eff97fba12d30e1ca68954a3078b21144c7312
Author: greg-dove <[email protected]>
AuthorDate: Mon Feb 23 12:35:04 2026 +1300

    [quickfix] iframe message listeners cannot be added to the contentWindow.
---
 .../HTML/src/main/royale/org/apache/royale/html/elements/Iframe.as    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Iframe.as
 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Iframe.as
index 84ea6fd379..5349dd69ab 100644
--- 
a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Iframe.as
+++ 
b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Iframe.as
@@ -262,11 +262,11 @@ package org.apache.royale.html.elements
                 *  @langversion 3.0
                 *  @productversion Royale 0.9.9
                 */
-               public function addMessageListener(handler:Function):void
+               public function 
addMessageListener(handler:(e:MessageEvent)=>void):void
                {
                        COMPILE::JS
                        {
-                               
contentWindow.addEventListener("message",handler);
+                               window.addEventListener("message",handler);
                        }
                }
                

Reply via email to