RESOLVED REMIND 284100
"Open this 3D model?" modal doesn't work when site is embedded in an iframe
https://bugs.webkit.org/show_bug.cgi?id=284100
Summary "Open this 3D model?" modal doesn't work when site is embedded in an iframe
Jaume Calm
Reported 2024-12-05 01:31:57 PST
How to reproduce: Open https://app.vectary.com/p/6ogLbFMaZxh0dn1qdMeqM7 in iOS Safari and tap on the AR button at the top-right. The new "Open this 3D model?" modal will appear, tap on "Allow". Quick look will open and load the USDZ file. Now do the same but by opening https://2zcv4c.csb.app/, where the link above is embedded in an iframe. After tapping "Allow", the page will get refreshed and nothing will happen. This used to work for us before the modal, and it is a major issue for our business since our customers embed our links into their sites most of the time. Thanks for your time.
Attachments
Jaume Calm
Comment 1 2024-12-05 02:08:30 PST
Ok so I found out why it is not working. For anyone that comes up with the same issue, turns out Safari doesn't like to open USDZ AR links with `window.open(this._url, '_parent');` when the link is embedded, which funnily enough, that's what is actually needed in Android (after some recent update) for opening #intent links in their end. Using `window.open(this._url, '_self');` works as expected.
Jaume Calm
Comment 2 2024-12-05 02:10:57 PST
I'm setting the status of this bug report as `resolved` but with resolution as `remind` since it would be good to check if using `window.open(this._url, '_parent');` would be acceptable as well.
Note You need to log in before you can comment on or make changes to this bug.