Bug 165843 - iOS: An element with tabindex is not focusable unless there is no mouse event handler
Summary: iOS: An element with tabindex is not focusable unless there is no mouse event...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 10
Hardware: iPhone / iPad iOS 10
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-12-14 00:47 PST by Ryosuke Niwa
Modified: 2016-12-14 13:58 PST (History)
3 users (show)

See Also:


Attachments
Fixes the bug (11.20 KB, patch)
2016-12-14 00:54 PST, Ryosuke Niwa
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2016-12-14 00:47:18 PST
On iOS, an element with tabindex ins't focusable unless there is a mouse event listener on it.

<rdar://problem/10587484>
Comment 1 Ryosuke Niwa 2016-12-14 00:54:00 PST
Created attachment 297071 [details]
Fixes the bug
Comment 2 Ryosuke Niwa 2016-12-14 00:54:58 PST
Comment on attachment 297071 [details]
Fixes the bug

View in context: https://bugs.webkit.org/attachment.cgi?id=297071&action=review

> Source/WebCore/page/ios/FrameIOS.mm:-264
> -        ASSERT(!node->isInShadowTree() || node->containingShadowRoot()->mode() != ShadowRootMode::UserAgent);
> -

Sorry, Antti, I forgot to address your review comment in https://bugs.webkit.org/show_bug.cgi?id=165551#c18
so I'm fixing it here.
Comment 3 Ryosuke Niwa 2016-12-14 13:58:11 PST
Committed r209833: <http://trac.webkit.org/changeset/209833>