Changeset 254343 in webkit


Ignore:
Timestamp:
Jan 10, 2020 9:52:55 AM (4 years ago)
Author:
Brent Fulgham
Message:

[macOS] Issue sandbox extension to "com.apple.nesessionmanager" prior to 10.15
https://bugs.webkit.org/show_bug.cgi?id=206031
<rdar://problem/58455467>

Reviewed by Per Arne Vollan.

The mach name of 'com.apple.nesessionmanager' changed between macOS 10.14 and 10.15.
We should continue to issue the old name when building for older operating systems."

Covered by existing tests.

  • UIProcess/Cocoa/WebProcessPoolCocoa.mm:

(WebKit::WebProcessPool::platformInitializeWebProcess):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r254342 r254343  
     12020-01-10  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [macOS] Issue sandbox extension to "com.apple.nesessionmanager" prior to 10.15
     4        https://bugs.webkit.org/show_bug.cgi?id=206031
     5        <rdar://problem/58455467>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        The mach name of 'com.apple.nesessionmanager' changed between macOS 10.14 and 10.15.
     10        We should continue to issue the old name when building for older operating systems."
     11
     12        Covered by existing tests.
     13
     14        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     15        (WebKit::WebProcessPool::platformInitializeWebProcess):
     16
    1172020-01-10  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r254130 r254343  
    335335        SandboxExtension::createHandleForMachLookup("com.apple.nehelper", WTF::nullopt, handle);
    336336        parameters.neHelperExtensionHandle = WTFMove(handle);
     337#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
     338        SandboxExtension::createHandleForMachLookup("com.apple.nesessionmanager", WTF::nullopt, handle);
     339#else
    337340        SandboxExtension::createHandleForMachLookup("com.apple.nesessionmanager.content-filter", WTF::nullopt, handle);
     341#endif
    338342        parameters.neSessionManagerExtensionHandle = WTFMove(handle);
    339343    }
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r254237 r254343  
    869869    (require-all
    870870        (extension "com.apple.webkit.extension.mach")
    871         (global-name "com.apple.nehelper" "com.apple.nesessionmanager.content-filter")))
     871        (global-name
     872            "com.apple.nehelper"
     873#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 || PLATFORM(MACCATALYST)
     874            "com.apple.nesessionmanager.content-filter"
     875#else
     876            "com.apple.nesessionmanager"
     877#endif
     878        )
     879    )
     880)
    872881
    873882(when (defined? 'syscall-unix)
Note: See TracChangeset for help on using the changeset viewer.