### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

master

### What operating system are you using?

macOS

### Operating System Version

macOS Monterey 12.2

### What arch are you using?

x64

### Last Known Working Electron version

N/A

### Expected Behavior

Clicking "Open in Containing Folder" opens the file's containing directory and selects the specified file.

<img width="809" alt="Screen Shot 2022-02-21 at 10 42 21 AM" src="https://user-images.githubusercontent.com/2036040/154929325-8c0ddb3a-771f-4ba3-8454-8c291db29b54.png">


### Actual Behavior

The file opens as default-specified and Electron crashes.

### Testcase Gist URL

_No response_

### Additional Information

_No response_
shell/browser/ui/inspectable_web_contents.cc
})");
  network::ResourceRequest resource_request;
  resource_request.url = gurl;
  resource_request.site_for_cookies = net::SiteForCookies::FromUrl(gurl);
  resource_request.headers.AddHeadersFromString(headers);
  auto* protocol_registry = ProtocolRegistry::FromBrowserContext(
      GetDevToolsWebContents()->GetBrowserContext());
  NetworkResourceLoader::URLLoaderFactoryHolder url_loader_factory;
  if (gurl.SchemeIsFile()) {
    mojo::PendingRemote<network::mojom::URLLoaderFactory> pending_remote =
        AsarURLLoaderFactory::Create();
    url_loader_factory = network::SharedURLLoaderFactory::Create(
        std::make_unique<network::WrapperPendingSharedURLLoaderFactory>(
            std::move(pending_remote)));
  } else if (protocol_registry->IsProtocolRegistered(gurl.scheme())) {
    auto& protocol_handler = protocol_registry->handlers().at(gurl.scheme());
    mojo::PendingRemote<network::mojom::URLLoaderFactory> pending_remote =
        ElectronURLLoaderFactory::Create(protocol_handler.first,
                                         protocol_handler.second);
    url_loader_factory = network::SharedURLLoaderFactory::Create(
        std::make_unique<network::WrapperPendingSharedURLLoaderFactory>(
            std::move(pending_remote)));
  } else {
    auto* partition = GetDevToolsWebContents()
                          ->GetBrowserContext()
                          ->GetDefaultStoragePartition();
    url_loader_factory = partition->GetURLLoaderFactoryForBrowserProcess();
  }
  NetworkResourceLoader::Create(
      stream_id, this, resource_request, traffic_annotation,