chore: bump chromium to 119.0.6006.0 (main) (#39774)
* chore: bump chromium in DEPS to 119.0.5994.0 * chore: update patches * Add some more debugging for navigation origin & process lock mismatch4829483
* chore: bump chromium in DEPS to 119.0.5996.2 * chore: bump chromium in DEPS to 119.0.5997.0 * chore: bump chromium in DEPS to 119.0.6000.0 * chore: bump chromium in DEPS to 119.0.6002.0 * 4781766: Port remaining control color ids to the color pipeline4781766
* 4846057: Preloading: Move prefetch_prefs to chrome/browser/preloading/4846057
* chore: fixup patch indices * 4848108: Pass v8::Isolate into FromV8Value calls on blink API4848108
* 4834471: Reland "[api] allow v8::Data as internal field"4834471
* 4808884: Major overhaul of ExceptionState in the v8 bindings4808884
* 4791643: [sandbox] Add a TRUSTED_SPACE and TRUSTED_LO_SPACE to the V8 heap4791643
* chore: bump chromium in DEPS to 119.0.6005.0 * 4776268: [v8][etw] Enables filtering of ETW tracing by URL4776268
* chore: fixup patch indices * 4673258: WebSQL: Disable WebSQL by default4673258
* chore: bump chromium in DEPS to 119.0.6006.0 * chore: update patches * 4854732: Reland^2 "[iterator-helpers] Unship due to incompat"4854732
* 4794133: [AWC] Add `display-state` CSS @media feature4794133
* fixup! Add some more debugging for navigation origin & process lock mismatch * Revert "fixup! Add some more debugging for navigation origin & process lock mismatch" This reverts commit 38fef075fc5690f7db6d4bbcabbe877a1618a964. * 4858437: Revert "[iOS] Delete GN flags for mach absolute time ticks"4858437
* refactor: fix_crash_loading_non-standard_schemes_in_iframes.patch (#39879) * chore: 4869108: handle absolute and relative gn imports in autoninja4869108
* chore: set GOMA_DIR for autoninja * Revert "chore: 4869108: handle absolute and relative gn imports in autoninja" This reverts commit d94c7720bab96d1de25499383948da2cb8862d90. --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: Robo <hop2deep@gmail.com>
This commit is contained in:
parent
c8544e25df
commit
73e33bc876
69 changed files with 1150 additions and 321 deletions
|
@ -37,10 +37,11 @@ fix_account_for_createexternalizablestring_v8_global.patch
|
|||
fix_wunreachable-code_warning_in_ares_init_rand_engine.patch
|
||||
fix_-wshadow_warning.patch
|
||||
fix_do_not_resolve_electron_entrypoints.patch
|
||||
fix_adapt_generator_tostringtag_prototype_to_v8.patch
|
||||
fix_ftbfs_werror_wunreachable-code-break.patch
|
||||
fix_ftbfs_werror_wextra-semi.patch
|
||||
fix_isurl_implementation.patch
|
||||
ci_ensure_node_tests_set_electron_run_as_node.patch
|
||||
chore_update_fixtures_errors_force_colors_snapshot.patch
|
||||
fix_assert_module_in_the_renderer_process.patch
|
||||
src_cast_v8_object_getinternalfield_return_value_to_v8_value.patch
|
||||
fix_add_trusted_space_and_trusted_lo_space_to_the_v8_heap.patch
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Shelley Vohr <shelley.vohr@gmail.com>
|
||||
Date: Mon, 31 Jul 2023 14:17:40 +0200
|
||||
Subject: fix: adapt generator toStringTag prototype to V8
|
||||
|
||||
https://chromium-review.googlesource.com/c/v8/v8/+/4670615
|
||||
|
||||
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js
|
||||
index 9b57fd4a99b10e6509eb319878283b7e24c7d7a3..1a972090cc9c5e174141108bf5b406cb57080ad2 100644
|
||||
--- a/test/parallel/test-util-inspect.js
|
||||
+++ b/test/parallel/test-util-inspect.js
|
||||
@@ -3212,7 +3212,7 @@ assert.strictEqual(
|
||||
'[GeneratorFunction: generator] {\n' +
|
||||
' [length]: 0,\n' +
|
||||
" [name]: 'generator',\n" +
|
||||
- " [prototype]: Object [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len
|
||||
+ " [prototype]: Iterator [Generator] { [Symbol(Symbol.toStringTag)]: 'Generator' },\n" + // eslint-disable-line max-len
|
||||
" [Symbol(Symbol.toStringTag)]: 'GeneratorFunction'\n" +
|
||||
'}'
|
||||
);
|
|
@ -0,0 +1,25 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Shelley Vohr <shelley.vohr@gmail.com>
|
||||
Date: Tue, 12 Sep 2023 11:08:18 +0200
|
||||
Subject: fix: Add TRUSTED_SPACE and TRUSTED_LO_SPACE to the V8 heap
|
||||
|
||||
Added by V8 in https://chromium-review.googlesource.com/c/v8/v8/+/4791643
|
||||
|
||||
This patch can be removed when Node.js upgrades to a version of V8 that
|
||||
includes this change.
|
||||
|
||||
diff --git a/test/parallel/test-v8-stats.js b/test/parallel/test-v8-stats.js
|
||||
index 83b375bd3c5b5dbd5189d48ad560580883ac91f6..2366cbf716c11851bb3a759dce5db47d616516dc 100644
|
||||
--- a/test/parallel/test-v8-stats.js
|
||||
+++ b/test/parallel/test-v8-stats.js
|
||||
@@ -47,7 +47,9 @@ const expectedHeapSpaces = [
|
||||
'old_space',
|
||||
'read_only_space',
|
||||
'shared_large_object_space',
|
||||
- 'shared_space'
|
||||
+ 'shared_space',
|
||||
+ 'trusted_large_object_space',
|
||||
+ 'trusted_space'
|
||||
];
|
||||
const heapSpaceStatistics = v8.getHeapSpaceStatistics();
|
||||
const actualHeapSpaceNames = heapSpaceStatistics.map((s) => s.space_name);
|
|
@ -0,0 +1,113 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Joyee Cheung <joyeec9h3@gmail.com>
|
||||
Date: Wed, 2 Aug 2023 04:14:35 +0200
|
||||
Subject: src: cast v8::Object::GetInternalField() return value to v8::Value
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
In preparation of https://chromium-review.googlesource.com/c/v8/v8/+/4707972
|
||||
which changes the return value to v8::Data.
|
||||
|
||||
PR-URL: https://github.com/nodejs/node/pull/48943
|
||||
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
|
||||
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
|
||||
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
|
||||
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
|
||||
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
|
||||
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
|
||||
|
||||
diff --git a/src/base_object-inl.h b/src/base_object-inl.h
|
||||
index f003f1390b864f2f3874ec144b413fe5cec2dc56..0148c75427985e2ff034fafb15f3ac4604b48734 100644
|
||||
--- a/src/base_object-inl.h
|
||||
+++ b/src/base_object-inl.h
|
||||
@@ -127,7 +127,8 @@ template <int Field>
|
||||
void BaseObject::InternalFieldGet(
|
||||
v8::Local<v8::String> property,
|
||||
const v8::PropertyCallbackInfo<v8::Value>& info) {
|
||||
- info.GetReturnValue().Set(info.This()->GetInternalField(Field));
|
||||
+ info.GetReturnValue().Set(
|
||||
+ info.This()->GetInternalField(Field).As<v8::Value>());
|
||||
}
|
||||
|
||||
template <int Field, bool (v8::Value::* typecheck)() const>
|
||||
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
|
||||
index e0f1b2d51f3055b2250f2c0dc1dfd1048b645dd9..d2d9e06da8da068bb53f8d9a656e912d8b1fff3d 100644
|
||||
--- a/src/module_wrap.cc
|
||||
+++ b/src/module_wrap.cc
|
||||
@@ -77,7 +77,7 @@ ModuleWrap::~ModuleWrap() {
|
||||
}
|
||||
|
||||
Local<Context> ModuleWrap::context() const {
|
||||
- Local<Value> obj = object()->GetInternalField(kContextObjectSlot);
|
||||
+ Local<Value> obj = object()->GetInternalField(kContextObjectSlot).As<Value>();
|
||||
if (obj.IsEmpty()) return {};
|
||||
return obj.As<Object>()->GetCreationContext().ToLocalChecked();
|
||||
}
|
||||
@@ -685,7 +685,9 @@ MaybeLocal<Value> ModuleWrap::SyntheticModuleEvaluationStepsCallback(
|
||||
|
||||
TryCatchScope try_catch(env);
|
||||
Local<Function> synthetic_evaluation_steps =
|
||||
- obj->object()->GetInternalField(kSyntheticEvaluationStepsSlot)
|
||||
+ obj->object()
|
||||
+ ->GetInternalField(kSyntheticEvaluationStepsSlot)
|
||||
+ .As<Value>()
|
||||
.As<Function>();
|
||||
obj->object()->SetInternalField(
|
||||
kSyntheticEvaluationStepsSlot, Undefined(isolate));
|
||||
diff --git a/src/node_file.cc b/src/node_file.cc
|
||||
index 4993da585322dbe9f4faec986ae36d4f215b35af..c0507777273cff6ef781dd9e09e1423e92a431aa 100644
|
||||
--- a/src/node_file.cc
|
||||
+++ b/src/node_file.cc
|
||||
@@ -439,7 +439,7 @@ MaybeLocal<Promise> FileHandle::ClosePromise() {
|
||||
Local<Context> context = env()->context();
|
||||
|
||||
Local<Value> close_resolver =
|
||||
- object()->GetInternalField(FileHandle::kClosingPromiseSlot);
|
||||
+ object()->GetInternalField(FileHandle::kClosingPromiseSlot).As<Value>();
|
||||
if (!close_resolver.IsEmpty() && !close_resolver->IsUndefined()) {
|
||||
CHECK(close_resolver->IsPromise());
|
||||
return close_resolver.As<Promise>();
|
||||
diff --git a/src/node_task_queue.cc b/src/node_task_queue.cc
|
||||
index 5d0e2b0d4c7ba16f920176ac42a33d70610f273e..1a0cb082a2534f17233d0557e95837b2ce79d43b 100644
|
||||
--- a/src/node_task_queue.cc
|
||||
+++ b/src/node_task_queue.cc
|
||||
@@ -50,7 +50,7 @@ static Maybe<double> GetAssignedPromiseWrapAsyncId(Environment* env,
|
||||
// be an object. If it's not, we just ignore it. Ideally v8 would
|
||||
// have had GetInternalField returning a MaybeLocal but this works
|
||||
// for now.
|
||||
- Local<Value> promiseWrap = promise->GetInternalField(0);
|
||||
+ Local<Value> promiseWrap = promise->GetInternalField(0).As<Value>();
|
||||
if (promiseWrap->IsObject()) {
|
||||
Local<Value> maybe_async_id;
|
||||
if (!promiseWrap.As<Object>()->Get(env->context(), id_symbol)
|
||||
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
|
||||
index fac116f9e6b3e23451c812be0a123fe6368fb3df..0c4ae0fc794347be49502977d8a375ff1007a605 100644
|
||||
--- a/src/node_zlib.cc
|
||||
+++ b/src/node_zlib.cc
|
||||
@@ -423,7 +423,8 @@ class CompressionStream : public AsyncWrap, public ThreadPoolWork {
|
||||
UpdateWriteResult();
|
||||
|
||||
// call the write() cb
|
||||
- Local<Value> cb = object()->GetInternalField(kWriteJSCallback);
|
||||
+ Local<Value> cb =
|
||||
+ object()->GetInternalField(kWriteJSCallback).template As<Value>();
|
||||
MakeCallback(cb.As<Function>(), 0, nullptr);
|
||||
|
||||
if (pending_close_)
|
||||
diff --git a/src/stream_base.cc b/src/stream_base.cc
|
||||
index f1769ca52970fed7267fed4df29aee0803faa859..b9dfc645e2b49c73822fc7277f296d028699de05 100644
|
||||
--- a/src/stream_base.cc
|
||||
+++ b/src/stream_base.cc
|
||||
@@ -470,8 +470,9 @@ MaybeLocal<Value> StreamBase::CallJSOnreadMethod(ssize_t nread,
|
||||
|
||||
AsyncWrap* wrap = GetAsyncWrap();
|
||||
CHECK_NOT_NULL(wrap);
|
||||
- Local<Value> onread = wrap->object()->GetInternalField(
|
||||
- StreamBase::kOnReadFunctionField);
|
||||
+ Local<Value> onread = wrap->object()
|
||||
+ ->GetInternalField(StreamBase::kOnReadFunctionField)
|
||||
+ .As<Value>();
|
||||
CHECK(onread->IsFunction());
|
||||
return wrap->MakeCallback(onread.As<Function>(), arraysize(argv), argv);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue