WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 215622
218290
Using ShadowRoot.delegatesFocus causes page to refresh
https://bugs.webkit.org/show_bug.cgi?id=218290
Summary
Using ShadowRoot.delegatesFocus causes page to refresh
Caleb Williams
Reported
2020-10-28 09:53:06 PDT
Attaching a shadow root with `delegatesFocus: true` will break a page of a click occurs inside the shadow DOM. A simple reproduction can be found a
https://codepen.io/pen/MWeQaME
Attachments
Add attachment
proposed patch, testcase, etc.
Caleb Williams
Comment 1
2020-10-28 10:15:02 PDT
Update: This seems to happen only when there is no to focusable child in the shadow root (including buttons due to how WebKit handles button focus). With something like an input in the shadow root, things work just fine.
Smoley
Comment 2
2020-10-28 11:07:43 PDT
Thanks for filing, I can reproduce this on Safari 14.0 but I haven't been able to reproduce it on Safari 14.0.1 or 14.1. Are you able to reproduce this on later builds?
Radar WebKit Bug Importer
Comment 3
2020-10-28 11:07:57 PDT
<
rdar://problem/70771527
>
Smoley
Comment 4
2020-10-28 11:28:07 PDT
Apple internal see
rdar://66832677
.
Smoley
Comment 5
2020-10-28 11:29:01 PDT
*** This bug has been marked as a duplicate of
bug 215622
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug