WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
236789
AX: isAXAuthenticatedCallback must be handled on the main runloop
https://bugs.webkit.org/show_bug.cgi?id=236789
Summary
AX: isAXAuthenticatedCallback must be handled on the main runloop
Tyler Wilcock
Reported
2022-02-17 10:23:07 PST
isAXAuthenticatedCallback in WebProcess Cocoa performs IPC to the UI process to determine if the given auditToken is valid. This causes a crash with isolated tree mode enabled as IPC must be performed on the main thread / runloop. We should dispatch to the main runloop in this function.
Attachments
Patch
(2.15 KB, patch)
2022-02-17 10:26 PST
,
Tyler Wilcock
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-02-17 10:23:20 PST
<
rdar://problem/89094972
>
Tyler Wilcock
Comment 2
2022-02-17 10:26:04 PST
Created
attachment 452385
[details]
Patch
chris fleizach
Comment 3
2022-02-17 10:50:41 PST
Comment on
attachment 452385
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=452385&action=review
> Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:229 > + WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::IsAXAuthenticated(auditToken), Messages::WebProcessProxy::IsAXAuthenticated::Reply(authenticated), 0);
can we cache this? why do we need to keep checking this?
Tyler Wilcock
Comment 4
2022-02-17 11:14:01 PST
(In reply to chris fleizach from
comment #3
)
> Comment on
attachment 452385
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=452385&action=review
> > > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:229 > > + WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::IsAXAuthenticated(auditToken), Messages::WebProcessProxy::IsAXAuthenticated::Reply(authenticated), 0); > > can we cache this? why do we need to keep checking this?
It's requested very infrequently, once per AX client that tries to talk to the web process, so I don't think caching would be beneficial.
EWS
Comment 5
2022-02-18 08:42:57 PST
Committed
r290128
(
247472@main
): <
https://commits.webkit.org/247472@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 452385
[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