This test started failing: protocol module protocol.registerSchemesAsPrivileged allowServiceWorkers should be able to register service worker for custom scheme

with https://github.com/electron/electron/pull/32419.
shell/browser/electron_browser_client.cc
factories->emplace(extensions::kExtensionScheme, std::move(factory));
  if (!web_contents)
    return;
  extensions::ElectronExtensionWebContentsObserver* web_observer =
      extensions::ElectronExtensionWebContentsObserver::FromWebContents(
          web_contents);
  
  
  if (!web_observer)
    return;
  const extensions::Extension* extension =
      web_observer->GetExtensionFromFrame(frame_host, false);
  if (!extension)
    return;
  
  if (extension->is_extension() &&
      extensions::Manifest::IsComponentLocation(extension->location())) {
    
    
    factories->emplace(content::kChromeUIScheme,
                       content::CreateWebUIURLLoaderFactory(
                           frame_host, content::kChromeUIScheme,
                           {content::kChromeUIResourcesHost}));
  }
  
  
  
  extensions::Manifest::Type type = extension->GetType();
  if (type == extensions::Manifest::TYPE_EXTENSION &&
      AllowFileAccess(extension->id(), web_contents->GetBrowserContext())) {