WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 219823
[WebAuthn][iOS] Turn on modern WebAuthn for default browsers
https://bugs.webkit.org/show_bug.cgi?id=219823
Summary
[WebAuthn][iOS] Turn on modern WebAuthn for default browsers
Jiewen Tan
Reported
2020-12-11 22:18:37 PST
Turn on modern WebAuthn for default browsers.
Attachments
Patch
(6.46 KB, patch)
2020-12-11 22:29 PST
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Patch
(42.39 KB, patch)
2020-12-12 14:25 PST
,
Jiewen Tan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-12-11 22:18:57 PST
<
rdar://problem/72250436
>
Jiewen Tan
Comment 2
2020-12-11 22:29:44 PST
Created
attachment 416093
[details]
Patch
Jiewen Tan
Comment 3
2020-12-12 14:25:54 PST
Created
attachment 416109
[details]
Patch
Brent Fulgham
Comment 4
2020-12-12 17:44:22 PST
Comment on
attachment 416109
[details]
Patch R=me
EWS
Comment 5
2020-12-12 17:58:39 PST
Committed
r270743
: <
https://trac.webkit.org/changeset/270743
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 416109
[details]
.
Jiewen Tan
Comment 6
2020-12-16 17:34:35 PST
A build fix: Committed
r270917
: <
https://trac.webkit.org/changeset/270917
>.
Sam Weinig
Comment 7
2020-12-19 10:57:07 PST
Comment on
attachment 416109
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416109&action=review
> Source/WebKit/WebProcess/WebPage/WebPage.cpp:3845 > +#if ENABLE(WEB_AUTHN) && PLATFORM(IOS) > + if (auto* connection = WebProcess::singleton().parentProcessConnection()) { > + if (isParentProcessAFullWebBrowser(connection->getAuditToken())) > + settings.setWebAuthenticationEnabled(true); > + } > +#endif
This will break some invariants assumed by WebCore::Settings since the "WebAuthenticationEnabled" setting is set as being automatically bound to Settings. This is seen by the fact that in WebPreferencesExpermental.yaml, WebAuthenticationEnabled does not have webcoreBinding: custom or webcoreBinding: none set. If you want custom setting behavior, you will need to change WebPreferencesExpermental.yaml and always set the value manually. That said, I think this is probably not really your intended behavior, since this will make it so that you can not disable feature when isParentProcessAFullWebBrowser() is true, which will break WKPreferencesSetWebAuthenticationEnabled as well as the testing SPIs.
Jiewen Tan
Comment 8
2020-12-21 16:06:40 PST
(In reply to Sam Weinig from
comment #7
)
> Comment on
attachment 416109
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=416109&action=review
> > > Source/WebKit/WebProcess/WebPage/WebPage.cpp:3845 > > +#if ENABLE(WEB_AUTHN) && PLATFORM(IOS) > > + if (auto* connection = WebProcess::singleton().parentProcessConnection()) { > > + if (isParentProcessAFullWebBrowser(connection->getAuditToken())) > > + settings.setWebAuthenticationEnabled(true); > > + } > > +#endif > > This will break some invariants assumed by WebCore::Settings since the > "WebAuthenticationEnabled" setting is set as being automatically bound to > Settings. This is seen by the fact that in WebPreferencesExpermental.yaml, > WebAuthenticationEnabled does not have webcoreBinding: custom or > webcoreBinding: none set. > > If you want custom setting behavior, you will need to change > WebPreferencesExpermental.yaml and always set the value manually. > > That said, I think this is probably not really your intended behavior, since > this will make it so that you can not disable feature when > isParentProcessAFullWebBrowser() is true, which will break > WKPreferencesSetWebAuthenticationEnabled as well as the testing SPIs.
Oops! Let me fixed that then.
Jiewen Tan
Comment 9
2021-01-13 15:14:50 PST
***
Bug 220559
has been marked as a duplicate of this bug. ***
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