WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
238962
[WebAuthn] Ensure requestPin callback on main thread
https://bugs.webkit.org/show_bug.cgi?id=238962
Summary
[WebAuthn] Ensure requestPin callback on main thread
pascoe@apple.com
Reported
2022-04-07 15:00:47 PDT
When performing requests via ASA, this callback causes asserts to fail in debug builds.
Attachments
Patch
(2.38 KB, patch)
2022-04-07 15:07 PDT
,
pascoe@apple.com
no flags
Details
Formatted Diff
Diff
Patch for landing
(5.06 KB, patch)
2022-04-08 10:54 PDT
,
pascoe@apple.com
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-04-07 15:00:57 PDT
<
rdar://problem/91446051
>
pascoe@apple.com
Comment 2
2022-04-07 15:07:05 PDT
Created
attachment 456974
[details]
Patch
Brent Fulgham
Comment 3
2022-04-08 10:38:49 PDT
Comment on
attachment 456974
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=456974&action=review
r=me
> Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticationPanelClient.mm:138 > + completionHandler(pin.get());
I recommend adding a RELEASE_ASSERT(isMainThread()) to the logic of the completion handler to avoid future mistakes.
Brent Fulgham
Comment 4
2022-04-08 10:44:51 PDT
Comment on
attachment 456974
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=456974&action=review
>> Source/WebKit/UIProcess/WebAuthentication/Cocoa/WebAuthenticationPanelClient.mm:138 >> + completionHandler(pin.get()); > > I recommend adding a RELEASE_ASSERT(isMainThread()) to the logic of the completion handler to avoid future mistakes.
Actually, I see you are using the more-correct RunLoop::isMain() in the caller, so no other action needed (except perhaps making it a RELEASE_ASSERT, which might be important to prevent UIKit code from ever running on a background thread.
pascoe@apple.com
Comment 5
2022-04-08 10:54:48 PDT
Created
attachment 457094
[details]
Patch for landing
EWS
Comment 6
2022-04-11 09:20:07 PDT
Committed
r292710
(
249501@main
): <
https://commits.webkit.org/249501@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 457094
[details]
.
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