[Webkit-unassigned] [Bug 225494] New: [macOS] Sync High Level Toolbox library before entering sandbox

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 6 16:32:23 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225494

            Bug ID: 225494
           Summary: [macOS] Sync High Level Toolbox library before
                    entering sandbox
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

AppKit calls into an older library (HLToolkit) to handle some menu operations. This library wants to know if its in a background application, and does so by communicating with LaunchServices. However, we close our connection to LaunchServices during WebContent process launch, which prevents these calls from working.

Although this failure is harmless on production systems (it fails as 'background process', which is what we want) it triggers assertions and logging on internal systems that masks useful logs and wastes power and cycles.

If we invoke HLTBIsCurrentProcessBackgroundOnly() at launch, we can complete our LaunchServices communications prior to cutting them off as we enter the sandbox. HLToolbox caches the result, so will perform properly for the rest of the WebContent process runtime.

<rdar://problem/77171527>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210506/f458abb9/attachment.htm>


More information about the webkit-unassigned mailing list