Using iframes with Chromium 110/120
In Chromium version 110 and later, BrightScript-JavaScript Objects are only supported within iframes in BrightSignOS version 9.0.191 or greater. This change impacts developers who have been embedding content in iframes that rely on these BrightSign-specific objects.
Apps with iframe Content Control
If your application embeds content within an iframe and you have control over the content inside that iframe, you’ll need to adjust your approach. Instead of using BrightSign objects directly inside the iframe, you should send messages from the iframe to the parent window using the postMessage() method. The parent window, which contains the BrightSign objects, can then handle these messages and execute the necessary actions.
Below is an example in which the iframe sends a message to the parent window using window.parent.postMessage(). The parent window listens for messages using the message event listener, and upon receiving a message, it can interact with the BrightSign objects to perform the desired actions.
iframe content:
Parent window: