davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.
https://iframe-resizer.com
Other
6.65k stars 981 forks source link

A mutationObserver event triggers an endless reset loop #1154

Closed lucavb closed 6 months ago

lucavb commented 1 year ago

Hello,

this package is used in our confluence through Scroll Documents for Confluence and it seems that there is a potential infinite loop? I cannot really say whether that is intended or not but it feels odd?

Any how the order is the following

I've attached a screenshot of what the communication then looks like

reset-loop

Side note this also means that scrollTo is being called every second or so. And also the version our plugin uses is somewhat outdated, so it is entirely possible that you fixed this (if it is a bug) in the meantime.

davidjbradshaw commented 1 year ago

This sounds like you have miss matched version on the library in the iframe and the parent page. Normally this should still work ok, but in this case I think you need to upgrade so that they at least match.

lucavb commented 7 months ago

Hmm, okay this came bundled with a Confluence plugin. We are not using it directly.

davidjbradshaw commented 7 months ago

I think you need to talk to them to see how they managed to do this. Not much I can suggest and this has never come up before.