Bug 263078

Summary: WebContent.Development service missing RunningBoard assertion entitlement
Product: WebKit Reporter: Elliott Williams <emw>
Component: WebKit2Assignee: Elliott Williams <emw>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, bfulgham, cdumez, kkinnunen, rreno, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Elliott Williams 2023-10-12 09:34:43 PDT
When building the development service, we disable all restricted entitlements so that the debugger can attach to it (see https://bugs.webkit.org/show_bug.cgi?id=187355). But this means it does not have the com.apple.runningboard.assertions.webkit entitlement, which we need to actually take RunningBoard assertions. We think this may be leading to the development service getting unexpectedly suspended or deprioritized.
Comment 1 Radar WebKit Bug Importer 2023-10-12 09:35:20 PDT
<rdar://problem/116866896>
Comment 2 Alexey Proskuryakov 2023-10-12 10:28:03 PDT
If it's also a restricted entitlement, then presumably we need to teach WebContent to work without it?
Comment 3 Chris Dumez 2023-10-12 10:38:53 PDT
(In reply to Alexey Proskuryakov from comment #2)
> If it's also a restricted entitlement, then presumably we need to teach
> WebContent to work without it?

It is controlled by the plist whether or not our processes are managed by running board or not.


see Source/WebKit/Scripts/update-info-plist-for-runningboard.sh
Comment 4 Elliott Williams 2023-10-12 10:40:24 PDT
Speculative fix incoming.
Comment 5 Elliott Williams 2023-10-12 10:40:33 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19005
Comment 6 EWS 2023-10-13 16:24:42 PDT
Committed 269328@main (f8192d525e8b): <https://commits.webkit.org/269328@main>

Reviewed commits have been landed. Closing PR #19005 and removing active labels.