Skip to content

Commit

Permalink
Revert [256301@main] Unconditionally add runningboard entitlement on …
Browse files Browse the repository at this point in the history
…macOS 13

https://bugs.webkit.org/show_bug.cgi?id=247379
rdar://101879177

Unreviewed revert.

* Source/WebKit/Scripts/process-entitlements.sh:

Canonical link: https://commits.webkit.org/256305@main
  • Loading branch information
robert-jenner committed Nov 4, 2022
1 parent e43d0d6 commit 0370da6
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Source/WebKit/Scripts/process-entitlements.sh
Expand Up @@ -113,18 +113,14 @@ function mac_process_gpu_entitlements()
plistbuddy Add :com.apple.private.screencapturekit.sharingsession bool YES
plistbuddy Add :com.apple.private.tcc.allow array
plistbuddy Add :com.apple.private.tcc.allow:0 string kTCCServiceScreenCapture
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi

plistbuddy Add :com.apple.private.memory.ownership_transfer bool YES
plistbuddy Add :com.apple.private.webkit.use-xpc-endpoint bool YES
plistbuddy Add :com.apple.rootless.storage.WebKitGPUSandbox bool YES
plistbuddy Add :com.apple.QuartzCore.webkit-end-points bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
then
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi
}

function mac_process_network_entitlements()
Expand All @@ -148,6 +144,11 @@ function mac_process_network_entitlements()
plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
then
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi

plistbuddy Add :com.apple.private.launchservices.allowedtochangethesekeysinotherapplications array
plistbuddy Add :com.apple.private.launchservices.allowedtochangethesekeysinotherapplications:0 string LSActivePageUserVisibleOriginsKey
plistbuddy Add :com.apple.private.launchservices.allowedtochangethesekeysinotherapplications:1 string LSDisplayName
Expand All @@ -157,11 +158,6 @@ function mac_process_network_entitlements()
plistbuddy Add :com.apple.private.webkit.adattributiond bool YES
plistbuddy Add :com.apple.private.webkit.webpush bool YES
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
then
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi
}

function webcontent_sandbox_entitlements()
Expand Down Expand Up @@ -202,6 +198,7 @@ function mac_process_webcontent_shared_entitlements()
if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
then
webcontent_sandbox_entitlements
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi

if [[ "${WK_WEBCONTENT_SERVICE_NEEDS_XPC_DOMAIN_EXTENSION_ENTITLEMENT}" == YES ]]
Expand All @@ -210,11 +207,6 @@ function mac_process_webcontent_shared_entitlements()
fi
fi

if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
then
plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
fi

if [[ "${WK_XPC_SERVICE_VARIANT}" == Development ]]
then
plistbuddy Add :com.apple.security.cs.disable-library-validation bool YES
Expand Down

0 comments on commit 0370da6

Please sign in to comment.