Skip to content

Commit 72a0892

Browse files
electron-botJohn KleinschmidtElectron Botdeepak1556codebytere
authored
chore: bump chromium to a84d34e372b8fb5e9a94b1b4b447e (master) (electron#23908)
* chore: bump chromium in DEPS to a7249f73ae05d456c04487ef1693325f719556dd * chore: bump chromium in DEPS to 202466fa40b58f0bb9c9a76a037d1c50154c099e * chore: bump chromium in DEPS to 2dd1b25c8d794b50fb0dd911e0c4e909ff39f145 * Update patches * update patches * Revert "[printing] Mojofy PrintHostMsg_CheckForCancel" https://chromium-review.googlesource.com/c/chromium/src/+/2226002 * chore: bump chromium in DEPS to 8c1542e7dd36854fdf4abd1a8021eeb65a6a2e2b * chore: bump chromium in DEPS to 078bc6d796334fb403acd8975b99d1c8ecd028e8 * chore: bump chromium in DEPS to d96e9f16ae852ec9dbd15bf17df3d440402413bb * update patches * chore: update patches * Use ExtensionSystem::is_ready() instead of ExtensionService::is_ready() https://chromium-review.googlesource.com/c/chromium/src/+/2207499 * Remove WebImeTextSpan https://chromium-review.googlesource.com/c/chromium/src/+/2225240 * Remove PDFAnnotations flag altogether. https://chromium-review.googlesource.com/c/chromium/src/+/2229317 * Rework find-from-selection so it's synchronous -- fixes flaky tests https://chromium-review.googlesource.com/c/chromium/src/+/2181570 * fixup! Revert "[printing] Mojofy PrintHostMsg_CheckForCancel" * chore: bump chromium in DEPS to a8a280835830c65145ed8573a9a09f36d3920418 * update sysroots * update patches * update patches * Take RFH as a parameter for DidUpdateFavicon/ManifestURL https://chromium-review.googlesource.com/c/chromium/src/+/2224745 * chore: bump chromium in DEPS to b6149cb5a5e32caf8eab67b97ef3072b72521ca8 * Update patches * Rename net::cookie_util::StripStatuses to StripAccessResults https://chromium-review.googlesource.com/c/chromium/src/+/2212697 * use net::CookieAccessResultList instead of net::CookieAccessResultList * fix mas_no_private_api patch https://chromium-review.googlesource.com/c/chromium/src/+/2230281 * chore: bump chromium in DEPS to a27feee1643d952e48f77c92d8c03aedea14b720 * update patches * fix: add new navigation state REUSE_SITE_INSTANCE To fix the new set of state checks added in https://chromium-review.googlesource.com/c/chromium/src/+/2215141 * chore: bump chromium in DEPS to ff4559a4c13d20888202474e4ab9917dbdad8a9a * update patches * Cleanup usages of old mojo types and remove unused code https://chromium-review.googlesource.com/c/chromium/src/+/2235699 * chore: bump chromium in DEPS to 05279845f76eb22900a8b0d1a11d4fd339a8e53b * chore: bump chromium in DEPS to 821558279767cffec90e3b5b947865f90089fed3 * chore: bump chromium in DEPS to 1aef04e6486be337d3dd820b2d64d6320a1b9c13 * chore: bump chromium in DEPS to dc86386e8fdd796a0f7577e91e42a7f8b7e9bc78 * chore: bump chromium in DEPS to 64f2360794f14643764092ba3e58e2ed8f9fee12 * chore: update patches * refactor: MessageLoop, you are terminated \o/ Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2246173 * refactor: plumb DownloadSchedule to DownloadItem Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2242202 * chore: fix variable typo in IPC * chore: s/BindPipeAndPassReceiver/BindNewPipeAndPassReceiver * chore: update patches * chore: XEvent becomes x11::Event Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2240355 * fixup! refactor: MessageLoop, you are terminated \o/ * fixup! chore: XEvent becomes x11::Event * build: update v8 headers * chore: fix windows build * chore: disable SameSite-by-default changes https://chromium-review.googlesource.com/c/chromium/src/+/2231445 * update printing.patch * chore: bump chromium DEPS to 9ae03ef8f7d4f6ac663f725bcfe70311987652f3 * Convert WidgetHostMsg_SelectionBoundsChanged/TextInputStateChanged https://chromium-review.googlesource.com/c/chromium/src/+/2243531 * chore: update v8 patches * [XProto] Replace usages of XID and ::Window with x11::Window https://chromium-review.googlesource.com/c/chromium/src/+/2249389 * Update VideoFrameMetadata to use base::Optionals https://chromium-review.googlesource.com/c/chromium/src/+/2231706 https://chromium-review.googlesource.com/c/chromium/src/+/2238361 * --disable-dev-shm-usage for gpu process crash * [v8] Allow for 4GB TypedArrays https://chromium-review.googlesource.com/c/v8/v8/+/2249668 * update lib_src_switch_buffer_kmaxlength_to_size_t.patch * disable app.getGPUInfo spec on linux * update patches Co-authored-by: John Kleinschmidt <[email protected]> Co-authored-by: Electron Bot <[email protected]> Co-authored-by: deepak1556 <[email protected]> Co-authored-by: Shelley Vohr <[email protected]> Co-authored-by: Samuel Attard <[email protected]>
1 parent 61a05ca commit 72a0892

File tree

107 files changed

+1029
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1029
-663
lines changed

Diff for: DEPS

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ gclient_gn_args = [
1313

1414
vars = {
1515
'chromium_version':
16-
'ff6c4f4b826d66c2e32380bf5d1eb5e1fe37faef',
16+
'9ae03ef8f7d4f6ac663f725bcfe70311987652f3',
1717
'node_version':
1818
'v12.18.1',
1919
'nan_version':

Diff for: chromium_src/chrome/browser/process_singleton_posix.cc

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
#include "base/logging.h"
6969
#include "base/macros.h"
7070
#include "base/memory/ref_counted.h"
71-
#include "base/message_loop/message_loop.h"
7271
#include "base/metrics/histogram_macros.h"
7372
#include "base/path_service.h"
7473
#include "base/posix/eintr_wrapper.h"

Diff for: chromium_src/chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.cc

+17-17
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ GlobalMenuBarRegistrarX11* GlobalMenuBarRegistrarX11::GetInstance() {
2424
return base::Singleton<GlobalMenuBarRegistrarX11>::get();
2525
}
2626

27-
void GlobalMenuBarRegistrarX11::OnWindowMapped(unsigned long xid) {
28-
live_xids_.insert(xid);
27+
void GlobalMenuBarRegistrarX11::OnWindowMapped(x11::Window window) {
28+
live_windows_.insert(window);
2929

3030
if (registrar_proxy_)
31-
RegisterXID(xid);
31+
RegisterXWindow(window);
3232
}
3333

34-
void GlobalMenuBarRegistrarX11::OnWindowUnmapped(unsigned long xid) {
34+
void GlobalMenuBarRegistrarX11::OnWindowUnmapped(x11::Window window) {
3535
if (registrar_proxy_)
36-
UnregisterXID(xid);
36+
UnregisterXWindow(window);
3737

38-
live_xids_.erase(xid);
38+
live_windows_.erase(window);
3939
}
4040

4141
GlobalMenuBarRegistrarX11::GlobalMenuBarRegistrarX11()
@@ -63,9 +63,9 @@ GlobalMenuBarRegistrarX11::~GlobalMenuBarRegistrarX11() {
6363
}
6464
}
6565

66-
void GlobalMenuBarRegistrarX11::RegisterXID(unsigned long xid) {
66+
void GlobalMenuBarRegistrarX11::RegisterXWindow(x11::Window window) {
6767
DCHECK(registrar_proxy_);
68-
std::string path = electron::GlobalMenuBarX11::GetPathForWindow(xid);
68+
std::string path = electron::GlobalMenuBarX11::GetPathForWindow(window);
6969

7070
ANNOTATE_SCOPED_MEMORY_LEAK; // http://crbug.com/314087
7171
// TODO(erg): The mozilla implementation goes to a lot of callback trouble
@@ -76,13 +76,13 @@ void GlobalMenuBarRegistrarX11::RegisterXID(unsigned long xid) {
7676
// I don't see any reason why we should care if "RegisterWindow" completes or
7777
// not.
7878
g_dbus_proxy_call(registrar_proxy_, "RegisterWindow",
79-
g_variant_new("(uo)", xid, path.c_str()),
79+
g_variant_new("(uo)", window, path.c_str()),
8080
G_DBUS_CALL_FLAGS_NONE, -1, nullptr, nullptr, nullptr);
8181
}
8282

83-
void GlobalMenuBarRegistrarX11::UnregisterXID(unsigned long xid) {
83+
void GlobalMenuBarRegistrarX11::UnregisterXWindow(x11::Window window) {
8484
DCHECK(registrar_proxy_);
85-
std::string path = electron::GlobalMenuBarX11::GetPathForWindow(xid);
85+
std::string path = electron::GlobalMenuBarX11::GetPathForWindow(window);
8686

8787
ANNOTATE_SCOPED_MEMORY_LEAK; // http://crbug.com/314087
8888
// TODO(erg): The mozilla implementation goes to a lot of callback trouble
@@ -93,7 +93,7 @@ void GlobalMenuBarRegistrarX11::UnregisterXID(unsigned long xid) {
9393
// I don't see any reason why we should care if "UnregisterWindow" completes
9494
// or not.
9595
g_dbus_proxy_call(registrar_proxy_, "UnregisterWindow",
96-
g_variant_new("(u)", xid), G_DBUS_CALL_FLAGS_NONE, -1,
96+
g_variant_new("(u)", window), G_DBUS_CALL_FLAGS_NONE, -1,
9797
nullptr, nullptr, nullptr);
9898
}
9999

@@ -120,10 +120,10 @@ void GlobalMenuBarRegistrarX11::OnProxyCreated(GObject* source,
120120

121121
void GlobalMenuBarRegistrarX11::OnNameOwnerChanged(GObject* /* ignored */,
122122
GParamSpec* /* ignored */) {
123-
// If the name owner changed, we need to reregister all the live xids with
124-
// the system.
125-
for (std::set<unsigned long>::const_iterator it = live_xids_.begin();
126-
it != live_xids_.end(); ++it) {
127-
RegisterXID(*it);
123+
// If the name owner changed, we need to reregister all the live x11::Window
124+
// with the system.
125+
for (std::set<x11::Window>::const_iterator it = live_windows_.begin();
126+
it != live_windows_.end(); ++it) {
127+
RegisterXWindow(*it);
128128
}
129129
}

Diff for: chromium_src/chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.h

+9-8
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@
1212
#include "base/memory/ref_counted.h"
1313
#include "base/memory/singleton.h"
1414
#include "ui/base/glib/glib_signal.h"
15+
#include "ui/gfx/x/xproto.h"
1516

1617
// Advertises our menu bars to Unity.
1718
//
1819
// GlobalMenuBarX11 is responsible for managing the DbusmenuServer for each
19-
// XID. We need a separate object to own the dbus channel to
20+
// x11::Window. We need a separate object to own the dbus channel to
2021
// com.canonical.AppMenu.Registrar and to register/unregister the mapping
21-
// between a XID and the DbusmenuServer instance we are offering.
22+
// between a x11::Window and the DbusmenuServer instance we are offering.
2223
class GlobalMenuBarRegistrarX11 {
2324
public:
2425
static GlobalMenuBarRegistrarX11* GetInstance();
2526

26-
void OnWindowMapped(unsigned long xid);
27-
void OnWindowUnmapped(unsigned long xid);
27+
void OnWindowMapped(x11::Window window);
28+
void OnWindowUnmapped(x11::Window window);
2829

2930
private:
3031
friend struct base::DefaultSingletonTraits<GlobalMenuBarRegistrarX11>;
@@ -33,8 +34,8 @@ class GlobalMenuBarRegistrarX11 {
3334
~GlobalMenuBarRegistrarX11();
3435

3536
// Sends the actual message.
36-
void RegisterXID(unsigned long xid);
37-
void UnregisterXID(unsigned long xid);
37+
void RegisterXWindow(x11::Window window);
38+
void UnregisterXWindow(x11::Window window);
3839

3940
CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11,
4041
void,
@@ -49,9 +50,9 @@ class GlobalMenuBarRegistrarX11 {
4950

5051
GDBusProxy* registrar_proxy_;
5152

52-
// Window XIDs which want to be registered, but haven't yet been because
53+
// x11::Window which want to be registered, but haven't yet been because
5354
// we're waiting for the proxy to become available.
54-
std::set<unsigned long> live_xids_;
55+
std::set<x11::Window> live_windows_;
5556

5657
DISALLOW_COPY_AND_ASSIGN(GlobalMenuBarRegistrarX11);
5758
};

Diff for: patches/chromium/.patches

-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ chore_use_electron_resources_not_chrome_for_spellchecker.patch
7474
add_trustedauthclient_to_urlloaderfactory.patch
7575
feat_allow_disabling_blink_scheduler_throttling_per_renderview.patch
7676
accessible_pane_view.patch
77-
fixme_grit_conflicts.patch
7877
fix_use_the_new_mediaplaypause_key_listener_for_internal_chrome.patch
7978
use_electron_resources_in_pdf_util.patch
8079
hack_plugin_response_interceptor_to_point_to_electron.patch
@@ -98,7 +97,6 @@ allow_setting_secondary_label_via_simplemenumodel.patch
9897
disable_unnecessary_ischromefirstrun_check.patch
9998
disable_dcheck_that_fails_with_software_compositing.patch
10099
fix_swap_global_proxies_before_initializing_the_windows_proxies.patch
101-
fix_default_to_ntlm_v2_in_network_service.patch
102100
feat_add_streaming-protocol_registry_to_multibuffer_data_source.patch
103101
fix_handling_non_client_pointer_events_from_pen_on_windows_10.patch
104102
remove_menu_window_task_item.patch

Diff for: patches/chromium/add_didinstallconditionalfeatures.patch

+15-15
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ DidCreateScriptContext is called, not all JS APIs are available in the
1010
context, which can cause some preload scripts to trip.
1111

1212
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
13-
index 831a3574055881f31a3e7dbc98c0525b47af5dcb..9626f181ee471fec68af7ddfc968f2d852698b74 100644
13+
index 4e195f960d7b9bf50f6784ce380a84a10867914f..dbf85ffe8504bdbab1c4c29f085e5307654d42f6 100644
1414
--- a/content/public/renderer/render_frame_observer.h
1515
+++ b/content/public/renderer/render_frame_observer.h
16-
@@ -114,6 +114,8 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
16+
@@ -115,6 +115,8 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
1717
virtual void DidHandleOnloadEvents() {}
1818
virtual void DidCreateScriptContext(v8::Local<v8::Context> context,
1919
int32_t world_id) {}
@@ -23,10 +23,10 @@ index 831a3574055881f31a3e7dbc98c0525b47af5dcb..9626f181ee471fec68af7ddfc968f2d8
2323
int32_t world_id) {}
2424
virtual void DidClearWindowObject() {}
2525
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
26-
index 0fe316e4d949bf2c0e64a2374a8f639e3afee104..cb612a7002a4ae808ca488e2aa2adbb759310964 100644
26+
index 0cb96dd693459a9747aa1e2c46c5257df510211a..010ed22b5da75c445b777bd0db503b268c7a767f 100644
2727
--- a/content/renderer/render_frame_impl.cc
2828
+++ b/content/renderer/render_frame_impl.cc
29-
@@ -4729,6 +4729,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
29+
@@ -4745,6 +4745,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
3030
observer.DidCreateScriptContext(context, world_id);
3131
}
3232

@@ -40,10 +40,10 @@ index 0fe316e4d949bf2c0e64a2374a8f639e3afee104..cb612a7002a4ae808ca488e2aa2adbb7
4040
int world_id) {
4141
for (auto& observer : observers_)
4242
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
43-
index c8772a65b238f52855a6634dbe1722491a663354..c856fb03735e3a46135492513e71daf3b1dc6c1a 100644
43+
index b1465918040a8eaafd5780aaf9fb6f870c9ea943..2fb7927168ac62c52d2e65942608dd9b73ac3133 100644
4444
--- a/content/renderer/render_frame_impl.h
4545
+++ b/content/renderer/render_frame_impl.h
46-
@@ -724,6 +724,8 @@ class CONTENT_EXPORT RenderFrameImpl
46+
@@ -722,6 +722,8 @@ class CONTENT_EXPORT RenderFrameImpl
4747
bool ShouldTrackUseCounter(const blink::WebURL& url) override;
4848
void DidCreateScriptContext(v8::Local<v8::Context> context,
4949
int world_id) override;
@@ -53,10 +53,10 @@ index c8772a65b238f52855a6634dbe1722491a663354..c856fb03735e3a46135492513e71daf3
5353
int world_id) override;
5454
void DidChangeScrollOffset() override;
5555
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
56-
index e8286b37ae00d2cbfea0f9138ecb6532c36324fc..1c5aae1c07e0c730a0cab28dccaa5a793d41d6ac 100644
56+
index 902504b8399c53fee972fe5549a4dbd39274a3c8..ddf6b6b696f7d990b7455ac6c9b8156a733b6c07 100644
5757
--- a/third_party/blink/public/web/web_local_frame_client.h
5858
+++ b/third_party/blink/public/web/web_local_frame_client.h
59-
@@ -547,6 +547,9 @@ class BLINK_EXPORT WebLocalFrameClient {
59+
@@ -542,6 +542,9 @@ class BLINK_EXPORT WebLocalFrameClient {
6060
virtual void DidCreateScriptContext(v8::Local<v8::Context>,
6161
int32_t world_id) {}
6262

@@ -67,7 +67,7 @@ index e8286b37ae00d2cbfea0f9138ecb6532c36324fc..1c5aae1c07e0c730a0cab28dccaa5a79
6767
virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
6868
int32_t world_id) {}
6969
diff --git a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
70-
index 1841d4bea144e2fe0fb69839d52ff2ba4aa6b551..64c5eb7d0da7684531b044de9d6d114fc897786e 100644
70+
index 5ac9a7ed3d0f91764452579992471c83104de64f..15ac214bc9177f2fc228cf93c459a7b385bdc582 100644
7171
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
7272
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
7373
@@ -201,6 +201,7 @@ void LocalWindowProxy::Initialize() {
@@ -79,10 +79,10 @@ index 1841d4bea144e2fe0fb69839d52ff2ba4aa6b551..64c5eb7d0da7684531b044de9d6d114f
7979
if (World().IsMainWorld()) {
8080
GetFrame()->Loader().DispatchDidClearWindowObjectInMainWorld();
8181
diff --git a/third_party/blink/renderer/core/exported/local_frame_client_impl.cc b/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
82-
index eae1fafbaab524e590f414b54b366a6d709fad47..97da1b1639618dded697eb72d5959926ce725e24 100644
82+
index ba02a164a799b2b9e92bbeeb2bff2a4a2fd7d662..42ed050d572b13f1302bfb9eb5b59b15ba5a6904 100644
8383
--- a/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
8484
+++ b/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
85-
@@ -348,6 +348,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
85+
@@ -349,6 +349,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
8686
web_frame_->Client()->DidCreateScriptContext(context, world_id);
8787
}
8888

@@ -97,10 +97,10 @@ index eae1fafbaab524e590f414b54b366a6d709fad47..97da1b1639618dded697eb72d5959926
9797
v8::Local<v8::Context> context,
9898
int32_t world_id) {
9999
diff --git a/third_party/blink/renderer/core/exported/local_frame_client_impl.h b/third_party/blink/renderer/core/exported/local_frame_client_impl.h
100-
index 7494f29aebe486454f35209a4a72d42dd46431a0..89f4129124b7fb01c449c51f767f4fe0dcc9c299 100644
100+
index 183a009cf58399966c9002786ede3d540aa068cb..dbe445cf40ec53e4b36e4a323334662c70359a38 100644
101101
--- a/third_party/blink/renderer/core/exported/local_frame_client_impl.h
102102
+++ b/third_party/blink/renderer/core/exported/local_frame_client_impl.h
103-
@@ -78,6 +78,8 @@ class LocalFrameClientImpl final : public LocalFrameClient {
103+
@@ -78,6 +78,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
104104

105105
void DidCreateScriptContext(v8::Local<v8::Context>,
106106
int32_t world_id) override;
@@ -123,10 +123,10 @@ index a8443a8bfc2542ffad472206214279c1223d493f..8c7a4dec19d6fbca615b7bc282b03881
123123
int32_t world_id) = 0;
124124
virtual bool AllowScriptExtensions() = 0;
125125
diff --git a/third_party/blink/renderer/core/loader/empty_clients.h b/third_party/blink/renderer/core/loader/empty_clients.h
126-
index 7f060dbe946a6df2d4e4f376512679390edadc07..435882fafb3e08b94424e812ee825e7a042dfef3 100644
126+
index a3797ca04ff968d67ce4c5da6b9f17abc1d7651d..e3f26a61cdc4042131ea58d744a9b487dd6f52ca 100644
127127
--- a/third_party/blink/renderer/core/loader/empty_clients.h
128128
+++ b/third_party/blink/renderer/core/loader/empty_clients.h
129-
@@ -334,6 +334,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
129+
@@ -336,6 +336,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
130130

131131
void DidCreateScriptContext(v8::Local<v8::Context>,
132132
int32_t world_id) override {}

Diff for: patches/chromium/add_realloc.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ when we override ReallocateBufferMemory, so we therefore need to implement
1212
Realloc on the v8 side and correspondingly in gin.
1313

1414
diff --git a/gin/array_buffer.cc b/gin/array_buffer.cc
15-
index 891a2e316f6c9eeda9670aaf5201ed57e5f7ba49..00ea3682f491175c6f9bea727de120f5f0de3dac 100644
15+
index 124c2f72a5cbc2abe8c7686c32b61718d4c95d4b..fa4a478450cc97d231496ab82c74c1a94d1f3557 100644
1616
--- a/gin/array_buffer.cc
1717
+++ b/gin/array_buffer.cc
1818
@@ -43,6 +43,10 @@ void* ArrayBufferAllocator::AllocateUninitialized(size_t length) {
@@ -54,10 +54,10 @@ index fa88b2bd0233a4c5ff35a26d10e20fa1b91e33b2..21504ce01403d20067c8439c0c61ee0d
5454
ArrayBufferContents::FreeMemory(data);
5555
}
5656
diff --git a/third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.cc b/third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.cc
57-
index fe4485a34797c93dba0626356716d729f223d905..65cf74482128d84a0b955af49bf83d7c097b4af1 100644
57+
index 5026ce05c5eb0be037ce4085488eb473828175a5..639173c18ddb743a4abe650cefdd94d257437262 100644
5858
--- a/third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.cc
5959
+++ b/third_party/blink/renderer/core/typed_arrays/array_buffer/array_buffer_contents.cc
60-
@@ -129,6 +129,11 @@ void* ArrayBufferContents::AllocateMemoryOrNull(size_t size,
60+
@@ -128,6 +128,11 @@ void* ArrayBufferContents::AllocateMemoryOrNull(size_t size,
6161
return AllocateMemoryWithFlags(size, policy, base::PartitionAllocReturnNull);
6262
}
6363

Diff for: patches/chromium/add_trustedauthclient_to_urlloaderfactory.patch

+12-12
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ WebContents, and cancels the authentication if there's no WebContents
1010
available, which there isn't in the case of the 'net' module.
1111

1212
diff --git a/services/network/public/mojom/network_context.mojom b/services/network/public/mojom/network_context.mojom
13-
index 2001e6202cf61d1c70bf81334b62d0502ea8c9ba..9dad884c877ae77d1a2460361112903c06023021 100644
13+
index 842a4d27ee7a27a4e5c6d60033cee6526aac1bee..07682bd496e0872498f1fd404466408ebf21583c 100644
1414
--- a/services/network/public/mojom/network_context.mojom
1515
+++ b/services/network/public/mojom/network_context.mojom
16-
@@ -198,6 +198,25 @@ struct CTPolicy {
16+
@@ -214,6 +214,25 @@ struct CTPolicy {
1717
array<string> excluded_legacy_spkis;
1818
};
1919

@@ -39,7 +39,7 @@ index 2001e6202cf61d1c70bf81334b62d0502ea8c9ba..9dad884c877ae77d1a2460361112903c
3939
interface CertVerifierClient {
4040
Verify(
4141
int32 default_error,
42-
@@ -627,6 +646,8 @@ struct URLLoaderFactoryParams {
42+
@@ -640,6 +659,8 @@ struct URLLoaderFactoryParams {
4343
// impact because of the extra process hops, so use should be minimized.
4444
pending_remote<TrustedURLLoaderHeaderClient>? header_client;
4545

@@ -49,7 +49,7 @@ index 2001e6202cf61d1c70bf81334b62d0502ea8c9ba..9dad884c877ae77d1a2460361112903c
4949
// the per-context allow patterns that is managed via NetworkContext
5050
// interface. This still respects the per-context block lists.
5151
diff --git a/services/network/url_loader.cc b/services/network/url_loader.cc
52-
index 5d984482a2e5e18216bfc2229a18a513558dbcf4..1662f0878df16639ad585694be428058ab5a6c92 100644
52+
index 80dc1f91fd4051dc054f1c9e9a5ab0087c4d66fd..4eec90182ae4944f219e12ff2673d0fbd24e112d 100644
5353
--- a/services/network/url_loader.cc
5454
+++ b/services/network/url_loader.cc
5555
@@ -437,6 +437,7 @@ URLLoader::URLLoader(
@@ -60,7 +60,7 @@ index 5d984482a2e5e18216bfc2229a18a513558dbcf4..1662f0878df16639ad585694be428058
6060
mojom::OriginPolicyManager* origin_policy_manager,
6161
std::unique_ptr<TrustTokenRequestHelperFactory> trust_token_helper_factory,
6262
mojo::PendingRemote<mojom::CookieAccessObserver> cookie_observer)
63-
@@ -496,6 +497,11 @@ URLLoader::URLLoader(
63+
@@ -497,6 +498,11 @@ URLLoader::URLLoader(
6464
header_client_.set_disconnect_handler(
6565
base::BindOnce(&URLLoader::OnMojoDisconnect, base::Unretained(this)));
6666
}
@@ -72,16 +72,16 @@ index 5d984482a2e5e18216bfc2229a18a513558dbcf4..1662f0878df16639ad585694be428058
7272
if (want_raw_headers_) {
7373
options_ |= mojom::kURLLoadOptionSendSSLInfoWithResponse |
7474
mojom::kURLLoadOptionSendSSLInfoForCertificateError;
75-
@@ -994,7 +1000,7 @@ void URLLoader::OnReceivedRedirect(net::URLRequest* url_request,
76-
77-
void URLLoader::OnAuthRequired(net::URLRequest* url_request,
78-
const net::AuthChallengeInfo& auth_info) {
75+
@@ -1016,7 +1022,7 @@ void URLLoader::OnAuthRequired(net::URLRequest* url_request,
76+
// |this| may have been deleted.
77+
return;
78+
}
7979
- if (!network_context_client_) {
8080
+ if (!network_context_client_ && !auth_client_) {
8181
OnAuthCredentials(base::nullopt);
8282
return;
8383
}
84-
@@ -1010,11 +1016,20 @@ void URLLoader::OnAuthRequired(net::URLRequest* url_request,
84+
@@ -1032,11 +1038,20 @@ void URLLoader::OnAuthRequired(net::URLRequest* url_request,
8585
if (url_request->response_headers())
8686
head->headers = url_request->response_headers();
8787
head->auth_challenge_info = auth_info;
@@ -108,7 +108,7 @@ index 5d984482a2e5e18216bfc2229a18a513558dbcf4..1662f0878df16639ad585694be428058
108108
auth_challenge_responder_receiver_.set_disconnect_handler(
109109
base::BindOnce(&URLLoader::DeleteSelf, base::Unretained(this)));
110110
diff --git a/services/network/url_loader.h b/services/network/url_loader.h
111-
index 077344d12f001b00590598bccbba2d614c8c1af2..d9c8a41c9c4fe11277392dd428c71f022f22063b 100644
111+
index f5436f10a312c713e95fac4670eab3edf048a742..02212de14459ee6cd15492e7b35cd2791f48205c 100644
112112
--- a/services/network/url_loader.h
113113
+++ b/services/network/url_loader.h
114114
@@ -115,6 +115,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) URLLoader
@@ -119,7 +119,7 @@ index 077344d12f001b00590598bccbba2d614c8c1af2..d9c8a41c9c4fe11277392dd428c71f02
119119
mojom::OriginPolicyManager* origin_policy_manager,
120120
std::unique_ptr<TrustTokenRequestHelperFactory>
121121
trust_token_helper_factory,
122-
@@ -454,6 +455,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) URLLoader
122+
@@ -456,6 +457,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) URLLoader
123123
base::Optional<base::UnguessableToken> fetch_window_id_;
124124

125125
mojo::Remote<mojom::TrustedHeaderClient> header_client_;

0 commit comments

Comments
 (0)