[Webkit-unassigned] [Bug 280630] New: [iOS] navigator.credentials.get fails on newly-opened tab in non-Safari browsers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 30 12:02:35 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=280630
Bug ID: 280630
Summary: [iOS] navigator.credentials.get fails on newly-opened
tab in non-Safari browsers
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
URL: https://webauthn-new-tab-demo.glitch.me/
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ajuma at chromium.org
CC: jiewen_tan at apple.com, wenson_hsieh at apple.com
Depends on: 226025
Steps to reproduce:
1) Open a new tab using window.open()
2) Call navigator.credentials.get() to trigger WebAuthn-based authentication in the new tab
Expected result:
WebAuthn-based authentication flow is triggered
Actual result:
On non-Safari browsers on iOS, the call to navigator.credentials.get fails.
On Safari, the call succeeds and authentication UI is triggered.
Here's a test page that demonstrates the bug: https://webauthn-new-tab-demo.glitch.me/
The underlying problem is bug 226025. In non-Safari browsers, document.hasFocus() is false until the user interacts with the page, but in Safari it's true from the beginning. But having focus is a prerequisite for navigator.credentials.get().
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=226025
[Bug 226025] document and window does not initially have focus in WKWebView
--
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/20240930/d4868694/attachment.htm>
More information about the webkit-unassigned
mailing list