WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
260303
os_log_set_hook return value is improperly ignored
https://bugs.webkit.org/show_bug.cgi?id=260303
Summary
os_log_set_hook return value is improperly ignored
Brent Fulgham
Reported
2023-08-16 14:28:05 PDT
In
Bug 253342
we adopted `os_log_set_hook` so that we could relay logging information from the WebContent process to the Network process to add to the logging system. The documentation for this method says: * os_log_set_hook returns the previously registered hook or NULL * when this function is first called. As a client, if you register a hook and the * return value is not NULL then it is your responsibility to chain the * previous hook into the new hook so that both are invoked. Any previously registered hook is unlikely to be able to interact with `logd`, since we are sandboxed, but perhaps there are other side-effects we want to retain. To comply with the API design, we should invoke any preregistered hooks before calling our own logic. <
rdar://112032774
>
Attachments
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2023-08-16 14:41:18 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/16754
EWS
Comment 2
2023-08-17 11:22:15 PDT
Committed
267007@main
(3372a68e3655): <
https://commits.webkit.org/267007@main
> Reviewed commits have been landed. Closing PR #16754 and removing active labels.
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