When is onBrowserFrameSourceChange() event raised?

Hi,
in Jmix 1.5
I fill a browserFrame with complete HTML page inside.
Included is some JS to render several charts.
So the source of the iFrame ‘changes’…
Unluckily the event onSourceChange() doesn’t fire.
Am I missing something?
Thanks for ideas,
kr
HP

Hello!

This event does not detect page changes in IFrame. The SourceChangeEvent is fired when source in the BrowserFrame is changed.

For instance, we have browserFrame with Jmix doc URL:

<browserFrame id="browserFrame" width="400px" height="400px">
    <resource>
        <url url="https://docs.jmix.io/jmix/intro.html"/>
    </resource>
</browserFrame>

Then we change source programmatically:

browserFrame.setSource(UrlResource.class).setUrl(new URL("https://vaadin.com/docs/latest/"));

After setting new source your handler with SourceChangeEvent will be invoked.