mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* chore: bump chromium in DEPS to 148.0.7749.1
* chore: bump chromium in DEPS to 148.0.7751.1
* chore: bump chromium in DEPS to 148.0.7753.1
* chore: bump chromium in DEPS to 148.0.7755.1
* chore: bump chromium to 148.0.7751.0 (main) (#50427)
* chore: bump chromium in DEPS to 148.0.7749.0
* chore: bump chromium in DEPS to 148.0.7751.0
* chore: update patches
* 7681299: Introduce OccludedWidgetInputProtector to track always-on-top widgets
Refs https://chromium-review.googlesource.com/c/chromium/src/+/7681299
* 7685453: chrome://accessibility: Don't AllowJavascript() in async calls
Refs https://chromium-review.googlesource.com/c/chromium/src/+/7685453
* 7665878: Prefer browser runtime over Node.js in HostRuntime detection
Refs https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7665878
* 7674037: Rename the bookmark-related interfaces of the Clipboard class to URL.
Refs https://chromium-review.googlesource.com/c/chromium/src/+/7674037
* 7621713: Migrate ServiceWorker framework to ChildProcessId
Refs https://chromium-review.googlesource.com/c/chromium/src/+/7621713
* 7680500: Migrate ServiceWorkerHost to ChildProcessId
Refs https://chromium-review.googlesource.com/c/chromium/src/+/7680500
* chore: update roller commit message lint script to handle devtools CLs
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
(cherry picked from commit c44d60cfe4)
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
40 lines
2.0 KiB
Diff
40 lines
2.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
Date: Fri, 20 May 2022 00:29:34 +0900
|
|
Subject: custom_protocols_plzserviceworker.patch
|
|
|
|
Allow registering custom protocols to handle service worker main script fetching with PlzServiceWorker.
|
|
|
|
Refs https://bugs.chromium.org/p/chromium/issues/detail?id=996511
|
|
|
|
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
|
|
index 701ce5df52e77f9277b5d548b82eef3120435bf2..0974935ea7a72ade31270c10abfee1be92a3dcb9 100644
|
|
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
|
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
|
@@ -1954,6 +1954,25 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
|
loader_factory_bundle_info =
|
|
context()->loader_factory_bundle_for_update_check()->Clone();
|
|
|
|
+ // Give the embedder a chance to register custom schemes that can
|
|
+ // handle loading the service worker main script.
|
|
+ // Previous registration triggered by
|
|
+ // ServiceWorkerContextWrapper::CreateNonNetworkPendingURLLoaderFactoryBundleForUpdateCheck
|
|
+ // happens early on browser startup before the JS in the main process
|
|
+ // is run by the embedder.
|
|
+ auto& pending_scheme_specific_factories =
|
|
+ static_cast<blink::PendingURLLoaderFactoryBundle*>(
|
|
+ loader_factory_bundle_info.get())
|
|
+ ->pending_scheme_specific_factories();
|
|
+ ContentBrowserClient::NonNetworkURLLoaderFactoryMap non_network_factories;
|
|
+ GetContentClient()
|
|
+ ->browser()
|
|
+ ->RegisterNonNetworkServiceWorkerUpdateURLLoaderFactories(
|
|
+ storage_partition_->browser_context(), &non_network_factories);
|
|
+ for (auto& [scheme, factory_remote] : non_network_factories) {
|
|
+ pending_scheme_specific_factories.emplace(
|
|
+ scheme, std::move(factory_remote));
|
|
+ }
|
|
|
|
static_cast<blink::PendingURLLoaderFactoryBundle*>(
|
|
loader_factory_bundle_info.get())
|