auto parentProcessAuditToken = RemoteInspector::singleton().parentProcessAuditToken();
if (!linkedOnOrAfterSDKWithBehavior(SDKAlignedBehavior::InspectableDefaultsToDisabled)) {
#if PLATFORM(MAC)
auto developerProvisioningEntitlement = "com.apple.security.get-task-allow"_s;
#else
auto developerProvisioningEntitlement = "get-task-allow"_s;
#endif
if (mainProcessHasEntitlement(developerProvisioningEntitlement, parentProcessAuditToken)) {
WTFLogAlways("Inspection is enabled by default for process or parent application with '%s' entitlement linked against old SDK. Use `inspectable` API to enable inspection on newer SDKs.", developerProvisioningEntitlement.characters());
returntrue;
}
}
#if PLATFORM(MAC)
auto deprecatedWebInspectorAllowEntitlement = "com.apple.webinspector.allow"_s;
#else
auto deprecatedWebInspectorAllowEntitlement = "com.apple.private.webinspector.allow-remote-inspection"_s;
#endif
if (mainProcessHasEntitlement(deprecatedWebInspectorAllowEntitlement, parentProcessAuditToken)) {
WTFLogAlways("Inspection is enabled by default for process or parent application with deprecated '%s' entitlement. Use `inspectable` API to enable inspection instead.", deprecatedWebInspectorAllowEntitlement.characters());