Open casimirloeber opened 6 months ago
Casimir, have you filed this as a bug with Webkit? I've seen it before but didn't actually report it, assuming that it would be fixed in a Safari revision (wishful thinking, I know). If it hasn't been, someone should probably at least toss a perfunctory note into the black hole that is Apple's reporting mechanism.
If the parent and guest are hosted on different domains (or ports), scrolling to element in guest via Element.scrollIntoView() does not work.
This does not seem to be related to Sidechain as I have reproduced in a very simple demo without loading Sidechain at all. The reason I am posting here is just in case someone has a trick to make it work or at least so the documentation can be updated to reflect this and avoid hours of debugging ;)
parent.html - served at http://localhost:1234 using serve -l 1234 for easy local testing
guest.html - served at http://localhost:6789 using serve -l 6789 for easy local testing
Firefox + Chrome: Scroll down and click button. You will get scrolled to top
Safari: Scroll down and click button. Nothing happens...
It would be amazing if someone knew how to make this work. If not, I am working on a solution that calculates offsets and passes messages between child/parent but I would love to avoid that if possible.
Thank you for your time.