From 32940d3277fd86c8a32fbd98c681729f82ee8d4d Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 11 Jul 2022 19:38:18 -0700 Subject: [PATCH] [Sandbox Broker] Only pop suggester for local URLs Only pop up the path suggester and check on local file URLs, not remote URLs, which shouldn't be checked, since they don't require sandbox permission grants or bookmarks. Signed-off-by: Christopher Snowhill --- Utils/SandboxBroker.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Utils/SandboxBroker.m b/Utils/SandboxBroker.m index 3a10a2a2d..036b85dc8 100644 --- a/Utils/SandboxBroker.m +++ b/Utils/SandboxBroker.m @@ -410,6 +410,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc - (BOOL)areAllPathsSafe:(NSArray *)urls { for(NSURL *url in urls) { + if(![url isFileURL]) continue; if(![self recursivePathTest:url]) { return NO; }