[Webkit-unassigned] [Bug 273841] React portal element rendered when clicking on button is not visible half of the time when rendered within an iframe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 9 17:40:04 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=273841
--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
It reminds me about something I have seen yesterday about iframes and subresources onload
Not putting them as related yet, because I'm not sure.
* Bug 33777
* Bug 17761
* Bug 15505
```
<iframe title="Preview page"
name="previewFrame"
class="PreviewFrame-iFrame"
allow="magnetometer; accelerometer; gyroscope; geolocation; microphone; camera; payment; autoplay; serial; xr-spatial-tracking; cross-origin-isolated"
src="https://stackblitz-starters-gaok1e.stackblitz.io"
style="background: rgb(255, 255, 255); height: 579px;"></iframe>
```
Accessing directly
https://stackblitz-starters-gaok1e.stackblitz.io
indeed doesn't exhibit the issue.
hmmm there are some code targeting Safari too in there.
For example:
```
function noop() {}
function trapClickOnNonInteractiveElement(node) {
// Mobile Safari does not fire properly bubble click events on
// non-interactive elements, which means delegated click listeners do not
// fire. The workaround for this bug involves attaching an empty click
// listener on the target node.
// https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
// Just set it using the onclick property so that we don't have to manage any
// bookkeeping for it. Not sure if we need to clear it when the listener is
// removed.
// TODO: Only do this for the relevant Safaris maybe?
node.onclick = noop;
}
```
Not yet at the source of the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240510/8dc2cd55/attachment.htm>
More information about the webkit-unassigned
mailing list