Welcome Guest Search | Active Topics | Sign In | Register

RegisterJSExtensionFunction not working in IFRAME Options
Andreas
Posted: Wednesday, May 3, 2023 10:27:31 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Hello,
since Version 23.0.83 (Chromium Upgrade) we cannot use RegisterJSExtensionFunction within an IFRAME anymore

what we do:
-we register some methods with RegisterJSExtensionFunction
-the page uses an iframe to display another page
-the iframe page calls one of the RegisterJSExtensionFunction methods
-we handle this call in C#
--> but now it does not work

One thing I noticed, the remote debugging page shows the iframe page as second inspectable WebContent (since 23.0.83), before that the iframe page was not visible on the remote debugging page

Is this a known bug (or feature) or is there a workaround, maybe something like registering the JSExtensionFunction a second time for the iframe

thank you
eo_support
Posted: Wednesday, May 3, 2023 11:02:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We are not aware of RegisterJSExtensionFunction not working inside iframe. It is designed to work inside all frames. If you continue to have problems, please send a small test project to us and we will be investigate further. See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Andreas
Posted: Thursday, May 4, 2023 5:29:23 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Thanks a lot!
while creating the test project I found some more details
If both pages are on the same domain (or file:// protocol) everything works as expected
If the domain or protocol (for the tests I used http and https) of the IFrame is different from the main page, the RegisterJSExtensionFunction does not work (since v23.0.83)
I also send you the test project
thank you
eo_support
Posted: Friday, May 5, 2023 1:15:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thank you very much for the test project. We are able to find out the root cause. The issue will be resolved in our next build. We will reply here again when the new build is available.
eo_support
Posted: Wednesday, May 24, 2023 12:24:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is just to let you know that we have posted a new build that should resolve this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
Andreas
Posted: Thursday, May 25, 2023 4:44:49 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Hello,
thank you for the new version
The problem seems to be fixed with this version.
One point I noticed, the remote debugger throws an error (Debugging connection was closed. Reason: WebSocket disconnected) when I click on a link from the overview page, (with the previous EO-version in my test program that I sent you, it works as expected)
thank you
eo_support
Posted: Thursday, May 25, 2023 2:08:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for letting us know. We are looking into this and will reply again once we have an update.
eo_support
Posted: Wednesday, June 14, 2023 11:35:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is just to let you know that we have posted a new build (23.2.34) that should resolve the remote debugging issue. You can download it from our download page. Please take a look and let us know how it goes.

Thanks!
Andreas
Posted: Tuesday, July 11, 2023 4:48:47 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Hello,
thank you, the latest version looks as expected
eo_support
Posted: Tuesday, July 11, 2023 10:37:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.