From 42409d860ba3df5a6a822e95e605ddf9ffd9880a Mon Sep 17 00:00:00 2001 From: Charlie Hess Date: Thu, 20 Aug 2020 18:01:08 -0400 Subject: [PATCH] fix: Resolve bookmarks without mounting network drives (#24708) --- shell/browser/api/electron_api_app_mas.mm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/shell/browser/api/electron_api_app_mas.mm b/shell/browser/api/electron_api_app_mas.mm index a23a4f503d3..56f023d4410 100644 --- a/shell/browser/api/electron_api_app_mas.mm +++ b/shell/browser/api/electron_api_app_mas.mm @@ -32,12 +32,13 @@ base::RepeatingCallback App::StartAccessingSecurityScopedResource( // Create bookmarkUrl from NSData. BOOL isStale = false; NSError* error = nil; - NSURL* bookmarkUrl = - [NSURL URLByResolvingBookmarkData:bookmarkData - options:NSURLBookmarkResolutionWithSecurityScope - relativeToURL:nil - bookmarkDataIsStale:&isStale - error:&error]; + NSURL* bookmarkUrl = [NSURL + URLByResolvingBookmarkData:bookmarkData + options:NSURLBookmarkResolutionWithSecurityScope | + NSURLBookmarkResolutionWithoutMounting + relativeToURL:nil + bookmarkDataIsStale:&isStale + error:&error]; if (error != nil) { NSString* err =