[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 <kode54@gmail.com>
main
Christopher Snowhill 2022-07-11 19:38:18 -07:00
parent 749e92694e
commit 32940d3277
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}