[Webkit-unassigned] [Bug 253409] maxlength test for <textarea> failing when ran in a third-party iframe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 5 15:08:03 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=253409
Chris Dumez <cdumez at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |akeerthi at apple.com,
| |simon.fraser at apple.com
--- Comment #11 from Chris Dumez <cdumez at apple.com> ---
In Element::focus(), we have:
```
if (!frame.hasHadUserInteraction() && !frame.isMainFrame() && !document->topOrigin().isSameOriginDomain(document->securityOrigin()))
return;
```
Which means that we don't allow elements in third-party frames to get focus in JS without a user interaction. This behavior appears to be stricter than both Chrome and Firefox so it may be a compatibility risk
I am adding a few people in CC would know more about focus than I do to see if we should update our behavior.
--
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/20230305/735ab766/attachment-0001.htm>
More information about the webkit-unassigned
mailing list