chore: bump chromium to 141.0.7390.7 (39-x-y) (#48276)
* chore: bump chromium in DEPS to 141.0.7381.3 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: bump chromium in DEPS to 141.0.7382.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: update patches Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: bump chromium in DEPS to 141.0.7384.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * chore: bump chromium in DEPS to 141.0.7386.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * Move devtools_page and chrome_url_overrides handlers Refs https://chromium-review.googlesource.com/c/chromium/src/+/6862700 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Reland "[api] Advance deprecation of GetIsolate" Refs https://chromium-review.googlesource.com/c/v8/v8/+/6875273 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Move "system integrated UI" concept out of NativeTheme. Refs https://chromium-review.googlesource.com/c/chromium/src/+/6867375 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: update patches Co-authored-by: deepak1556 <hop2deep@gmail.com> * Reland "[PermissionOptions] Return PermissionResult in callback for requests" Refs https://chromium-review.googlesource.com/c/chromium/src/+/6851838 Co-authored-by: deepak1556 <hop2deep@gmail.com> * Reland "[exit-time-destructors] Enable by default" Refs https://chromium-review.googlesource.com/c/chromium/src/+/6859042 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: update patches Co-authored-by: deepak1556 <hop2deep@gmail.com> * Revoke Read access after removing file via FileSystemAccess API Refs https://chromium-review.googlesource.com/c/chromium/src/+/6677249 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: IWYU Co-authored-by: deepak1556 <hop2deep@gmail.com> * Accept an object for `dispatchHttpRequest` params Refs https://chromium-review.googlesource.com/c/chromium/src/+/6877528 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: IWYU Co-authored-by: deepak1556 <hop2deep@gmail.com> * Pass navigation UI parameters on EnterFullscreen in EAM Refs https://chromium-review.googlesource.com/c/chromium/src/+/6874923 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: rm band-aid_over_an_issue_with_using_deprecated_nsopenpanel_api.patch Co-authored-by: deepak1556 <hop2deep@gmail.com> * Remove unused PreHandleMouseEvent Refs https://chromium-review.googlesource.com/c/chromium/src/+/6880411 Co-authored-by: deepak1556 <hop2deep@gmail.com> * 6878583: siso: update to version 1.4.1 https://chromium-review.googlesource.com/c/chromium/src/+/6878583 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * Fold native_theme_browser into native_theme. https://chromium-review.googlesource.com/c/chromium/src/+/6882627 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Reland "[exit-time-destructors] Enable by default https://chromium-review.googlesource.com/c/chromium/src/+/6859042 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * chore: update filenames.libcxx.gni Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * chore: IWYU Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: chore: IWYU Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Reland "[exit-time-destructors] Enable by default Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Reland "[exit-time-destructors] Enable by default Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * Remove common_theme.*; place its method in NativeTheme instead. https://chromium-review.googlesource.com/c/chromium/src/+/6886029 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Reland "[exit-time-destructors] Enable by default Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * Better track when WebPreferences need updates for color-related changes. Refs https://chromium-review.googlesource.com/c/chromium/src/+/6886797 Co-authored-by: deepak1556 <hop2deep@gmail.com> * chore: bump chromium in DEPS to 141.0.7390.7 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * 6904664: Reland "Make BrowserContext::GetPath() const" https://chromium-review.googlesource.com/c/chromium/src/+/6904664 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * Restore read access after certain file modification operations https://chromium-review.googlesource.com/c/chromium/src/+/6861041 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Move "system integrated UI" concept out of NativeTheme. Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: Reland "[exit-time-destructors] Enable by default Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * chore: update patches Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * 6906096: Remove GetSysSkColor(). https://chromium-review.googlesource.com/c/chromium/src/+/6906096 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * Inline implementation of SysColorChangeListener into the lone user. https://chromium-review.googlesource.com/c/chromium/src/+/6905083 Also 6906096: Remove GetSysSkColor(). | https://chromium-review.googlesource.com/c/chromium/src/+/6906096 Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * fixup: 6906096: Remove GetSysSkColor() Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * chore: update patches --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
2da16d779e
commit
60826e6c7b
157 changed files with 1418 additions and 883 deletions
2
.github/actions/fix-sync/action.yml
vendored
2
.github/actions/fix-sync/action.yml
vendored
|
@ -109,7 +109,7 @@ runs:
|
||||||
deps-file: src/DEPS
|
deps-file: src/DEPS
|
||||||
installation-dir: src/third_party/siso/cipd
|
installation-dir: src/third_party/siso/cipd
|
||||||
target-platform: ${{ inputs.target-platform }}
|
target-platform: ${{ inputs.target-platform }}
|
||||||
package: infra/build/siso/${platform}
|
package: build/siso/${platform}
|
||||||
- name: Fixup angle git
|
- name: Fixup angle git
|
||||||
if: ${{ inputs.target-platform != 'linux' }}
|
if: ${{ inputs.target-platform != 'linux' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
1
BUILD.gn
1
BUILD.gn
|
@ -688,7 +688,6 @@ source_set("electron_lib") {
|
||||||
"//components/app_launch_prefetch",
|
"//components/app_launch_prefetch",
|
||||||
"//components/crash/core/app:crash_export_thunks",
|
"//components/crash/core/app:crash_export_thunks",
|
||||||
"//third_party/libxml:xml_writer",
|
"//third_party/libxml:xml_writer",
|
||||||
"//ui/native_theme:native_theme_browser",
|
|
||||||
"//ui/wm",
|
"//ui/wm",
|
||||||
"//ui/wm/public",
|
"//ui/wm/public",
|
||||||
]
|
]
|
||||||
|
|
2
DEPS
2
DEPS
|
@ -2,7 +2,7 @@ gclient_gn_args_from = 'src'
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
'chromium_version':
|
'chromium_version':
|
||||||
'141.0.7361.0',
|
'141.0.7390.7',
|
||||||
'node_version':
|
'node_version':
|
||||||
'v22.19.0',
|
'v22.19.0',
|
||||||
'nan_version':
|
'nan_version':
|
||||||
|
|
|
@ -12,7 +12,7 @@ TEMPLATE_H = """
|
||||||
|
|
||||||
namespace electron::snapshot_checksum {
|
namespace electron::snapshot_checksum {
|
||||||
|
|
||||||
const std::string kChecksum = "{checksum}";
|
inline constexpr std::string_view kChecksum = "{checksum}";
|
||||||
|
|
||||||
} // namespace electron::snapshot_checksum
|
} // namespace electron::snapshot_checksum
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@ static_library("chrome") {
|
||||||
"//chrome/browser/browser_process.h",
|
"//chrome/browser/browser_process.h",
|
||||||
"//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.cc",
|
||||||
"//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
|
"//chrome/browser/devtools/devtools_contents_resizing_strategy.h",
|
||||||
|
"//chrome/browser/devtools/devtools_dispatch_http_request_params.cc",
|
||||||
|
"//chrome/browser/devtools/devtools_dispatch_http_request_params.h",
|
||||||
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.cc",
|
||||||
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
|
"//chrome/browser/devtools/devtools_embedder_message_dispatcher.h",
|
||||||
"//chrome/browser/devtools/devtools_eye_dropper.cc",
|
"//chrome/browser/devtools/devtools_eye_dropper.cc",
|
||||||
|
|
|
@ -1034,14 +1034,12 @@ libcxx_headers = [
|
||||||
"//third_party/libc++/src/include/__fwd/get.h",
|
"//third_party/libc++/src/include/__fwd/get.h",
|
||||||
"//third_party/libc++/src/include/__fwd/ios.h",
|
"//third_party/libc++/src/include/__fwd/ios.h",
|
||||||
"//third_party/libc++/src/include/__fwd/istream.h",
|
"//third_party/libc++/src/include/__fwd/istream.h",
|
||||||
"//third_party/libc++/src/include/__fwd/map.h",
|
|
||||||
"//third_party/libc++/src/include/__fwd/mdspan.h",
|
"//third_party/libc++/src/include/__fwd/mdspan.h",
|
||||||
"//third_party/libc++/src/include/__fwd/memory.h",
|
"//third_party/libc++/src/include/__fwd/memory.h",
|
||||||
"//third_party/libc++/src/include/__fwd/memory_resource.h",
|
"//third_party/libc++/src/include/__fwd/memory_resource.h",
|
||||||
"//third_party/libc++/src/include/__fwd/ostream.h",
|
"//third_party/libc++/src/include/__fwd/ostream.h",
|
||||||
"//third_party/libc++/src/include/__fwd/pair.h",
|
"//third_party/libc++/src/include/__fwd/pair.h",
|
||||||
"//third_party/libc++/src/include/__fwd/queue.h",
|
"//third_party/libc++/src/include/__fwd/queue.h",
|
||||||
"//third_party/libc++/src/include/__fwd/set.h",
|
|
||||||
"//third_party/libc++/src/include/__fwd/span.h",
|
"//third_party/libc++/src/include/__fwd/span.h",
|
||||||
"//third_party/libc++/src/include/__fwd/sstream.h",
|
"//third_party/libc++/src/include/__fwd/sstream.h",
|
||||||
"//third_party/libc++/src/include/__fwd/stack.h",
|
"//third_party/libc++/src/include/__fwd/stack.h",
|
||||||
|
@ -1381,7 +1379,6 @@ libcxx_headers = [
|
||||||
"//third_party/libc++/src/include/__type_traits/aligned_storage.h",
|
"//third_party/libc++/src/include/__type_traits/aligned_storage.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/aligned_union.h",
|
"//third_party/libc++/src/include/__type_traits/aligned_union.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/alignment_of.h",
|
"//third_party/libc++/src/include/__type_traits/alignment_of.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/can_extract_key.h",
|
|
||||||
"//third_party/libc++/src/include/__type_traits/common_reference.h",
|
"//third_party/libc++/src/include/__type_traits/common_reference.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/common_type.h",
|
"//third_party/libc++/src/include/__type_traits/common_type.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/conditional.h",
|
"//third_party/libc++/src/include/__type_traits/conditional.h",
|
||||||
|
@ -1462,6 +1459,7 @@ libcxx_headers = [
|
||||||
"//third_party/libc++/src/include/__type_traits/is_trivially_relocatable.h",
|
"//third_party/libc++/src/include/__type_traits/is_trivially_relocatable.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/is_unbounded_array.h",
|
"//third_party/libc++/src/include/__type_traits/is_unbounded_array.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/is_union.h",
|
"//third_party/libc++/src/include/__type_traits/is_union.h",
|
||||||
|
"//third_party/libc++/src/include/__type_traits/is_unqualified.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/is_unsigned.h",
|
"//third_party/libc++/src/include/__type_traits/is_unsigned.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/is_valid_expansion.h",
|
"//third_party/libc++/src/include/__type_traits/is_valid_expansion.h",
|
||||||
"//third_party/libc++/src/include/__type_traits/is_void.h",
|
"//third_party/libc++/src/include/__type_traits/is_void.h",
|
||||||
|
@ -1522,6 +1520,7 @@ libcxx_headers = [
|
||||||
"//third_party/libc++/src/include/__utility/small_buffer.h",
|
"//third_party/libc++/src/include/__utility/small_buffer.h",
|
||||||
"//third_party/libc++/src/include/__utility/swap.h",
|
"//third_party/libc++/src/include/__utility/swap.h",
|
||||||
"//third_party/libc++/src/include/__utility/to_underlying.h",
|
"//third_party/libc++/src/include/__utility/to_underlying.h",
|
||||||
|
"//third_party/libc++/src/include/__utility/try_key_extraction.h",
|
||||||
"//third_party/libc++/src/include/__utility/unreachable.h",
|
"//third_party/libc++/src/include/__utility/unreachable.h",
|
||||||
"//third_party/libc++/src/include/__variant/monostate.h",
|
"//third_party/libc++/src/include/__variant/monostate.h",
|
||||||
"//third_party/libc++/src/include/__vector/comparison.h",
|
"//third_party/libc++/src/include/__vector/comparison.h",
|
||||||
|
|
|
@ -10,10 +10,10 @@ this patch is required to provide ripemd160 support in the nodejs crypto
|
||||||
module.
|
module.
|
||||||
|
|
||||||
diff --git a/crypto/digest/digest_extra.cc b/crypto/digest/digest_extra.cc
|
diff --git a/crypto/digest/digest_extra.cc b/crypto/digest/digest_extra.cc
|
||||||
index 431214277314941c5ec031f03ad09e7f22800983..4cc48bbc3f8434876f35767c1a9f01d27388be99 100644
|
index 345c94f6e26e88aac77b9feb92bd8d6665234981..8ef2ab8987da63f321d1dbb79f2eded8b8209bfc 100644
|
||||||
--- a/crypto/digest/digest_extra.cc
|
--- a/crypto/digest/digest_extra.cc
|
||||||
+++ b/crypto/digest/digest_extra.cc
|
+++ b/crypto/digest/digest_extra.cc
|
||||||
@@ -46,6 +46,7 @@ static const struct nid_to_digest nid_to_digest_mapping[] = {
|
@@ -47,6 +47,7 @@ static const struct nid_to_digest nid_to_digest_mapping[] = {
|
||||||
{NID_sha512, EVP_sha512, SN_sha512, LN_sha512},
|
{NID_sha512, EVP_sha512, SN_sha512, LN_sha512},
|
||||||
{NID_sha512_256, EVP_sha512_256, SN_sha512_256, LN_sha512_256},
|
{NID_sha512_256, EVP_sha512_256, SN_sha512_256, LN_sha512_256},
|
||||||
{NID_md5_sha1, EVP_md5_sha1, SN_md5_sha1, LN_md5_sha1},
|
{NID_md5_sha1, EVP_md5_sha1, SN_md5_sha1, LN_md5_sha1},
|
||||||
|
@ -82,7 +82,7 @@ index e04b80cd6a1a215fc87f8fd8d750c3d258c3974f..8fdf1c624794f568bfc77b7b6b0c510b
|
||||||
|
|
||||||
void EVP_MD_do_all(void (*callback)(const EVP_MD *cipher, const char *name,
|
void EVP_MD_do_all(void (*callback)(const EVP_MD *cipher, const char *name,
|
||||||
diff --git a/include/openssl/digest.h b/include/openssl/digest.h
|
diff --git a/include/openssl/digest.h b/include/openssl/digest.h
|
||||||
index 710c6e6d110378d1db10d8c2ae57b2d844c603b9..dbb1e0cd5e9480d1ac7a86cbca6fae29d6a8dca4 100644
|
index b604aba00c1c6cea8002b6dc298ea5fe979589b1..1c123aa1dca09ae60c31be2a6dab9a64748eac17 100644
|
||||||
--- a/include/openssl/digest.h
|
--- a/include/openssl/digest.h
|
||||||
+++ b/include/openssl/digest.h
|
+++ b/include/openssl/digest.h
|
||||||
@@ -48,6 +48,9 @@ OPENSSL_EXPORT const EVP_MD *EVP_blake2b256(void);
|
@@ -48,6 +48,9 @@ OPENSSL_EXPORT const EVP_MD *EVP_blake2b256(void);
|
||||||
|
|
|
@ -28,7 +28,7 @@ RC2 Ciphers: rc2-40-cbc
|
||||||
It's unclear whether this would be accepted upstream. We should try regardless.
|
It's unclear whether this would be accepted upstream. We should try regardless.
|
||||||
|
|
||||||
diff --git a/crypto/cipher/get_cipher.cc b/crypto/cipher/get_cipher.cc
|
diff --git a/crypto/cipher/get_cipher.cc b/crypto/cipher/get_cipher.cc
|
||||||
index 2622dc78d1da236862312f55bc0a40f26116486e..ac7aff6518ad5c2a0e48bd91d60a1f825851b634 100644
|
index 6513df01c4b3e4d33fc6b521d9aae78ec5499e73..52eb7fea420e3d81d274fd5c1e21e4da0229687f 100644
|
||||||
--- a/crypto/cipher/get_cipher.cc
|
--- a/crypto/cipher/get_cipher.cc
|
||||||
+++ b/crypto/cipher/get_cipher.cc
|
+++ b/crypto/cipher/get_cipher.cc
|
||||||
@@ -31,6 +31,7 @@ static const struct {
|
@@ -31,6 +31,7 @@ static const struct {
|
||||||
|
|
|
@ -20,10 +20,10 @@ index 2cdcbc346175eeee69402ecee7f169e61c655199..f7226fe711e4214b216ea2c5173a0212
|
||||||
|
|
||||||
case ssl_open_record_error:
|
case ssl_open_record_error:
|
||||||
diff --git a/ssl/ssl_lib.cc b/ssl/ssl_lib.cc
|
diff --git a/ssl/ssl_lib.cc b/ssl/ssl_lib.cc
|
||||||
index aa8ef8a0c53978021b675e1d909c3f78045dbb7b..61794458f7a7a849d48a225533ef4f8431434e42 100644
|
index 24c0d496f9d655f0f32634430e9c31d5592be939..b62418ba31927c5c4e2b424b993e40c63c868201 100644
|
||||||
--- a/ssl/ssl_lib.cc
|
--- a/ssl/ssl_lib.cc
|
||||||
+++ b/ssl/ssl_lib.cc
|
+++ b/ssl/ssl_lib.cc
|
||||||
@@ -1206,7 +1206,7 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
|
@@ -1207,7 +1207,7 @@ int SSL_get_error(const SSL *ssl, int ret_code) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret_code == 0) {
|
if (ret_code == 0) {
|
||||||
|
@ -32,7 +32,7 @@ index aa8ef8a0c53978021b675e1d909c3f78045dbb7b..61794458f7a7a849d48a225533ef4f84
|
||||||
return SSL_ERROR_ZERO_RETURN;
|
return SSL_ERROR_ZERO_RETURN;
|
||||||
}
|
}
|
||||||
// An EOF was observed which violates the protocol, and the underlying
|
// An EOF was observed which violates the protocol, and the underlying
|
||||||
@@ -2567,13 +2567,7 @@ void *SSL_CTX_get_ex_data(const SSL_CTX *ctx, int idx) {
|
@@ -2568,13 +2568,7 @@ void *SSL_CTX_get_ex_data(const SSL_CTX *ctx, int idx) {
|
||||||
return CRYPTO_get_ex_data(&ctx->ex_data, idx);
|
return CRYPTO_get_ex_data(&ctx->ex_data, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,4 +138,5 @@ fix_resolve_dynamic_background_material_update_issue_on_windows_11.patch
|
||||||
feat_add_support_for_embedder_snapshot_validation.patch
|
feat_add_support_for_embedder_snapshot_validation.patch
|
||||||
chore_restore_some_deprecated_wrapper_utility_in_gin.patch
|
chore_restore_some_deprecated_wrapper_utility_in_gin.patch
|
||||||
chore_add_electron_objects_to_wrappablepointertag.patch
|
chore_add_electron_objects_to_wrappablepointertag.patch
|
||||||
band-aid_over_an_issue_with_using_deprecated_nsopenpanel_api.patch
|
chore_expose_isolate_parameter_in_script_lifecycle_observers.patch
|
||||||
|
revert_partial_remove_unused_prehandlemouseevent.patch
|
||||||
|
|
|
@ -10,10 +10,10 @@ Allows Electron to restore WER when ELECTRON_DEFAULT_ERROR_MODE is set.
|
||||||
This should be upstreamed.
|
This should be upstreamed.
|
||||||
|
|
||||||
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
||||||
index 6f8e8dd8e7ddb9e3d4c142493f249f616520d613..f89b2e5b846b3b96c99dea2a3b49bc9823ab51e5 100644
|
index 558575cf06b10b59e114a9f53b90f01d8ecf63c4..0204ce5351a5190a20317f0cef6d3e8421541cac 100644
|
||||||
--- a/content/gpu/gpu_main.cc
|
--- a/content/gpu/gpu_main.cc
|
||||||
+++ b/content/gpu/gpu_main.cc
|
+++ b/content/gpu/gpu_main.cc
|
||||||
@@ -271,6 +271,10 @@ int GpuMain(MainFunctionParams parameters) {
|
@@ -272,6 +272,10 @@ int GpuMain(MainFunctionParams parameters) {
|
||||||
// to the GpuProcessHost once the GpuServiceImpl has started.
|
// to the GpuProcessHost once the GpuServiceImpl has started.
|
||||||
viz::GpuLogMessageManager::GetInstance()->InstallPreInitializeLogHandler();
|
viz::GpuLogMessageManager::GetInstance()->InstallPreInitializeLogHandler();
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ index 6f8e8dd8e7ddb9e3d4c142493f249f616520d613..f89b2e5b846b3b96c99dea2a3b49bc98
|
||||||
// We are experiencing what appear to be memory-stomp issues in the GPU
|
// We are experiencing what appear to be memory-stomp issues in the GPU
|
||||||
// process. These issues seem to be impacting the task executor and listeners
|
// process. These issues seem to be impacting the task executor and listeners
|
||||||
// registered to it. Create the task executor on the heap to guard against
|
// registered to it. Create the task executor on the heap to guard against
|
||||||
@@ -380,7 +384,6 @@ int GpuMain(MainFunctionParams parameters) {
|
@@ -381,7 +385,6 @@ int GpuMain(MainFunctionParams parameters) {
|
||||||
#endif
|
#endif
|
||||||
const bool dead_on_arrival = !init_success;
|
const bool dead_on_arrival = !init_success;
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@ DidCreateScriptContext is called, not all JS APIs are available in the
|
||||||
context, which can cause some preload scripts to trip.
|
context, which can cause some preload scripts to trip.
|
||||||
|
|
||||||
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
|
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
|
||||||
index c26cff0adef977617b10bbaa7c0c13cf5e6e91d3..f9c7af85af33572a88956bf1bc9765e90be3d39b 100644
|
index 284da783658bec333be748941784d43b13f6f244..18714ce8fc27c8d56c5deac27ba335078c452d0a 100644
|
||||||
--- a/content/public/renderer/render_frame_observer.h
|
--- a/content/public/renderer/render_frame_observer.h
|
||||||
+++ b/content/public/renderer/render_frame_observer.h
|
+++ b/content/public/renderer/render_frame_observer.h
|
||||||
@@ -138,6 +138,8 @@ class CONTENT_EXPORT RenderFrameObserver {
|
@@ -139,6 +139,8 @@ class CONTENT_EXPORT RenderFrameObserver {
|
||||||
virtual void DidHandleOnloadEvents() {}
|
virtual void DidHandleOnloadEvents() {}
|
||||||
virtual void DidCreateScriptContext(v8::Local<v8::Context> context,
|
virtual void DidCreateScriptContext(v8::Local<v8::Context> context,
|
||||||
int32_t world_id) {}
|
int32_t world_id) {}
|
||||||
|
@ -23,10 +23,10 @@ index c26cff0adef977617b10bbaa7c0c13cf5e6e91d3..f9c7af85af33572a88956bf1bc9765e9
|
||||||
int32_t world_id) {}
|
int32_t world_id) {}
|
||||||
virtual void DidClearWindowObject() {}
|
virtual void DidClearWindowObject() {}
|
||||||
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
||||||
index 859113ed13e77dcdd72b2ab327b94e94492f5d24..51948d7fcae02bd85133a859989f93a07dd0e236 100644
|
index bc2ec7491d7072be77307d7b8af06e5397e2bdfb..addef4de8a95f47964a895e1d1cc4763f565a028 100644
|
||||||
--- a/content/renderer/render_frame_impl.cc
|
--- a/content/renderer/render_frame_impl.cc
|
||||||
+++ b/content/renderer/render_frame_impl.cc
|
+++ b/content/renderer/render_frame_impl.cc
|
||||||
@@ -4677,6 +4677,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
|
@@ -4679,6 +4679,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
|
||||||
observer.DidCreateScriptContext(context, world_id);
|
observer.DidCreateScriptContext(context, world_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,10 +40,10 @@ index 859113ed13e77dcdd72b2ab327b94e94492f5d24..51948d7fcae02bd85133a859989f93a0
|
||||||
int world_id) {
|
int world_id) {
|
||||||
for (auto& observer : observers_)
|
for (auto& observer : observers_)
|
||||||
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
||||||
index 5456a50df5f75509c22afa47034afbb624303a75..bbd1edd567aee984001288901581dfa56dbfa2dc 100644
|
index 2950a6f600aab24226ef59acabddc74c9b67cac8..f0f4335aa815ea50dbf9b720b41e4eb31f27fb90 100644
|
||||||
--- a/content/renderer/render_frame_impl.h
|
--- a/content/renderer/render_frame_impl.h
|
||||||
+++ b/content/renderer/render_frame_impl.h
|
+++ b/content/renderer/render_frame_impl.h
|
||||||
@@ -603,6 +603,8 @@ class CONTENT_EXPORT RenderFrameImpl
|
@@ -602,6 +602,8 @@ class CONTENT_EXPORT RenderFrameImpl
|
||||||
void DidObserveLayoutShift(double score, bool after_input_or_scroll) override;
|
void DidObserveLayoutShift(double score, bool after_input_or_scroll) override;
|
||||||
void DidCreateScriptContext(v8::Local<v8::Context> context,
|
void DidCreateScriptContext(v8::Local<v8::Context> context,
|
||||||
int world_id) override;
|
int world_id) override;
|
||||||
|
@ -53,10 +53,10 @@ index 5456a50df5f75509c22afa47034afbb624303a75..bbd1edd567aee984001288901581dfa5
|
||||||
int world_id) override;
|
int world_id) override;
|
||||||
void DidChangeScrollOffset() override;
|
void DidChangeScrollOffset() override;
|
||||||
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
|
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
|
||||||
index 5c1c325d1e4037b0b413c3519e963c5f0210086a..994dd3118dfa43816db60e5dfb61c00bf366e92d 100644
|
index 101e727b3a97bc764315eb694dc3975f9a408f9c..52e8828d8fffaba8ab05436cb4d727595f18238a 100644
|
||||||
--- a/third_party/blink/public/web/web_local_frame_client.h
|
--- a/third_party/blink/public/web/web_local_frame_client.h
|
||||||
+++ b/third_party/blink/public/web/web_local_frame_client.h
|
+++ b/third_party/blink/public/web/web_local_frame_client.h
|
||||||
@@ -662,6 +662,9 @@ class BLINK_EXPORT WebLocalFrameClient {
|
@@ -661,6 +661,9 @@ class BLINK_EXPORT WebLocalFrameClient {
|
||||||
virtual void DidCreateScriptContext(v8::Local<v8::Context>,
|
virtual void DidCreateScriptContext(v8::Local<v8::Context>,
|
||||||
int32_t world_id) {}
|
int32_t world_id) {}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ index 36baf908d3be8aed44ff60b8de2cffe2eee15efe..8d73ddb12013ce195026b9f63050cf33
|
||||||
int32_t world_id) = 0;
|
int32_t world_id) = 0;
|
||||||
virtual bool AllowScriptExtensions() = 0;
|
virtual bool AllowScriptExtensions() = 0;
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
index 114cbd9c806572b664b9d9af75955231fa68cc50..03a0b2f762a2d9677212c89e63bb2d2691fac2b7 100644
|
index b02b60ff5f6650332c54ecc66f6fdb274b737aa7..1aacf6f66b543a4ede6ab5d885143dd4a0821e8a 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
@@ -295,6 +295,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
|
@@ -295,6 +295,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
|
||||||
|
@ -110,7 +110,7 @@ index 114cbd9c806572b664b9d9af75955231fa68cc50..03a0b2f762a2d9677212c89e63bb2d26
|
||||||
v8::Local<v8::Context> context,
|
v8::Local<v8::Context> context,
|
||||||
int32_t world_id) {
|
int32_t world_id) {
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.h b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.h b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
index 081c8fabbcc514e47ff33d7e07a5eac3d112a518..e3fab574523a4b63069587b2fcaf30267fddf7c4 100644
|
index fcc0928abbc454281b022e0451d993651ecba42f..16066fe34ee0335a0dabe00b6890e5844349c0b5 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
@@ -81,6 +81,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
|
@@ -81,6 +81,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
|
||||||
|
|
|
@ -8,7 +8,7 @@ accessing Blink internals. Its inverse, which already exists, is used in
|
||||||
Android WebView.
|
Android WebView.
|
||||||
|
|
||||||
diff --git a/third_party/blink/public/web/web_message_port_converter.h b/third_party/blink/public/web/web_message_port_converter.h
|
diff --git a/third_party/blink/public/web/web_message_port_converter.h b/third_party/blink/public/web/web_message_port_converter.h
|
||||||
index e7c4464f1b5aa19cbe441d94d88c949798ccb1e3..bd804d509ad5f3581154c6ede8653e7521cb71b8 100644
|
index e7c4464f1b5aa19cbe441d94d88c949798ccb1e3..cdf9bca3df292531831b6df0077ba211a29548aa 100644
|
||||||
--- a/third_party/blink/public/web/web_message_port_converter.h
|
--- a/third_party/blink/public/web/web_message_port_converter.h
|
||||||
+++ b/third_party/blink/public/web/web_message_port_converter.h
|
+++ b/third_party/blink/public/web/web_message_port_converter.h
|
||||||
@@ -13,6 +13,7 @@
|
@@ -13,6 +13,7 @@
|
||||||
|
@ -19,18 +19,20 @@ index e7c4464f1b5aa19cbe441d94d88c949798ccb1e3..bd804d509ad5f3581154c6ede8653e75
|
||||||
} // namespace v8
|
} // namespace v8
|
||||||
|
|
||||||
namespace blink {
|
namespace blink {
|
||||||
@@ -25,6 +26,9 @@ class BLINK_EXPORT WebMessagePortConverter {
|
@@ -25,6 +26,11 @@ class BLINK_EXPORT WebMessagePortConverter {
|
||||||
// neutered, it will return nullopt.
|
// neutered, it will return nullopt.
|
||||||
static std::optional<MessagePortChannel>
|
static std::optional<MessagePortChannel>
|
||||||
DisentangleAndExtractMessagePortChannel(v8::Isolate*, v8::Local<v8::Value>);
|
DisentangleAndExtractMessagePortChannel(v8::Isolate*, v8::Local<v8::Value>);
|
||||||
+
|
+
|
||||||
+ BLINK_EXPORT static v8::Local<v8::Value>
|
+ BLINK_EXPORT static v8::Local<v8::Value>
|
||||||
+ EntangleAndInjectMessagePortChannel(v8::Local<v8::Context>, MessagePortChannel);
|
+ EntangleAndInjectMessagePortChannel(v8::Isolate*,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
+ MessagePortChannel);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
diff --git a/third_party/blink/renderer/core/exported/web_message_port_converter.cc b/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
diff --git a/third_party/blink/renderer/core/exported/web_message_port_converter.cc b/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
||||||
index 3270da19f73077b1fab7522144b9f3d52d9f6a5a..e6c5764c54a18b31223ac8c5b8f2d6ef732225d6 100644
|
index 3270da19f73077b1fab7522144b9f3d52d9f6a5a..bbd3c968027549b89087d9a4394f575d84213eba 100644
|
||||||
--- a/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
--- a/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
||||||
+++ b/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
+++ b/third_party/blink/renderer/core/exported/web_message_port_converter.cc
|
||||||
@@ -6,6 +6,7 @@
|
@@ -6,6 +6,7 @@
|
||||||
|
@ -41,19 +43,20 @@ index 3270da19f73077b1fab7522144b9f3d52d9f6a5a..e6c5764c54a18b31223ac8c5b8f2d6ef
|
||||||
#include "third_party/blink/renderer/bindings/core/v8/v8_message_port.h"
|
#include "third_party/blink/renderer/bindings/core/v8/v8_message_port.h"
|
||||||
#include "third_party/blink/renderer/core/messaging/message_port.h"
|
#include "third_party/blink/renderer/core/messaging/message_port.h"
|
||||||
|
|
||||||
@@ -21,4 +22,15 @@ WebMessagePortConverter::DisentangleAndExtractMessagePortChannel(
|
@@ -21,4 +22,16 @@ WebMessagePortConverter::DisentangleAndExtractMessagePortChannel(
|
||||||
return port->Disentangle();
|
return port->Disentangle();
|
||||||
}
|
}
|
||||||
|
|
||||||
+v8::Local<v8::Value>
|
+v8::Local<v8::Value>
|
||||||
+WebMessagePortConverter::EntangleAndInjectMessagePortChannel(
|
+WebMessagePortConverter::EntangleAndInjectMessagePortChannel(
|
||||||
|
+ v8::Isolate* isolate,
|
||||||
+ v8::Local<v8::Context> context,
|
+ v8::Local<v8::Context> context,
|
||||||
+ MessagePortChannel port_channel) {
|
+ MessagePortChannel port_channel) {
|
||||||
+ auto* execution_context = ToExecutionContext(context);
|
+ auto* execution_context = ToExecutionContext(context);
|
||||||
+ CHECK(execution_context);
|
+ CHECK(execution_context);
|
||||||
+ auto* port = MakeGarbageCollected<MessagePort>(*execution_context);
|
+ auto* port = MakeGarbageCollected<MessagePort>(*execution_context);
|
||||||
+ port->Entangle(std::move(port_channel));
|
+ port->Entangle(std::move(port_channel));
|
||||||
+ return port->ToV8(context->GetIsolate(), context->Global());
|
+ return port->ToV8(isolate, context->Global());
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
|
|
|
@ -10,7 +10,7 @@ usage of BrowserList and Browser as we subclass related methods and use our
|
||||||
WindowList.
|
WindowList.
|
||||||
|
|
||||||
diff --git a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
diff --git a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
||||||
index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aabbba621cb 100644
|
index 7f8d93e3637188280cc6e10c5c47a2cdbc0cc38f..7ccd2a61b45b3f864c1d8caefd3b235308986a8c 100644
|
||||||
--- a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
--- a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
||||||
+++ b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
+++ b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc
|
||||||
@@ -48,6 +48,7 @@
|
@@ -48,6 +48,7 @@
|
||||||
|
@ -19,9 +19,9 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
#include "content/public/browser/web_ui_data_source.h"
|
#include "content/public/browser/web_ui_data_source.h"
|
||||||
+#include "electron/shell/browser/electron_browser_context.h"
|
+#include "electron/shell/browser/electron_browser_context.h"
|
||||||
#include "ui/accessibility/accessibility_features.h"
|
#include "ui/accessibility/accessibility_features.h"
|
||||||
|
#include "ui/accessibility/ax_mode.h"
|
||||||
#include "ui/accessibility/ax_updates_and_events.h"
|
#include "ui/accessibility/ax_updates_and_events.h"
|
||||||
#include "ui/accessibility/platform/ax_platform.h"
|
@@ -178,7 +179,7 @@ base::Value::Dict BuildTargetDescriptor(content::RenderViewHost* rvh) {
|
||||||
@@ -173,7 +174,7 @@ base::Value::Dict BuildTargetDescriptor(content::RenderViewHost* rvh) {
|
|
||||||
rvh->GetRoutingID(), accessibility_mode);
|
rvh->GetRoutingID(), accessibility_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
base::Value::Dict BuildTargetDescriptor(Browser* browser) {
|
base::Value::Dict BuildTargetDescriptor(Browser* browser) {
|
||||||
base::Value::Dict target_data;
|
base::Value::Dict target_data;
|
||||||
target_data.Set(kSessionIdField, browser->session_id().id());
|
target_data.Set(kSessionIdField, browser->session_id().id());
|
||||||
@@ -197,7 +198,7 @@ void HandleAccessibilityRequestCallback(
|
@@ -224,7 +225,7 @@ void HandleAccessibilityRequestCallback(
|
||||||
auto& browser_accessibility_state =
|
auto& browser_accessibility_state =
|
||||||
*content::BrowserAccessibilityState::GetInstance();
|
*content::BrowserAccessibilityState::GetInstance();
|
||||||
base::Value::Dict data;
|
base::Value::Dict data;
|
||||||
|
@ -39,7 +39,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
ui::AXMode mode = browser_accessibility_state.GetAccessibilityMode();
|
ui::AXMode mode = browser_accessibility_state.GetAccessibilityMode();
|
||||||
bool native = mode.has_mode(ui::AXMode::kNativeAPIs);
|
bool native = mode.has_mode(ui::AXMode::kNativeAPIs);
|
||||||
bool web = mode.has_mode(ui::AXMode::kWebContents);
|
bool web = mode.has_mode(ui::AXMode::kWebContents);
|
||||||
@@ -258,7 +259,7 @@ void HandleAccessibilityRequestCallback(
|
@@ -285,7 +286,7 @@ void HandleAccessibilityRequestCallback(
|
||||||
data.Set(kIsScreenReaderActive, is_screen_reader_active);
|
data.Set(kIsScreenReaderActive, is_screen_reader_active);
|
||||||
|
|
||||||
std::string pref_api_type =
|
std::string pref_api_type =
|
||||||
|
@ -48,7 +48,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
bool pref_api_type_supported = false;
|
bool pref_api_type_supported = false;
|
||||||
|
|
||||||
std::vector<ui::AXApiType::Type> supported_api_types =
|
std::vector<ui::AXApiType::Type> supported_api_types =
|
||||||
@@ -326,11 +327,11 @@ void HandleAccessibilityRequestCallback(
|
@@ -353,11 +354,11 @@ void HandleAccessibilityRequestCallback(
|
||||||
data.Set(kPagesField, std::move(page_list));
|
data.Set(kPagesField, std::move(page_list));
|
||||||
|
|
||||||
base::Value::List browser_list;
|
base::Value::List browser_list;
|
||||||
|
@ -61,8 +61,8 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
+#endif
|
+#endif
|
||||||
data.Set(kBrowsersField, std::move(browser_list));
|
data.Set(kBrowsersField, std::move(browser_list));
|
||||||
|
|
||||||
std::string json_string;
|
#if BUILDFLAG(IS_WIN)
|
||||||
@@ -804,7 +805,8 @@ void AccessibilityUIMessageHandler::SetGlobalString(
|
@@ -845,7 +846,8 @@ void AccessibilityUIMessageHandler::SetGlobalString(
|
||||||
const std::string value = CheckJSValue(data.FindString(kValueField));
|
const std::string value = CheckJSValue(data.FindString(kValueField));
|
||||||
|
|
||||||
if (string_name == kApiTypeField) {
|
if (string_name == kApiTypeField) {
|
||||||
|
@ -72,7 +72,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
pref->SetString(prefs::kShownAccessibilityApiType, value);
|
pref->SetString(prefs::kShownAccessibilityApiType, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -858,7 +860,8 @@ void AccessibilityUIMessageHandler::RequestWebContentsTree(
|
@@ -899,7 +901,8 @@ void AccessibilityUIMessageHandler::RequestWebContentsTree(
|
||||||
AXPropertyFilter::ALLOW_EMPTY);
|
AXPropertyFilter::ALLOW_EMPTY);
|
||||||
AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY);
|
AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY);
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
ui::AXApiType::Type api_type =
|
ui::AXApiType::Type api_type =
|
||||||
ui::AXApiType::From(pref->GetString(prefs::kShownAccessibilityApiType));
|
ui::AXApiType::From(pref->GetString(prefs::kShownAccessibilityApiType));
|
||||||
std::string accessibility_contents =
|
std::string accessibility_contents =
|
||||||
@@ -885,6 +888,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree(
|
@@ -926,6 +929,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree(
|
||||||
AXPropertyFilter::ALLOW_EMPTY);
|
AXPropertyFilter::ALLOW_EMPTY);
|
||||||
AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY);
|
AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY);
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
for (Browser* browser : *BrowserList::GetInstance()) {
|
for (Browser* browser : *BrowserList::GetInstance()) {
|
||||||
if (browser->session_id().id() == session_id) {
|
if (browser->session_id().id() == session_id) {
|
||||||
base::Value::Dict result = BuildTargetDescriptor(browser);
|
base::Value::Dict result = BuildTargetDescriptor(browser);
|
||||||
@@ -897,6 +901,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree(
|
@@ -938,6 +942,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
#endif // !BUILDFLAG(IS_ANDROID)
|
#endif // !BUILDFLAG(IS_ANDROID)
|
||||||
// No browser with the specified |session_id| was found.
|
// No browser with the specified |session_id| was found.
|
||||||
base::Value::Dict result;
|
base::Value::Dict result;
|
||||||
@@ -940,11 +945,13 @@ void AccessibilityUIMessageHandler::StopRecording(
|
@@ -981,11 +986,13 @@ void AccessibilityUIMessageHandler::StopRecording(
|
||||||
}
|
}
|
||||||
|
|
||||||
ui::AXApiType::Type AccessibilityUIMessageHandler::GetRecordingApiType() {
|
ui::AXApiType::Type AccessibilityUIMessageHandler::GetRecordingApiType() {
|
||||||
|
@ -115,7 +115,7 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
// Check to see if it is in the supported types list.
|
// Check to see if it is in the supported types list.
|
||||||
if (std::find(supported_types.begin(), supported_types.end(), api_type) ==
|
if (std::find(supported_types.begin(), supported_types.end(), api_type) ==
|
||||||
supported_types.end()) {
|
supported_types.end()) {
|
||||||
@@ -1014,8 +1021,11 @@ void AccessibilityUIMessageHandler::RequestAccessibilityEvents(
|
@@ -1055,10 +1062,13 @@ void AccessibilityUIMessageHandler::RequestAccessibilityEvents(
|
||||||
// static
|
// static
|
||||||
void AccessibilityUIMessageHandler::RegisterProfilePrefs(
|
void AccessibilityUIMessageHandler::RegisterProfilePrefs(
|
||||||
user_prefs::PrefRegistrySyncable* registry) {
|
user_prefs::PrefRegistrySyncable* registry) {
|
||||||
|
@ -127,11 +127,13 @@ index 20ba6b8fa6a7d5edf8ebab80ec15ece93d750000..6c42d825e520982c7fcac52cf3aa8aab
|
||||||
+ registry->RegisterBooleanPref(prefs::kShowInternalAccessibilityTree, false);
|
+ registry->RegisterBooleanPref(prefs::kShowInternalAccessibilityTree, false);
|
||||||
+#endif
|
+#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AccessibilityUIMessageHandler::OnVisibilityChanged(
|
||||||
diff --git a/chrome/browser/ui/webui/accessibility/accessibility_ui.h b/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
diff --git a/chrome/browser/ui/webui/accessibility/accessibility_ui.h b/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
||||||
index b171afc941b2b3ef4aeba04a2b1c6eef2774d442..8f431aae69365bc8756e515c603332a7f1648148 100644
|
index 4b9d7df73c901c57c14693e9f24a51694ecd375f..93e1c9a79d88c8b4c57b244c9eec1e83c1d1fa0a 100644
|
||||||
--- a/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
--- a/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
||||||
+++ b/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
+++ b/chrome/browser/ui/webui/accessibility/accessibility_ui.h
|
||||||
@@ -27,6 +27,8 @@ namespace content {
|
@@ -28,6 +28,8 @@ namespace content {
|
||||||
class WebContents;
|
class WebContents;
|
||||||
} // namespace content
|
} // namespace content
|
||||||
|
|
||||||
|
@ -140,7 +142,7 @@ index b171afc941b2b3ef4aeba04a2b1c6eef2774d442..8f431aae69365bc8756e515c603332a7
|
||||||
namespace user_prefs {
|
namespace user_prefs {
|
||||||
class PrefRegistrySyncable;
|
class PrefRegistrySyncable;
|
||||||
} // namespace user_prefs
|
} // namespace user_prefs
|
||||||
@@ -77,6 +79,8 @@ class AccessibilityUIMessageHandler : public content::WebUIMessageHandler {
|
@@ -79,6 +81,8 @@ class AccessibilityUIMessageHandler : public content::WebUIMessageHandler,
|
||||||
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
|
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -51,10 +51,10 @@ index 7944fe64e0da112fc670358b75506bb199bb5e4a..0e3c16c6af2a078943e9f39808134ab2
|
||||||
void SendRendererPreferencesToRenderer(
|
void SendRendererPreferencesToRenderer(
|
||||||
const blink::RendererPreferences& preferences);
|
const blink::RendererPreferences& preferences);
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
index b14f5bc3f023c512a066ce9ec9f681c96b1fafc4..b930145db575eb8c4e84297ddd610bd90fb5d3a8 100644
|
index e98d74fecf4275ef8e7c6d23e5ea5ec3af80b926..0927d69b56d064327f0659d8ffe6ceff98064947 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
@@ -580,8 +580,8 @@ void RenderWidgetHostViewAura::ShowImpl(PageVisibilityState page_visibility) {
|
@@ -579,8 +579,8 @@ void RenderWidgetHostViewAura::ShowImpl(PageVisibilityState page_visibility) {
|
||||||
// OnShowWithPageVisibility will not call NotifyHostAndDelegateOnWasShown,
|
// OnShowWithPageVisibility will not call NotifyHostAndDelegateOnWasShown,
|
||||||
// which updates `visibility_`, unless the host is hidden. Make sure no update
|
// which updates `visibility_`, unless the host is hidden. Make sure no update
|
||||||
// is needed.
|
// is needed.
|
||||||
|
@ -116,10 +116,10 @@ index b3553c0783a7b00e055f82ef0b72bd866284473d..c91e49807ec0b56d8675048311182691
|
||||||
// Visibility -----------------------------------------------------------
|
// Visibility -----------------------------------------------------------
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.cc b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.cc b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
index 316e686d00b72bf9d2e153221bfc3b97dbad8b61..b9799837c7ce14fc76045700b30e1358d4705251 100644
|
index 714b713cd466ac289b3d172ac484ddfd2b46190b..be43ac07eb6563dcb72374dfc4f3bd34913e98c3 100644
|
||||||
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
@@ -2490,6 +2490,10 @@ void WebViewImpl::SetPageLifecycleStateInternal(
|
@@ -2500,6 +2500,10 @@ void WebViewImpl::SetPageLifecycleStateInternal(
|
||||||
TRACE_EVENT2("navigation", "WebViewImpl::SetPageLifecycleStateInternal",
|
TRACE_EVENT2("navigation", "WebViewImpl::SetPageLifecycleStateInternal",
|
||||||
"old_state", old_state, "new_state", new_state);
|
"old_state", old_state, "new_state", new_state);
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ index 316e686d00b72bf9d2e153221bfc3b97dbad8b61..b9799837c7ce14fc76045700b30e1358
|
||||||
bool storing_in_bfcache = new_state->is_in_back_forward_cache &&
|
bool storing_in_bfcache = new_state->is_in_back_forward_cache &&
|
||||||
!old_state->is_in_back_forward_cache;
|
!old_state->is_in_back_forward_cache;
|
||||||
bool restoring_from_bfcache = !new_state->is_in_back_forward_cache &&
|
bool restoring_from_bfcache = !new_state->is_in_back_forward_cache &&
|
||||||
@@ -3999,10 +4003,23 @@ PageScheduler* WebViewImpl::Scheduler() const {
|
@@ -4009,10 +4013,23 @@ PageScheduler* WebViewImpl::Scheduler() const {
|
||||||
return GetPage()->GetPageScheduler();
|
return GetPage()->GetPageScheduler();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ index 316e686d00b72bf9d2e153221bfc3b97dbad8b61..b9799837c7ce14fc76045700b30e1358
|
||||||
// Do not throttle if the page should be painting.
|
// Do not throttle if the page should be painting.
|
||||||
bool is_visible =
|
bool is_visible =
|
||||||
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.h b/third_party/blink/renderer/core/exported/web_view_impl.h
|
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.h b/third_party/blink/renderer/core/exported/web_view_impl.h
|
||||||
index efcec3ebab3e60b66c2444e9a5c755c945f052cf..85cd9599cb5169f01c9096d9da89cff59930d1be 100644
|
index 883269126ff93c26765ab62013035c6193f8adbb..f821da879a6b6b04d33ef60037a053f3a5c0851d 100644
|
||||||
--- a/third_party/blink/renderer/core/exported/web_view_impl.h
|
--- a/third_party/blink/renderer/core/exported/web_view_impl.h
|
||||||
+++ b/third_party/blink/renderer/core/exported/web_view_impl.h
|
+++ b/third_party/blink/renderer/core/exported/web_view_impl.h
|
||||||
@@ -450,6 +450,7 @@ class CORE_EXPORT WebViewImpl final : public WebView,
|
@@ -450,6 +450,7 @@ class CORE_EXPORT WebViewImpl final : public WebView,
|
||||||
|
@ -166,7 +166,7 @@ index efcec3ebab3e60b66c2444e9a5c755c945f052cf..85cd9599cb5169f01c9096d9da89cff5
|
||||||
void SetVisibilityState(mojom::blink::PageVisibilityState visibility_state,
|
void SetVisibilityState(mojom::blink::PageVisibilityState visibility_state,
|
||||||
bool is_initial_state) override;
|
bool is_initial_state) override;
|
||||||
mojom::blink::PageVisibilityState GetVisibilityState() override;
|
mojom::blink::PageVisibilityState GetVisibilityState() override;
|
||||||
@@ -941,6 +942,8 @@ class CORE_EXPORT WebViewImpl final : public WebView,
|
@@ -943,6 +944,8 @@ class CORE_EXPORT WebViewImpl final : public WebView,
|
||||||
// If true, we send IPC messages when |preferred_size_| changes.
|
// If true, we send IPC messages when |preferred_size_| changes.
|
||||||
bool send_preferred_size_changes_ = false;
|
bool send_preferred_size_changes_ = false;
|
||||||
|
|
||||||
|
|
|
@ -1,108 +0,0 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Avi Drissman <avi@chromium.org>
|
|
||||||
Date: Thu, 21 Aug 2025 07:33:53 -0700
|
|
||||||
Subject: Band-aid over an issue with using deprecated NSOpenPanel API
|
|
||||||
|
|
||||||
Because deprecated and broken NSOpenPanel API is used, the open panel
|
|
||||||
will sometimes incorrectly misunderstand a folder to be a package and
|
|
||||||
return it as a user selection when folders are disallowed from
|
|
||||||
selection. In that case, skip it.
|
|
||||||
|
|
||||||
Bug: 40861123
|
|
||||||
Bug: 41275486
|
|
||||||
Bug: 440106155
|
|
||||||
Change-Id: Ia0459a2bb76a30f4e126bd83069d7e13894d62f6
|
|
||||||
Fixed: 438779953
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6867298
|
|
||||||
Commit-Queue: Avi Drissman <avi@chromium.org>
|
|
||||||
Reviewed-by: Christine Hollingsworth <christinesm@chromium.org>
|
|
||||||
Cr-Commit-Position: refs/heads/main@{#1504534}
|
|
||||||
|
|
||||||
diff --git a/components/remote_cocoa/app_shim/select_file_dialog_bridge.mm b/components/remote_cocoa/app_shim/select_file_dialog_bridge.mm
|
|
||||||
index f0b8108a7f8a63f66664c6c5ad3ada0bf60805b3..67380a76c699d1c2db0d3a96671bb92657c4a6d3 100644
|
|
||||||
--- a/components/remote_cocoa/app_shim/select_file_dialog_bridge.mm
|
|
||||||
+++ b/components/remote_cocoa/app_shim/select_file_dialog_bridge.mm
|
|
||||||
@@ -225,7 +225,7 @@ - (void)popupAction:(id)sender {
|
|
||||||
// Unfortunately, there's no great way to do strict type matching with
|
|
||||||
// NSOpenPanel. Setting explicit extensions via -allowedFileTypes is
|
|
||||||
// deprecated, and there's no way to specify that strict type equality should
|
|
||||||
- // be used for -allowedContentTypes (FB13721802).
|
|
||||||
+ // be used for -allowedContentTypes (https://crbug.com/41275486, FB13721802).
|
|
||||||
//
|
|
||||||
// -[NSOpenSavePanelDelegate panel:shouldEnableURL:] could be used to enforce
|
|
||||||
// strict type matching, however its presence on the delegate means that all
|
|
||||||
@@ -235,6 +235,10 @@ - (void)popupAction:(id)sender {
|
|
||||||
//
|
|
||||||
// Therefore, use the deprecated API, because it's the only way to remain
|
|
||||||
// performant while achieving strict type matching.
|
|
||||||
+ //
|
|
||||||
+ // TODO(https://crbug.com/440106155): Possibly reconsider using
|
|
||||||
+ // -panel:shouldEnableURL: if the speed impact is judged to be acceptable
|
|
||||||
+ // nowadays.
|
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
|
||||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
||||||
@@ -479,8 +483,8 @@ - (void)popupAction:(id)sender {
|
|
||||||
|
|
||||||
// See -[ExtensionDropdownHandler popupAction:] as to why file extensions
|
|
||||||
// are collected here rather than being converted to UTTypes.
|
|
||||||
- // TODO(FB13721802): Use UTTypes when strict type matching can be
|
|
||||||
- // specified.
|
|
||||||
+ // TODO(https://crbug.com/440106155, FB13721802): Use UTTypes when strict
|
|
||||||
+ // type matching can be specified.
|
|
||||||
NSString* ext_ns = base::SysUTF8ToNSString(ext);
|
|
||||||
if (![file_extensions_array containsObject:ext_ns]) {
|
|
||||||
[file_extensions_array addObject:ext_ns];
|
|
||||||
@@ -571,18 +575,46 @@ - (void)popupAction:(id)sender {
|
|
||||||
}
|
|
||||||
NSString* path = url.path;
|
|
||||||
|
|
||||||
- // There is a bug in macOS where, despite a request to disallow file
|
|
||||||
- // selection, files/packages are able to be selected. If indeed file
|
|
||||||
- // selection was disallowed, drop any files selected.
|
|
||||||
- // https://crbug.com/40861123, FB11405008
|
|
||||||
- if (!open_panel.canChooseFiles) {
|
|
||||||
+ if (base::mac::MacOSMajorVersion() < 14) {
|
|
||||||
+ // There is a bug in macOS (https://crbug.com/40861123, FB11405008)
|
|
||||||
+ // where, despite a request to disallow file selection, files/packages
|
|
||||||
+ // are able to be selected. If indeed file selection was disallowed,
|
|
||||||
+ // drop any files selected. This issue is fixed in macOS 14, so only
|
|
||||||
+ // do the workaround on previous releases.
|
|
||||||
+ if (!open_panel.canChooseFiles) {
|
|
||||||
+ BOOL is_directory;
|
|
||||||
+ BOOL exists =
|
|
||||||
+ [NSFileManager.defaultManager fileExistsAtPath:path
|
|
||||||
+ isDirectory:&is_directory];
|
|
||||||
+ BOOL is_package =
|
|
||||||
+ [NSWorkspace.sharedWorkspace isFilePackageAtPath:path];
|
|
||||||
+ if (!exists || !is_directory || is_package) {
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ // As long as FB13721802 remains unfixed, this class uses extensions to
|
|
||||||
+ // filter what files are available rather than UTTypes. This deprecated
|
|
||||||
+ // API has a problem, however. If you specify an extension to be shown
|
|
||||||
+ // as available, then the NSOpenPanel will assume that any directory
|
|
||||||
+ // that has that extension is a package, and will offer it to the user
|
|
||||||
+ // for selection even if directory selection isn't otherwise allowed.
|
|
||||||
+ // Therefore, if directories are disallowed, filter out any that find
|
|
||||||
+ // their way in if they're not actually packages.
|
|
||||||
+ //
|
|
||||||
+ // TODO(https://crbug.com/440106155, FB13721802): Possibly reconsider
|
|
||||||
+ // using -panel:shouldEnableURL: if the speed impact is judged to be
|
|
||||||
+ // acceptable nowadays, and drop this band-aid.
|
|
||||||
+ if (!open_panel.canChooseDirectories) {
|
|
||||||
BOOL is_directory;
|
|
||||||
BOOL exists =
|
|
||||||
[NSFileManager.defaultManager fileExistsAtPath:path
|
|
||||||
isDirectory:&is_directory];
|
|
||||||
BOOL is_package =
|
|
||||||
[NSWorkspace.sharedWorkspace isFilePackageAtPath:path];
|
|
||||||
- if (!exists || !is_directory || is_package) {
|
|
||||||
+ if (!exists || (is_directory && !is_package)) {
|
|
||||||
+ NSLog(@"dropping %@", path);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -15,7 +15,7 @@ Refs changes in:
|
||||||
This patch reverts the changes to fix associated crashes in Electron.
|
This patch reverts the changes to fix associated crashes in Electron.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/frame/frame.cc b/third_party/blink/renderer/core/frame/frame.cc
|
diff --git a/third_party/blink/renderer/core/frame/frame.cc b/third_party/blink/renderer/core/frame/frame.cc
|
||||||
index c9f34fa47702504ccdefb8d61c55f5eaae501085..26df03d777c9ea487cae37f3df91d1df233b75e2 100644
|
index cdb5b9246087b5678cf6a0f2713f6238dafc13de..7efbe7524c5ddd3785fff0e2d8901f931f024f48 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/frame.cc
|
--- a/third_party/blink/renderer/core/frame/frame.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/frame.cc
|
+++ b/third_party/blink/renderer/core/frame/frame.cc
|
||||||
@@ -134,14 +134,6 @@ bool Frame::Detach(FrameDetachType type) {
|
@@ -134,14 +134,6 @@ bool Frame::Detach(FrameDetachType type) {
|
||||||
|
@ -49,10 +49,10 @@ index c9f34fa47702504ccdefb8d61c55f5eaae501085..26df03d777c9ea487cae37f3df91d1df
|
||||||
// its owning reference back to our owning LocalFrame.
|
// its owning reference back to our owning LocalFrame.
|
||||||
client_->Detached(type);
|
client_->Detached(type);
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
index e57912ad2d06ccd3d5c0f4d958a0735d1fab9997..7aeff27d6005d70f962fcbd90e6902987e3abd09 100644
|
index 7d0f966131a4e91efd4652e23dec8287e98b82a9..75975a8d48b05ba25b169b93b62bb7d34eb3f5b7 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
@@ -738,10 +738,6 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
@@ -751,10 +751,6 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
||||||
}
|
}
|
||||||
DCHECK(!view_ || !view_->IsAttached());
|
DCHECK(!view_ || !view_->IsAttached());
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ index e57912ad2d06ccd3d5c0f4d958a0735d1fab9997..7aeff27d6005d70f962fcbd90e690298
|
||||||
if (!Client())
|
if (!Client())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -795,6 +791,11 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
@@ -808,6 +804,11 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
||||||
DCHECK(!view_->IsAttached());
|
DCHECK(!view_->IsAttached());
|
||||||
Client()->WillBeDetached();
|
Client()->WillBeDetached();
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,10 @@ categories in use are known / declared. This patch is required for us
|
||||||
to introduce a new Electron category for Electron-specific tracing.
|
to introduce a new Electron category for Electron-specific tracing.
|
||||||
|
|
||||||
diff --git a/base/trace_event/builtin_categories.h b/base/trace_event/builtin_categories.h
|
diff --git a/base/trace_event/builtin_categories.h b/base/trace_event/builtin_categories.h
|
||||||
index e72bdff1c640ae6f6cbf91727a01985ccf9bd83b..40059b155b5ea9882a2ae4b624c68d3335fdc9f9 100644
|
index 28d3c301465335cc664dad51e41133cd04fa8a62..290363dfa65a3207e5ade788825d470122a4afc8 100644
|
||||||
--- a/base/trace_event/builtin_categories.h
|
--- a/base/trace_event/builtin_categories.h
|
||||||
+++ b/base/trace_event/builtin_categories.h
|
+++ b/base/trace_event/builtin_categories.h
|
||||||
@@ -124,6 +124,7 @@ PERFETTO_DEFINE_CATEGORIES_IN_NAMESPACE_WITH_ATTRS(
|
@@ -126,6 +126,7 @@ PERFETTO_DEFINE_CATEGORIES_IN_NAMESPACE_WITH_ATTRS(
|
||||||
perfetto::Category("drm"),
|
perfetto::Category("drm"),
|
||||||
perfetto::Category("drmcursor"),
|
perfetto::Category("drmcursor"),
|
||||||
perfetto::Category("dwrite"),
|
perfetto::Category("dwrite"),
|
||||||
|
|
|
@ -11,10 +11,10 @@ To accomplish this, we need to make simdutf's config public here
|
||||||
for use by third_party/electron_node.
|
for use by third_party/electron_node.
|
||||||
|
|
||||||
diff --git a/third_party/simdutf/BUILD.gn b/third_party/simdutf/BUILD.gn
|
diff --git a/third_party/simdutf/BUILD.gn b/third_party/simdutf/BUILD.gn
|
||||||
index 5fbce38841f04dad38f202f529ae84c609c6a8de..9f5ef9bceade8e30bbd2be616b9143e9708fefd8 100644
|
index 68f1ed4e012cff5e0abd64a153a329518860689d..eeb846525e58f038733318915a770bafa22cafc5 100644
|
||||||
--- a/third_party/simdutf/BUILD.gn
|
--- a/third_party/simdutf/BUILD.gn
|
||||||
+++ b/third_party/simdutf/BUILD.gn
|
+++ b/third_party/simdutf/BUILD.gn
|
||||||
@@ -6,9 +6,14 @@ source_set("header") {
|
@@ -8,9 +8,14 @@ source_set("header") {
|
||||||
sources = [ "simdutf.h" ]
|
sources = [ "simdutf.h" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,10 +33,10 @@ index e648bb4ed2ff72441faa8773e449e0b6174f5af5..fd2c1d3ac575d10de7d5c09e4418d172
|
||||||
"//base",
|
"//base",
|
||||||
"//build:branding_buildflags",
|
"//build:branding_buildflags",
|
||||||
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
||||||
index a8c2f5c562df8974ad02128a363e11ecd489031f..ca1bf94b55f1412599abbbe47063f0ce036c2352 100644
|
index f2f0b13a9b96b906d39cfad4236a7e72b9439e06..7a2dc270b8c19f4418074ad23dd793d15223b33a 100644
|
||||||
--- a/chrome/browser/BUILD.gn
|
--- a/chrome/browser/BUILD.gn
|
||||||
+++ b/chrome/browser/BUILD.gn
|
+++ b/chrome/browser/BUILD.gn
|
||||||
@@ -4795,7 +4795,7 @@ static_library("browser") {
|
@@ -4811,7 +4811,7 @@ static_library("browser") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,10 +46,10 @@ index a8c2f5c562df8974ad02128a363e11ecd489031f..ca1bf94b55f1412599abbbe47063f0ce
|
||||||
# than here in :chrome_dll.
|
# than here in :chrome_dll.
|
||||||
deps += [ "//chrome:packed_resources_integrity_header" ]
|
deps += [ "//chrome:packed_resources_integrity_header" ]
|
||||||
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
|
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
|
||||||
index 9fb0b20dd5feb4f4b6ee4d97bcf9fc8e1b43d89c..a55f08cfa09eb2b1afbaab780db2a275ad490d78 100644
|
index c60cdd5bf0b3327b5495238c9296b99413c7c226..433a20d22a4df2355d6d407963047491bf3f3b2b 100644
|
||||||
--- a/chrome/test/BUILD.gn
|
--- a/chrome/test/BUILD.gn
|
||||||
+++ b/chrome/test/BUILD.gn
|
+++ b/chrome/test/BUILD.gn
|
||||||
@@ -7500,9 +7500,12 @@ test("unit_tests") {
|
@@ -7515,9 +7515,12 @@ test("unit_tests") {
|
||||||
"//chrome/notification_helper",
|
"//chrome/notification_helper",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ index 9fb0b20dd5feb4f4b6ee4d97bcf9fc8e1b43d89c..a55f08cfa09eb2b1afbaab780db2a275
|
||||||
"//chrome//services/util_win:unit_tests",
|
"//chrome//services/util_win:unit_tests",
|
||||||
"//chrome/app:chrome_dll_resources",
|
"//chrome/app:chrome_dll_resources",
|
||||||
"//chrome/app:win_unit_tests",
|
"//chrome/app:win_unit_tests",
|
||||||
@@ -8428,6 +8431,10 @@ test("unit_tests") {
|
@@ -8447,6 +8450,10 @@ test("unit_tests") {
|
||||||
"../browser/performance_manager/policies/background_tab_loading_policy_unittest.cc",
|
"../browser/performance_manager/policies/background_tab_loading_policy_unittest.cc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ index 9fb0b20dd5feb4f4b6ee4d97bcf9fc8e1b43d89c..a55f08cfa09eb2b1afbaab780db2a275
|
||||||
sources += [
|
sources += [
|
||||||
# The importer code is not used on Android.
|
# The importer code is not used on Android.
|
||||||
"../common/importer/firefox_importer_utils_unittest.cc",
|
"../common/importer/firefox_importer_utils_unittest.cc",
|
||||||
@@ -8484,7 +8491,6 @@ test("unit_tests") {
|
@@ -8503,7 +8510,6 @@ test("unit_tests") {
|
||||||
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
||||||
deps += [
|
deps += [
|
||||||
"../browser/screen_ai:screen_ai_install_state",
|
"../browser/screen_ai:screen_ai_install_state",
|
||||||
|
|
|
@ -7,7 +7,7 @@ These are variables we add to the root BUILDCONFIG so that they're available
|
||||||
everywhere, without having to import("//electron/.../flags.gni").
|
everywhere, without having to import("//electron/.../flags.gni").
|
||||||
|
|
||||||
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
|
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
|
||||||
index b1b5e79b92bea8ea05770d8c48cb4366938d71c5..16664ed3ab4b0ceecd4c74e44e57cca0dc57dc9b 100644
|
index 24a1d143954ae05ae0b79b0994b76ef9218fb848..5c9b2ed8ba48a1056560ca1cd1d5b976aee4815c 100644
|
||||||
--- a/build/config/BUILDCONFIG.gn
|
--- a/build/config/BUILDCONFIG.gn
|
||||||
+++ b/build/config/BUILDCONFIG.gn
|
+++ b/build/config/BUILDCONFIG.gn
|
||||||
@@ -123,6 +123,9 @@ if (current_os == "") {
|
@@ -123,6 +123,9 @@ if (current_os == "") {
|
||||||
|
|
|
@ -7,10 +7,10 @@ Build libc++ as static library to compile and pass
|
||||||
nan tests
|
nan tests
|
||||||
|
|
||||||
diff --git a/buildtools/third_party/libc++/BUILD.gn b/buildtools/third_party/libc++/BUILD.gn
|
diff --git a/buildtools/third_party/libc++/BUILD.gn b/buildtools/third_party/libc++/BUILD.gn
|
||||||
index a024e6e435303a67cfd994d28b5a45a1d5343926..34715a1bbd1820c0d78b86cd9155bcf055778d94 100644
|
index 7dcefd2bceb209c6e74445259fac00e3e2280ff7..3a233d2e9dafc2093ead8f9c9104d06fe6176252 100644
|
||||||
--- a/buildtools/third_party/libc++/BUILD.gn
|
--- a/buildtools/third_party/libc++/BUILD.gn
|
||||||
+++ b/buildtools/third_party/libc++/BUILD.gn
|
+++ b/buildtools/third_party/libc++/BUILD.gn
|
||||||
@@ -860,6 +860,7 @@ target(libcxx_target_type, "libc++") {
|
@@ -841,6 +841,7 @@ target(libcxx_target_type, "libc++") {
|
||||||
# need to explicitly depend on libc++.
|
# need to explicitly depend on libc++.
|
||||||
visibility = [
|
visibility = [
|
||||||
"//build/config:common_deps",
|
"//build/config:common_deps",
|
||||||
|
|
|
@ -9,10 +9,10 @@ potentially prevent a window from being created.
|
||||||
TODO(loc): this patch is currently broken.
|
TODO(loc): this patch is currently broken.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
index e812aff087701b5d38fcb0b916335e21f5713040..4f8e3a08890ed7498b29a900ccf4bbda5f9cb494 100644
|
index 666ed8890f60cd0477b814b4b44571002eca9bff..73f730ff05a22938a834921d4842bf1f9faaca67 100644
|
||||||
--- a/content/browser/renderer_host/render_frame_host_impl.cc
|
--- a/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
|
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
@@ -9819,6 +9819,7 @@ void RenderFrameHostImpl::CreateNewWindow(
|
@@ -9823,6 +9823,7 @@ void RenderFrameHostImpl::CreateNewWindow(
|
||||||
last_committed_origin_, params->window_container_type,
|
last_committed_origin_, params->window_container_type,
|
||||||
params->target_url, params->referrer.To<Referrer>(),
|
params->target_url, params->referrer.To<Referrer>(),
|
||||||
params->frame_name, params->disposition, *params->features,
|
params->frame_name, params->disposition, *params->features,
|
||||||
|
@ -21,10 +21,10 @@ index e812aff087701b5d38fcb0b916335e21f5713040..4f8e3a08890ed7498b29a900ccf4bbda
|
||||||
&no_javascript_access);
|
&no_javascript_access);
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index a22f9897c47cc0fe0846fd631b0f094c0ded669a..5e35d7af2bcf9078887f4e2658e3f067f3b4f1b7 100644
|
index 3677a957465f59ab80ac059bfcb5afdf98513b48..7a6760e0efdf6972eb497407b68202c5bfffd006 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -5304,6 +5304,10 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5298,6 +5298,10 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
create_params.initially_hidden = renderer_started_hidden;
|
create_params.initially_hidden = renderer_started_hidden;
|
||||||
create_params.initial_popup_url = params.target_url;
|
create_params.initial_popup_url = params.target_url;
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ index a22f9897c47cc0fe0846fd631b0f094c0ded669a..5e35d7af2bcf9078887f4e2658e3f067
|
||||||
// Even though all codepaths leading here are in response to a renderer
|
// Even though all codepaths leading here are in response to a renderer
|
||||||
// trying to open a new window, if the new window ends up in a different
|
// trying to open a new window, if the new window ends up in a different
|
||||||
// browsing instance, then the RenderViewHost, RenderWidgetHost,
|
// browsing instance, then the RenderViewHost, RenderWidgetHost,
|
||||||
@@ -5359,6 +5363,12 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5353,6 +5357,12 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
// Sets the newly created WebContents WindowOpenDisposition.
|
// Sets the newly created WebContents WindowOpenDisposition.
|
||||||
new_contents_impl->original_window_open_disposition_ = params.disposition;
|
new_contents_impl->original_window_open_disposition_ = params.disposition;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ index a22f9897c47cc0fe0846fd631b0f094c0ded669a..5e35d7af2bcf9078887f4e2658e3f067
|
||||||
// If the new frame has a name, make sure any SiteInstances that can find
|
// If the new frame has a name, make sure any SiteInstances that can find
|
||||||
// this named frame have proxies for it. Must be called after
|
// this named frame have proxies for it. Must be called after
|
||||||
// SetSessionStorageNamespace, since this calls CreateRenderView, which uses
|
// SetSessionStorageNamespace, since this calls CreateRenderView, which uses
|
||||||
@@ -5400,12 +5410,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5394,12 +5404,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
AddWebContentsDestructionObserver(new_contents_impl);
|
AddWebContentsDestructionObserver(new_contents_impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,10 +77,10 @@ index 90cc84198b7f23c6a07ab503f60a577fdfba5baa..722b27b8adaf86624058ace5f9b5871f
|
||||||
|
|
||||||
// Operation result when the renderer asks the browser to create a new window.
|
// Operation result when the renderer asks the browser to create a new window.
|
||||||
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
|
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
|
||||||
index 51635fb9f5da026fea3d25f0aa0d2d3f05017504..6a6b444270c3fcd084da7a63d8cc491e30b1eb20 100644
|
index 750edc0c6767ab6a59d010b4f3f02770e50450b0..60e7eebb4f40df18e3fa28f57b7bbb20733477e7 100644
|
||||||
--- a/content/public/browser/content_browser_client.cc
|
--- a/content/public/browser/content_browser_client.cc
|
||||||
+++ b/content/public/browser/content_browser_client.cc
|
+++ b/content/public/browser/content_browser_client.cc
|
||||||
@@ -872,6 +872,8 @@ bool ContentBrowserClient::CanCreateWindow(
|
@@ -884,6 +884,8 @@ bool ContentBrowserClient::CanCreateWindow(
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -90,7 +90,7 @@ index 51635fb9f5da026fea3d25f0aa0d2d3f05017504..6a6b444270c3fcd084da7a63d8cc491e
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access) {
|
bool* no_javascript_access) {
|
||||||
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
||||||
index f9131c7b44751e3ab51a8db52ca22202138aeada..77addfedac20cf8ecf656321dda53ada149f17ff 100644
|
index eb7b1fdf7c3b3373201db40f03fc498c4ee08d25..f27b387da5ff4e4f20d28d80043151ad2f2e9d51 100644
|
||||||
--- a/content/public/browser/content_browser_client.h
|
--- a/content/public/browser/content_browser_client.h
|
||||||
+++ b/content/public/browser/content_browser_client.h
|
+++ b/content/public/browser/content_browser_client.h
|
||||||
@@ -201,6 +201,7 @@ class NetworkService;
|
@@ -201,6 +201,7 @@ class NetworkService;
|
||||||
|
@ -101,7 +101,7 @@ index f9131c7b44751e3ab51a8db52ca22202138aeada..77addfedac20cf8ecf656321dda53ada
|
||||||
} // namespace network
|
} // namespace network
|
||||||
|
|
||||||
namespace sandbox {
|
namespace sandbox {
|
||||||
@@ -1444,6 +1445,8 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -1449,6 +1450,8 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -111,10 +111,10 @@ index f9131c7b44751e3ab51a8db52ca22202138aeada..77addfedac20cf8ecf656321dda53ada
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access);
|
bool* no_javascript_access);
|
||||||
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
|
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
|
||||||
index ca92e2ddf78d8f386b5ab23a09876d3b44e21334..33be50ce93dd998df5244f9ade391943f06978ad 100644
|
index a8c0f1c63847f814b6e71fe24ae9aed24b26ba19..80d004eb9060e33af9e60b31a862a7dcecb254e8 100644
|
||||||
--- a/content/public/browser/web_contents_delegate.cc
|
--- a/content/public/browser/web_contents_delegate.cc
|
||||||
+++ b/content/public/browser/web_contents_delegate.cc
|
+++ b/content/public/browser/web_contents_delegate.cc
|
||||||
@@ -32,6 +32,17 @@ namespace content {
|
@@ -33,6 +33,17 @@ namespace content {
|
||||||
|
|
||||||
WebContentsDelegate::WebContentsDelegate() = default;
|
WebContentsDelegate::WebContentsDelegate() = default;
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ index ca92e2ddf78d8f386b5ab23a09876d3b44e21334..33be50ce93dd998df5244f9ade391943
|
||||||
WebContents* source,
|
WebContents* source,
|
||||||
const OpenURLParams& params,
|
const OpenURLParams& params,
|
||||||
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
||||||
index a4b8c5f950549e018c0d09522ff8890a1a774966..6c4c6265c26f5304b8f77d7fc5a4fad5dffc831d 100644
|
index 1af915fcc91ae29bb9a6e2fc51f788178365ee4c..6a43f8c30857bfb32867e63d570ad26459af9ae8 100644
|
||||||
--- a/content/public/browser/web_contents_delegate.h
|
--- a/content/public/browser/web_contents_delegate.h
|
||||||
+++ b/content/public/browser/web_contents_delegate.h
|
+++ b/content/public/browser/web_contents_delegate.h
|
||||||
@@ -18,6 +18,7 @@
|
@@ -18,6 +18,7 @@
|
||||||
|
@ -152,7 +152,7 @@ index a4b8c5f950549e018c0d09522ff8890a1a774966..6c4c6265c26f5304b8f77d7fc5a4fad5
|
||||||
#include "content/public/common/window_container_type.mojom-forward.h"
|
#include "content/public/common/window_container_type.mojom-forward.h"
|
||||||
#include "third_party/blink/public/common/input/web_mouse_event.h"
|
#include "third_party/blink/public/common/input/web_mouse_event.h"
|
||||||
#include "third_party/blink/public/common/mediastream/media_stream_request.h"
|
#include "third_party/blink/public/common/mediastream/media_stream_request.h"
|
||||||
@@ -384,6 +386,16 @@ class CONTENT_EXPORT WebContentsDelegate {
|
@@ -381,6 +383,16 @@ class CONTENT_EXPORT WebContentsDelegate {
|
||||||
const StoragePartitionConfig& partition_config,
|
const StoragePartitionConfig& partition_config,
|
||||||
SessionStorageNamespace* session_storage_namespace);
|
SessionStorageNamespace* session_storage_namespace);
|
||||||
|
|
||||||
|
@ -170,10 +170,10 @@ index a4b8c5f950549e018c0d09522ff8890a1a774966..6c4c6265c26f5304b8f77d7fc5a4fad5
|
||||||
// typically happens when popups are created.
|
// typically happens when popups are created.
|
||||||
virtual void WebContentsCreated(WebContents* source_contents,
|
virtual void WebContentsCreated(WebContents* source_contents,
|
||||||
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
||||||
index 55ff46bd1c24b2341317102f6308a66c1b5aeb23..859113ed13e77dcdd72b2ab327b94e94492f5d24 100644
|
index a8d472bb78f3a9478b70cf3d98c35affec7caf39..bc2ec7491d7072be77307d7b8af06e5397e2bdfb 100644
|
||||||
--- a/content/renderer/render_frame_impl.cc
|
--- a/content/renderer/render_frame_impl.cc
|
||||||
+++ b/content/renderer/render_frame_impl.cc
|
+++ b/content/renderer/render_frame_impl.cc
|
||||||
@@ -6770,6 +6770,10 @@ WebView* RenderFrameImpl::CreateNewWindow(
|
@@ -6772,6 +6772,10 @@ WebView* RenderFrameImpl::CreateNewWindow(
|
||||||
request.HasUserGesture(), GetWebFrame()->IsAdFrame(),
|
request.HasUserGesture(), GetWebFrame()->IsAdFrame(),
|
||||||
GetWebFrame()->IsAdScriptInStack());
|
GetWebFrame()->IsAdScriptInStack());
|
||||||
|
|
||||||
|
@ -232,10 +232,10 @@ index 82e9d3dfb5f7da76d89fe15ae61d379fa46e177d..fd035512099a54dff6cc951a2226c23a
|
||||||
|
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_dom_window.cc b/third_party/blink/renderer/core/frame/local_dom_window.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_dom_window.cc b/third_party/blink/renderer/core/frame/local_dom_window.cc
|
||||||
index 23a95863dc888a9ffb4b09c2b034665ef1186f7c..558f6afcdf8faa91744ac2143a03de88c0965366 100644
|
index 68ab3d483fe60671de50ec8952a0f71f103e4ad3..7ea5e45c08d7af439cf3eec041391ed7902ec865 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_dom_window.cc
|
--- a/third_party/blink/renderer/core/frame/local_dom_window.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_dom_window.cc
|
+++ b/third_party/blink/renderer/core/frame/local_dom_window.cc
|
||||||
@@ -2354,6 +2354,8 @@ DOMWindow* LocalDOMWindow::open(v8::Isolate* isolate,
|
@@ -2333,6 +2333,8 @@ DOMWindow* LocalDOMWindow::open(v8::Isolate* isolate,
|
||||||
WebWindowFeatures window_features =
|
WebWindowFeatures window_features =
|
||||||
GetWindowFeaturesFromString(features, entered_window);
|
GetWindowFeaturesFromString(features, entered_window);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Subject: chore: add electron deps to gitignores
|
||||||
Makes things like "git status" quicker when developing electron locally
|
Makes things like "git status" quicker when developing electron locally
|
||||||
|
|
||||||
diff --git a/.gitignore b/.gitignore
|
diff --git a/.gitignore b/.gitignore
|
||||||
index 901485a978b095c44d344c05564b943b5240a4e0..724d42a18a7a093608e665542859eb3c5bb81243 100644
|
index 5eb6e4d1815a7a56c7fff1d6f095e6c7e8127b84..808d897ba80abb9cced32a02cb7026305afe0dd2 100644
|
||||||
--- a/.gitignore
|
--- a/.gitignore
|
||||||
+++ b/.gitignore
|
+++ b/.gitignore
|
||||||
@@ -226,6 +226,7 @@ vs-chromium-project.txt
|
@@ -226,6 +226,7 @@ vs-chromium-project.txt
|
||||||
|
|
|
@ -0,0 +1,272 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Mon, 1 Sep 2025 18:17:13 +0900
|
||||||
|
Subject: chore: expose isolate parameter in script lifecycle observers
|
||||||
|
|
||||||
|
Needed after https://chromium-review.googlesource.com/c/v8/v8/+/6875273
|
||||||
|
where callsites that deal with multiple contexts need to distinguish
|
||||||
|
the current isolate.
|
||||||
|
|
||||||
|
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
|
||||||
|
index 79d59c3f4d3d2d5ff39bd65ded489183247656a8..20b49742578ccf363738ee032228f30a4cd676ea 100644
|
||||||
|
--- a/content/public/renderer/content_renderer_client.h
|
||||||
|
+++ b/content/public/renderer/content_renderer_client.h
|
||||||
|
@@ -398,6 +398,7 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||||
|
// WillDestroyServiceWorkerContextOnWorkerThread() is called.
|
||||||
|
virtual void WillEvaluateServiceWorkerOnWorkerThread(
|
||||||
|
blink::WebServiceWorkerContextProxy* context_proxy,
|
||||||
|
+ v8::Isolate* const isolate,
|
||||||
|
v8::Local<v8::Context> v8_context,
|
||||||
|
int64_t service_worker_version_id,
|
||||||
|
const GURL& service_worker_scope,
|
||||||
|
diff --git a/content/public/renderer/render_frame_observer.h b/content/public/renderer/render_frame_observer.h
|
||||||
|
index 18714ce8fc27c8d56c5deac27ba335078c452d0a..263405c605a0477b7a39bc274d7ee03be0b9cac5 100644
|
||||||
|
--- a/content/public/renderer/render_frame_observer.h
|
||||||
|
+++ b/content/public/renderer/render_frame_observer.h
|
||||||
|
@@ -141,7 +141,8 @@ class CONTENT_EXPORT RenderFrameObserver {
|
||||||
|
int32_t world_id) {}
|
||||||
|
virtual void DidInstallConditionalFeatures(v8::Local<v8::Context> context,
|
||||||
|
int32_t world_id) {}
|
||||||
|
- virtual void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||||
|
+ virtual void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context> context,
|
||||||
|
int32_t world_id) {}
|
||||||
|
virtual void DidClearWindowObject() {}
|
||||||
|
virtual void DidChangeScrollOffset() {}
|
||||||
|
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
||||||
|
index addef4de8a95f47964a895e1d1cc4763f565a028..8bef2220b9a416011cebf4da672c15d117a34efa 100644
|
||||||
|
--- a/content/renderer/render_frame_impl.cc
|
||||||
|
+++ b/content/renderer/render_frame_impl.cc
|
||||||
|
@@ -4685,10 +4685,11 @@ void RenderFrameImpl::DidInstallConditionalFeatures(
|
||||||
|
observer.DidInstallConditionalFeatures(context, world_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
-void RenderFrameImpl::WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||||
|
+void RenderFrameImpl::WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context> context,
|
||||||
|
int world_id) {
|
||||||
|
for (auto& observer : observers_)
|
||||||
|
- observer.WillReleaseScriptContext(context, world_id);
|
||||||
|
+ observer.WillReleaseScriptContext(isolate, context, world_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
void RenderFrameImpl::DidChangeScrollOffset() {
|
||||||
|
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
||||||
|
index f0f4335aa815ea50dbf9b720b41e4eb31f27fb90..319f222565e4ef25206cc44d33ec5e291b8ea089 100644
|
||||||
|
--- a/content/renderer/render_frame_impl.h
|
||||||
|
+++ b/content/renderer/render_frame_impl.h
|
||||||
|
@@ -604,7 +604,8 @@ class CONTENT_EXPORT RenderFrameImpl
|
||||||
|
int world_id) override;
|
||||||
|
void DidInstallConditionalFeatures(v8::Local<v8::Context> context,
|
||||||
|
int world_id) override;
|
||||||
|
- void WillReleaseScriptContext(v8::Local<v8::Context> context,
|
||||||
|
+ void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context> context,
|
||||||
|
int world_id) override;
|
||||||
|
void DidChangeScrollOffset() override;
|
||||||
|
blink::WebMediaStreamDeviceObserver* MediaStreamDeviceObserver() override;
|
||||||
|
diff --git a/content/renderer/service_worker/service_worker_context_client.cc b/content/renderer/service_worker/service_worker_context_client.cc
|
||||||
|
index 37691ecee7a72b2ec47ff575239f628116cf136b..c67e3faf7440514e203e5b15a68fc34525a045a2 100644
|
||||||
|
--- a/content/renderer/service_worker/service_worker_context_client.cc
|
||||||
|
+++ b/content/renderer/service_worker/service_worker_context_client.cc
|
||||||
|
@@ -318,6 +318,7 @@ void ServiceWorkerContextClient::WorkerContextStarted(
|
||||||
|
}
|
||||||
|
|
||||||
|
void ServiceWorkerContextClient::WillEvaluateScript(
|
||||||
|
+ v8::Isolate* const v8_isolate,
|
||||||
|
v8::Local<v8::Context> v8_context) {
|
||||||
|
DCHECK(worker_task_runner_->RunsTasksInCurrentSequence());
|
||||||
|
start_timing_->script_evaluation_start_time = base::TimeTicks::Now();
|
||||||
|
@@ -336,8 +337,8 @@ void ServiceWorkerContextClient::WillEvaluateScript(
|
||||||
|
|
||||||
|
DCHECK(proxy_);
|
||||||
|
GetContentClient()->renderer()->WillEvaluateServiceWorkerOnWorkerThread(
|
||||||
|
- proxy_, v8_context, service_worker_version_id_, service_worker_scope_,
|
||||||
|
- script_url_, service_worker_token_);
|
||||||
|
+ proxy_, v8_isolate, v8_context, service_worker_version_id_,
|
||||||
|
+ service_worker_scope_, script_url_, service_worker_token_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ServiceWorkerContextClient::DidEvaluateScript(bool success) {
|
||||||
|
diff --git a/content/renderer/service_worker/service_worker_context_client.h b/content/renderer/service_worker/service_worker_context_client.h
|
||||||
|
index 1f5e24bc38d6ced52e4773236522e9520efc6f6d..a22ca5968fce5e6a0c436ec9b40f0e2f7c1482cf 100644
|
||||||
|
--- a/content/renderer/service_worker/service_worker_context_client.h
|
||||||
|
+++ b/content/renderer/service_worker/service_worker_context_client.h
|
||||||
|
@@ -165,7 +165,8 @@ class ServiceWorkerContextClient
|
||||||
|
void WorkerContextStarted(
|
||||||
|
blink::WebServiceWorkerContextProxy* proxy,
|
||||||
|
scoped_refptr<base::SequencedTaskRunner> worker_task_runner) override;
|
||||||
|
- void WillEvaluateScript(v8::Local<v8::Context> v8_context) override;
|
||||||
|
+ void WillEvaluateScript(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context> v8_context) override;
|
||||||
|
void DidEvaluateScript(bool success) override;
|
||||||
|
void WillInitializeWorkerContext() override;
|
||||||
|
void WillDestroyWorkerContext(v8::Local<v8::Context> context) override;
|
||||||
|
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
|
||||||
|
index 37fc43bfc6804c2abb0cf107e2575c72cfca9023..9f3c88be38b9c8960a38649c7f3bf71dff182383 100644
|
||||||
|
--- a/extensions/renderer/dispatcher.cc
|
||||||
|
+++ b/extensions/renderer/dispatcher.cc
|
||||||
|
@@ -612,6 +612,7 @@ void Dispatcher::DidInitializeServiceWorkerContextOnWorkerThread(
|
||||||
|
|
||||||
|
void Dispatcher::WillEvaluateServiceWorkerOnWorkerThread(
|
||||||
|
blink::WebServiceWorkerContextProxy* context_proxy,
|
||||||
|
+ v8::Isolate* const isolate,
|
||||||
|
v8::Local<v8::Context> v8_context,
|
||||||
|
int64_t service_worker_version_id,
|
||||||
|
const GURL& service_worker_scope,
|
||||||
|
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
|
||||||
|
index 9d4c74b7996e2e573079413cd24a99f86dd5b90f..241c012f1a7434944dc5ea6cad8a8c9988b069b2 100644
|
||||||
|
--- a/extensions/renderer/dispatcher.h
|
||||||
|
+++ b/extensions/renderer/dispatcher.h
|
||||||
|
@@ -151,6 +151,7 @@ class Dispatcher : public content::RenderThreadObserver,
|
||||||
|
// variables.
|
||||||
|
void WillEvaluateServiceWorkerOnWorkerThread(
|
||||||
|
blink::WebServiceWorkerContextProxy* context_proxy,
|
||||||
|
+ v8::Isolate* const isolate,
|
||||||
|
v8::Local<v8::Context> v8_context,
|
||||||
|
int64_t service_worker_version_id,
|
||||||
|
const GURL& service_worker_scope,
|
||||||
|
diff --git a/extensions/renderer/extension_frame_helper.cc b/extensions/renderer/extension_frame_helper.cc
|
||||||
|
index c89ea22fcd36a9fef2ce8a83ffc46d3358630e90..6c14424384832b5ed193a08c46a0addb27e54244 100644
|
||||||
|
--- a/extensions/renderer/extension_frame_helper.cc
|
||||||
|
+++ b/extensions/renderer/extension_frame_helper.cc
|
||||||
|
@@ -439,6 +439,7 @@ void ExtensionFrameHelper::DidCreateScriptContext(
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExtensionFrameHelper::WillReleaseScriptContext(
|
||||||
|
+ v8::Isolate* const isolate,
|
||||||
|
v8::Local<v8::Context> context,
|
||||||
|
int32_t world_id) {
|
||||||
|
extension_dispatcher_->WillReleaseScriptContext(
|
||||||
|
diff --git a/extensions/renderer/extension_frame_helper.h b/extensions/renderer/extension_frame_helper.h
|
||||||
|
index e16f370211ba014f778e7b9021b83988a5d27661..a79b20fe95050d6e92615711988384deea3fa1e0 100644
|
||||||
|
--- a/extensions/renderer/extension_frame_helper.h
|
||||||
|
+++ b/extensions/renderer/extension_frame_helper.h
|
||||||
|
@@ -188,7 +188,8 @@ class ExtensionFrameHelper
|
||||||
|
blink::WebDocumentLoader* document_loader) override;
|
||||||
|
void DidCreateScriptContext(v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override;
|
||||||
|
- void WillReleaseScriptContext(v8::Local<v8::Context>,
|
||||||
|
+ void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override;
|
||||||
|
void OnDestruct() override;
|
||||||
|
void DidClearWindowObject() override;
|
||||||
|
diff --git a/third_party/blink/public/web/modules/service_worker/web_service_worker_context_client.h b/third_party/blink/public/web/modules/service_worker/web_service_worker_context_client.h
|
||||||
|
index f96781a047056876b030581b539be0507acc3a1c..cd9be80be2500a001b1895c81ee597dd16fd295b 100644
|
||||||
|
--- a/third_party/blink/public/web/modules/service_worker/web_service_worker_context_client.h
|
||||||
|
+++ b/third_party/blink/public/web/modules/service_worker/web_service_worker_context_client.h
|
||||||
|
@@ -120,7 +120,8 @@ class WebServiceWorkerContextClient {
|
||||||
|
//
|
||||||
|
// |v8_context| is the V8 context of the worker and is used to support
|
||||||
|
// service workers in Chrome extensions.
|
||||||
|
- virtual void WillEvaluateScript(v8::Local<v8::Context> v8_context) {}
|
||||||
|
+ virtual void WillEvaluateScript(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context> v8_context) {}
|
||||||
|
|
||||||
|
// Called when initial script evaluation finished for the main script.
|
||||||
|
// |success| is true if the evaluation completed with no uncaught exception.
|
||||||
|
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
|
||||||
|
index 52e8828d8fffaba8ab05436cb4d727595f18238a..6743653f5018c06d3e173aaacdca7275c6ec703f 100644
|
||||||
|
--- a/third_party/blink/public/web/web_local_frame_client.h
|
||||||
|
+++ b/third_party/blink/public/web/web_local_frame_client.h
|
||||||
|
@@ -665,7 +665,8 @@ class BLINK_EXPORT WebLocalFrameClient {
|
||||||
|
int32_t world_id) {}
|
||||||
|
|
||||||
|
// WebKit is about to release its reference to a v8 context for a frame.
|
||||||
|
- virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
|
||||||
|
+ virtual void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) {}
|
||||||
|
|
||||||
|
// Geometry notifications ----------------------------------------------
|
||||||
|
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
|
||||||
|
index 2e8653654686f4fc775288f059ff27daa38e02d5..b0e061525f442952e5f8a90fed7002830dbb4bc3 100644
|
||||||
|
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
||||||
|
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
||||||
|
@@ -108,11 +108,12 @@ void LocalWindowProxy::DisposeContext(Lifecycle next_status,
|
||||||
|
|
||||||
|
ScriptState::Scope scope(script_state_);
|
||||||
|
v8::Local<v8::Context> context = script_state_->GetContext();
|
||||||
|
+ CHECK_EQ(GetIsolate(), script_state_->GetIsolate());
|
||||||
|
// The embedder could run arbitrary code in response to the
|
||||||
|
// willReleaseScriptContext callback, so all disposing should happen after
|
||||||
|
// it returns.
|
||||||
|
- GetFrame()->Client()->WillReleaseScriptContext(context, world_->GetWorldId());
|
||||||
|
- CHECK_EQ(GetIsolate(), script_state_->GetIsolate());
|
||||||
|
+ GetFrame()->Client()->WillReleaseScriptContext(
|
||||||
|
+ GetIsolate(), context, world_->GetWorldId());
|
||||||
|
MainThreadDebugger::Instance(GetIsolate())
|
||||||
|
->ContextWillBeDestroyed(script_state_);
|
||||||
|
if (next_status == Lifecycle::kV8MemoryIsForciblyPurged ||
|
||||||
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_client.h b/third_party/blink/renderer/core/frame/local_frame_client.h
|
||||||
|
index 8d73ddb12013ce195026b9f63050cf33f0bfb0fd..078f0e67e8de6a05178e8e2410f61784fe656dee 100644
|
||||||
|
--- a/third_party/blink/renderer/core/frame/local_frame_client.h
|
||||||
|
+++ b/third_party/blink/renderer/core/frame/local_frame_client.h
|
||||||
|
@@ -303,7 +303,8 @@ class CORE_EXPORT LocalFrameClient : public FrameClient {
|
||||||
|
int32_t world_id) = 0;
|
||||||
|
virtual void DidInstallConditionalFeatures(v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) = 0;
|
||||||
|
- virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
|
||||||
|
+ virtual void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) = 0;
|
||||||
|
virtual bool AllowScriptExtensions() = 0;
|
||||||
|
|
||||||
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
|
index 1aacf6f66b543a4ede6ab5d885143dd4a0821e8a..c695d942e295d9137a284e5536a10d49a055bbf4 100644
|
||||||
|
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
|
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
|
||||||
|
@@ -303,10 +303,11 @@ void LocalFrameClientImpl::DidInstallConditionalFeatures(
|
||||||
|
}
|
||||||
|
|
||||||
|
void LocalFrameClientImpl::WillReleaseScriptContext(
|
||||||
|
+ v8::Isolate* const isolate,
|
||||||
|
v8::Local<v8::Context> context,
|
||||||
|
int32_t world_id) {
|
||||||
|
if (web_frame_->Client()) {
|
||||||
|
- web_frame_->Client()->WillReleaseScriptContext(context, world_id);
|
||||||
|
+ web_frame_->Client()->WillReleaseScriptContext(isolate, context, world_id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.h b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
|
index 16066fe34ee0335a0dabe00b6890e5844349c0b5..cc84479f65bdbe56cb4b38bfcef0d752bbe68d35 100644
|
||||||
|
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
|
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
|
||||||
|
@@ -83,7 +83,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
|
||||||
|
int32_t world_id) override;
|
||||||
|
void DidInstallConditionalFeatures(v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override;
|
||||||
|
- void WillReleaseScriptContext(v8::Local<v8::Context>,
|
||||||
|
+ void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override;
|
||||||
|
|
||||||
|
// Returns true if we should allow register V8 extensions to be added.
|
||||||
|
diff --git a/third_party/blink/renderer/core/loader/empty_clients.h b/third_party/blink/renderer/core/loader/empty_clients.h
|
||||||
|
index d8f3b11c98fd58baa9995762a29847b9fd760c84..5a9c9356a2098dfa9d28a5d30b19b492463216c8 100644
|
||||||
|
--- a/third_party/blink/renderer/core/loader/empty_clients.h
|
||||||
|
+++ b/third_party/blink/renderer/core/loader/empty_clients.h
|
||||||
|
@@ -422,7 +422,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
|
||||||
|
int32_t world_id) override {}
|
||||||
|
void DidInstallConditionalFeatures(v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override {}
|
||||||
|
- void WillReleaseScriptContext(v8::Local<v8::Context>,
|
||||||
|
+ void WillReleaseScriptContext(v8::Isolate* const isolate,
|
||||||
|
+ v8::Local<v8::Context>,
|
||||||
|
int32_t world_id) override {}
|
||||||
|
bool AllowScriptExtensions() override { return false; }
|
||||||
|
|
||||||
|
diff --git a/third_party/blink/renderer/modules/service_worker/service_worker_global_scope_proxy.cc b/third_party/blink/renderer/modules/service_worker/service_worker_global_scope_proxy.cc
|
||||||
|
index eff817cda59a7b6e746813d5c42911d80547b5bd..217c4f76d62dd4910e89d4cb4cff4206fc84cfb1 100644
|
||||||
|
--- a/third_party/blink/renderer/modules/service_worker/service_worker_global_scope_proxy.cc
|
||||||
|
+++ b/third_party/blink/renderer/modules/service_worker/service_worker_global_scope_proxy.cc
|
||||||
|
@@ -180,6 +180,7 @@ void ServiceWorkerGlobalScopeProxy::WillEvaluateScript() {
|
||||||
|
ScriptState::Scope scope(
|
||||||
|
WorkerGlobalScope()->ScriptController()->GetScriptState());
|
||||||
|
Client().WillEvaluateScript(
|
||||||
|
+ WorkerGlobalScope()->ScriptController()->GetScriptState()->GetIsolate(),
|
||||||
|
WorkerGlobalScope()->ScriptController()->GetContext());
|
||||||
|
top_level_script_evaluation_start_time_ = base::TimeTicks::Now();
|
||||||
|
}
|
|
@ -10,7 +10,7 @@ Subject: chore: "grandfather in" Electron Views and Delegates
|
||||||
6448510: Lock further access to View::set_owned_by_client(). | https://chromium-review.googlesource.com/c/chromium/src/+/6448510
|
6448510: Lock further access to View::set_owned_by_client(). | https://chromium-review.googlesource.com/c/chromium/src/+/6448510
|
||||||
|
|
||||||
diff --git a/ui/views/view.h b/ui/views/view.h
|
diff --git a/ui/views/view.h b/ui/views/view.h
|
||||||
index 08ec59edf033052233a105ab13cf00ada8bd4e38..b80d3ab4eb24487de6a8a27d67d23d275513b80e 100644
|
index ee028fccef7dcc9c3522d09e503d2ac49ffd329a..a56c2f87ee21a2bba2cb65acd426cb192124fa85 100644
|
||||||
--- a/ui/views/view.h
|
--- a/ui/views/view.h
|
||||||
+++ b/ui/views/view.h
|
+++ b/ui/views/view.h
|
||||||
@@ -80,6 +80,19 @@ class ArcNotificationContentView;
|
@@ -80,6 +80,19 @@ class ArcNotificationContentView;
|
||||||
|
@ -49,7 +49,7 @@ index 08ec59edf033052233a105ab13cf00ada8bd4e38..b80d3ab4eb24487de6a8a27d67d23d27
|
||||||
// These existing cases are "grandfathered in", but there shouldn't be more.
|
// These existing cases are "grandfathered in", but there shouldn't be more.
|
||||||
// See comments atop class.
|
// See comments atop class.
|
||||||
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h
|
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h
|
||||||
index 1b23449ceb8e2c257cd40c375154a5fa93d1a26e..3aca30535eb99132a664936bcb19e58e075f4095 100644
|
index ff9c5abfdb02d9798b1491e2bbc296f2c7c74398..47d8a897d58b0d3829734105e81b887684dd009b 100644
|
||||||
--- a/ui/views/widget/widget_delegate.h
|
--- a/ui/views/widget/widget_delegate.h
|
||||||
+++ b/ui/views/widget/widget_delegate.h
|
+++ b/ui/views/widget/widget_delegate.h
|
||||||
@@ -168,6 +168,12 @@ namespace crostini {
|
@@ -168,6 +168,12 @@ namespace crostini {
|
||||||
|
@ -73,7 +73,7 @@ index 1b23449ceb8e2c257cd40c375154a5fa93d1a26e..3aca30535eb99132a664936bcb19e58e
|
||||||
// DO NOT ADD TO THIS LIST!
|
// DO NOT ADD TO THIS LIST!
|
||||||
// These existing cases are "grandfathered in", but there shouldn't be more.
|
// These existing cases are "grandfathered in", but there shouldn't be more.
|
||||||
// See comments atop `SetOwnedByWidget()`.
|
// See comments atop `SetOwnedByWidget()`.
|
||||||
@@ -465,6 +472,7 @@ class VIEWS_EXPORT WidgetDelegate {
|
@@ -464,6 +471,7 @@ class VIEWS_EXPORT WidgetDelegate {
|
||||||
};
|
};
|
||||||
class RegisterDeleteCallbackPassKey {
|
class RegisterDeleteCallbackPassKey {
|
||||||
private:
|
private:
|
||||||
|
@ -81,7 +81,7 @@ index 1b23449ceb8e2c257cd40c375154a5fa93d1a26e..3aca30535eb99132a664936bcb19e58e
|
||||||
// DO NOT ADD TO THIS LIST!
|
// DO NOT ADD TO THIS LIST!
|
||||||
// These existing cases are "grandfathered in", but there shouldn't be more.
|
// These existing cases are "grandfathered in", but there shouldn't be more.
|
||||||
// See comments atop `RegisterDeleteDelegateCallback()`.
|
// See comments atop `RegisterDeleteDelegateCallback()`.
|
||||||
@@ -922,6 +930,7 @@ class VIEWS_EXPORT WidgetDelegateView : public WidgetDelegate, public View {
|
@@ -921,6 +929,7 @@ class VIEWS_EXPORT WidgetDelegateView : public WidgetDelegate, public View {
|
||||||
View* GetContentsView() override;
|
View* GetContentsView() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -34,7 +34,7 @@ index 2dc44d4787d5198cff7be2cf98ad5acf2d3a9a0b..27a0335aac2bd4239616cf71f5d015c9
|
||||||
|
|
||||||
class ScrollEvent;
|
class ScrollEvent;
|
||||||
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
index 315356b513e9f2c0ce7658aefeb69d0ac327c4de..54a94e1348fa196eaee8314076c47286c9ab0bcc 100644
|
index 7dd0e38866576389d59aecdd5a9ecc712996a597..4c626e026e5b19db737533607957d0ff2fbeae28 100644
|
||||||
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
@@ -1367,6 +1367,10 @@ HBRUSH DesktopWindowTreeHostWin::GetBackgroundPaintBrush() {
|
@@ -1367,6 +1367,10 @@ HBRUSH DesktopWindowTreeHostWin::GetBackgroundPaintBrush() {
|
||||||
|
@ -61,7 +61,7 @@ index dcda976f4c3cc0ba6bcf015d5bf7435df009ae30..13cfa18bf406f244ec361a1230ccce44
|
||||||
Widget* GetWidget();
|
Widget* GetWidget();
|
||||||
const Widget* GetWidget() const;
|
const Widget* GetWidget() const;
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index 3637176c05a7074cb9042b74f7c9ea2e29af5ee5..3ed583cf09dec0ae83c3c9449e6ef7e1fa92aa8d 100644
|
index 76893d462786eaff21838614a8251b97bec92a79..72474adfb09f85118b4f752a22d121ab2b4c588a 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -3239,15 +3239,19 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message,
|
@@ -3239,15 +3239,19 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message,
|
||||||
|
@ -114,7 +114,7 @@ index 3637176c05a7074cb9042b74f7c9ea2e29af5ee5..3ed583cf09dec0ae83c3c9449e6ef7e1
|
||||||
}
|
}
|
||||||
} else if (message == WM_NCLBUTTONDOWN &&
|
} else if (message == WM_NCLBUTTONDOWN &&
|
||||||
diff --git a/ui/views/win/hwnd_message_handler_delegate.h b/ui/views/win/hwnd_message_handler_delegate.h
|
diff --git a/ui/views/win/hwnd_message_handler_delegate.h b/ui/views/win/hwnd_message_handler_delegate.h
|
||||||
index 2aa7ca1f713da54d12c7ac78103a260a4744d040..7449d7642022145fc1be76b299fa1db2d724122b 100644
|
index 15e8cde9508170addec55290c859c91224bb2c33..a34948b9a42f030c71e453f1c534215fc2e671fa 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler_delegate.h
|
--- a/ui/views/win/hwnd_message_handler_delegate.h
|
||||||
+++ b/ui/views/win/hwnd_message_handler_delegate.h
|
+++ b/ui/views/win/hwnd_message_handler_delegate.h
|
||||||
@@ -256,6 +256,10 @@ class VIEWS_EXPORT HWNDMessageHandlerDelegate {
|
@@ -256,6 +256,10 @@ class VIEWS_EXPORT HWNDMessageHandlerDelegate {
|
||||||
|
|
|
@ -14,10 +14,10 @@ track down the source of this problem & figure out if we can fix it
|
||||||
by changing something in Electron.
|
by changing something in Electron.
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 3a9264493f90fb8e82e34e13328d74c00d156966..dd274924f1c26efbc9fc3683f69647a0933a9855 100644
|
index 2fd9e3ce15869b284ff8716c02ce8dc6392b2a7b..7bda1bd1d7c34e369c27e4ec283888fe4d50458d 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -5275,7 +5275,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5269,7 +5269,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
: IsGuest();
|
: IsGuest();
|
||||||
// While some guest types do not have a guest SiteInstance, the ones that
|
// While some guest types do not have a guest SiteInstance, the ones that
|
||||||
// don't all override WebContents creation above.
|
// don't all override WebContents creation above.
|
||||||
|
|
|
@ -14,10 +14,10 @@ This change patches it out to prevent the DCHECK.
|
||||||
It can be removed once/if we see a better solution to the problem.
|
It can be removed once/if we see a better solution to the problem.
|
||||||
|
|
||||||
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
|
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
|
||||||
index 8221d7b96395b06ee177be302dd476c83f569eaf..4c4500421f9cd164ab49b85457e6e37e0b4a703c 100644
|
index 354a5870ef5b07a5903a1b40fcbb00462bf4a64b..bf3af2152ff7ca54412442b275ec7eedd60110ba 100644
|
||||||
--- a/content/browser/site_instance_impl.cc
|
--- a/content/browser/site_instance_impl.cc
|
||||||
+++ b/content/browser/site_instance_impl.cc
|
+++ b/content/browser/site_instance_impl.cc
|
||||||
@@ -226,7 +226,7 @@ scoped_refptr<SiteInstanceImpl> SiteInstanceImpl::CreateForGuest(
|
@@ -225,7 +225,7 @@ scoped_refptr<SiteInstanceImpl> SiteInstanceImpl::CreateForGuest(
|
||||||
BrowserContext* browser_context,
|
BrowserContext* browser_context,
|
||||||
const StoragePartitionConfig& partition_config) {
|
const StoragePartitionConfig& partition_config) {
|
||||||
DCHECK(browser_context);
|
DCHECK(browser_context);
|
||||||
|
|
|
@ -27,12 +27,12 @@ index c390a83277f564f1a67a7dcffa36b9d77a35bc0b..b13273a4b194ad5e8ca2d1639ebca831
|
||||||
// When the enterprise policy is not set, use finch/feature flag choice.
|
// When the enterprise policy is not set, use finch/feature flag choice.
|
||||||
return base::FeatureList::IsEnabled(
|
return base::FeatureList::IsEnabled(
|
||||||
diff --git a/chrome/browser/pdf/pdf_extension_util.cc b/chrome/browser/pdf/pdf_extension_util.cc
|
diff --git a/chrome/browser/pdf/pdf_extension_util.cc b/chrome/browser/pdf/pdf_extension_util.cc
|
||||||
index 1362d0c69043ac5d1f7e72cf7ac72c272193844c..08efd98ca16555f6a7bbfb4ae3165130e843c981 100644
|
index 32e9d7e81ee8008b7e8fd491ec16afc01b5ff35e..51213f193cc5977f9f30dd39548eaf012a4857fa 100644
|
||||||
--- a/chrome/browser/pdf/pdf_extension_util.cc
|
--- a/chrome/browser/pdf/pdf_extension_util.cc
|
||||||
+++ b/chrome/browser/pdf/pdf_extension_util.cc
|
+++ b/chrome/browser/pdf/pdf_extension_util.cc
|
||||||
@@ -271,10 +271,13 @@ bool IsPrintingEnabled(content::BrowserContext* context) {
|
@@ -234,10 +234,13 @@ bool IsPrintingEnabled(content::BrowserContext* context) {
|
||||||
|
|
||||||
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(ENABLE_PDF_INK2)
|
#if BUILDFLAG(ENABLE_PDF_INK2)
|
||||||
bool IsPdfAnnotationsEnabledByPolicy(content::BrowserContext* context) {
|
bool IsPdfAnnotationsEnabledByPolicy(content::BrowserContext* context) {
|
||||||
+# if 0
|
+# if 0
|
||||||
PrefService* prefs =
|
PrefService* prefs =
|
||||||
|
@ -42,7 +42,7 @@ index 1362d0c69043ac5d1f7e72cf7ac72c272193844c..08efd98ca16555f6a7bbfb4ae3165130
|
||||||
+#endif
|
+#endif
|
||||||
+ return true;
|
+ return true;
|
||||||
}
|
}
|
||||||
#endif // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(ENABLE_PDF_INK2)
|
#endif // BUILDFLAG(ENABLE_PDF_INK2)
|
||||||
|
|
||||||
diff --git a/chrome/browser/profiles/profile_selections.cc b/chrome/browser/profiles/profile_selections.cc
|
diff --git a/chrome/browser/profiles/profile_selections.cc b/chrome/browser/profiles/profile_selections.cc
|
||||||
index bc0bad82ebcdceadc505e912ff27202b452fefab..6b77c57fccc4619a1df3b4ed661d2bdd60960228 100644
|
index bc0bad82ebcdceadc505e912ff27202b452fefab..6b77c57fccc4619a1df3b4ed661d2bdd60960228 100644
|
||||||
|
|
|
@ -80,20 +80,20 @@ index b6582b4013d9682d32bd524b4053b443a4df00f8..afcbce72e0f247b4d5a637b27c9f25d9
|
||||||
content::WebContents* source,
|
content::WebContents* source,
|
||||||
const content::OpenURLParams& params,
|
const content::OpenURLParams& params,
|
||||||
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
||||||
index 5cf1070e3f407fdb1748b2171b3974933d4610c1..96960883dd68c511d66414f66cf989d28bd4eb36 100644
|
index 00cea7307c68c3d8ae93f5ed6df33cef9065fe7b..c2a3892b0ade29d59b06753fdc84f44dc0890f39 100644
|
||||||
--- a/chrome/browser/ui/browser.cc
|
--- a/chrome/browser/ui/browser.cc
|
||||||
+++ b/chrome/browser/ui/browser.cc
|
+++ b/chrome/browser/ui/browser.cc
|
||||||
@@ -2390,8 +2390,7 @@ bool Browser::IsWebContentsCreationOverridden(
|
@@ -2359,7 +2359,8 @@ bool Browser::IsWebContentsCreationOverridden(
|
||||||
content::SiteInstance* source_site_instance,
|
|
||||||
content::mojom::WindowContainerType window_container_type,
|
content::mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
- const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
- const GURL& target_url) {
|
- const GURL& target_url) {
|
||||||
|
+ const GURL& target_url,
|
||||||
+ const content::mojom::CreateNewWindowParams& params) {
|
+ const content::mojom::CreateNewWindowParams& params) {
|
||||||
if (IsActorOperatingOnWebContents(
|
if (actor::IsActorOperatingOnWebContents(
|
||||||
profile(), content::WebContents::FromRenderFrameHost(opener))) {
|
profile(), content::WebContents::FromRenderFrameHost(opener))) {
|
||||||
// If an ExecutionEngine is acting on the opener, prevent it from creating
|
// If an ExecutionEngine is acting on the opener, prevent it from creating
|
||||||
@@ -2403,7 +2402,7 @@ bool Browser::IsWebContentsCreationOverridden(
|
@@ -2371,7 +2372,7 @@ bool Browser::IsWebContentsCreationOverridden(
|
||||||
return (window_container_type ==
|
return (window_container_type ==
|
||||||
content::mojom::WindowContainerType::BACKGROUND &&
|
content::mojom::WindowContainerType::BACKGROUND &&
|
||||||
ShouldCreateBackgroundContents(source_site_instance, opener_url,
|
ShouldCreateBackgroundContents(source_site_instance, opener_url,
|
||||||
|
@ -103,10 +103,10 @@ index 5cf1070e3f407fdb1748b2171b3974933d4610c1..96960883dd68c511d66414f66cf989d2
|
||||||
|
|
||||||
WebContents* Browser::CreateCustomWebContents(
|
WebContents* Browser::CreateCustomWebContents(
|
||||||
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
|
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
|
||||||
index e80708919d3122d92f6fe63e5c111c999860762e..fb19037baa4cb95f8d581f4ccf984f0b19b6ca70 100644
|
index 636b265a6813b01a44930ae73655523b739cafd2..23dad43a14673966af3002263b03bb0cfb91e8f6 100644
|
||||||
--- a/chrome/browser/ui/browser.h
|
--- a/chrome/browser/ui/browser.h
|
||||||
+++ b/chrome/browser/ui/browser.h
|
+++ b/chrome/browser/ui/browser.h
|
||||||
@@ -951,8 +951,7 @@ class Browser : public TabStripModelObserver,
|
@@ -946,8 +946,7 @@ class Browser : public TabStripModelObserver,
|
||||||
content::SiteInstance* source_site_instance,
|
content::SiteInstance* source_site_instance,
|
||||||
content::mojom::WindowContainerType window_container_type,
|
content::mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
|
@ -159,10 +159,10 @@ index 08b9f7ad8544011ee1cbb9bc9857ea06e2fa2c0b..69f666bdc05662bc40e133022b5364cb
|
||||||
}
|
}
|
||||||
content::WebContents* CreateCustomWebContents(
|
content::WebContents* CreateCustomWebContents(
|
||||||
diff --git a/components/embedder_support/android/delegate/web_contents_delegate_android.cc b/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
diff --git a/components/embedder_support/android/delegate/web_contents_delegate_android.cc b/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
||||||
index c07249241e5265030c1feada568fbd54f4e18efa..f0946d19ce07723be8a3736f523db1951cccbb95 100644
|
index a560d65e113ba4fad4c56d9a2a19df1772079d07..4f621733276141248169b7f5ecc5b6f09140f774 100644
|
||||||
--- a/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
--- a/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
||||||
+++ b/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
+++ b/components/embedder_support/android/delegate/web_contents_delegate_android.cc
|
||||||
@@ -202,14 +202,13 @@ bool WebContentsDelegateAndroid::IsWebContentsCreationOverridden(
|
@@ -204,14 +204,13 @@ bool WebContentsDelegateAndroid::IsWebContentsCreationOverridden(
|
||||||
content::SiteInstance* source_site_instance,
|
content::SiteInstance* source_site_instance,
|
||||||
content::mojom::WindowContainerType window_container_type,
|
content::mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
|
@ -180,7 +180,7 @@ index c07249241e5265030c1feada568fbd54f4e18efa..f0946d19ce07723be8a3736f523db195
|
||||||
java_gurl);
|
java_gurl);
|
||||||
}
|
}
|
||||||
diff --git a/components/embedder_support/android/delegate/web_contents_delegate_android.h b/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
diff --git a/components/embedder_support/android/delegate/web_contents_delegate_android.h b/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
||||||
index 13afd2de87888e927d8baf77f4c3de65179c52f5..06de4a27e625745947d2c119fa8f5eb555d99a1d 100644
|
index a13f342976cb57b091ebfc95538f9ef91bb9e6fa..40506e913c0506e38cd141a46468a7669d6c2093 100644
|
||||||
--- a/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
--- a/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
||||||
+++ b/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
+++ b/components/embedder_support/android/delegate/web_contents_delegate_android.h
|
||||||
@@ -84,8 +84,7 @@ class WebContentsDelegateAndroid : public content::WebContentsDelegate {
|
@@ -84,8 +84,7 @@ class WebContentsDelegateAndroid : public content::WebContentsDelegate {
|
||||||
|
@ -222,10 +222,10 @@ index b969f1d97b7e3396119b579cfbe61e19ff7d2dd4..b8d6169652da28266a514938b45b39c5
|
||||||
content::WebContents* AddNewContents(
|
content::WebContents* AddNewContents(
|
||||||
content::WebContents* source,
|
content::WebContents* source,
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 95ea7eb743ae3e4de52741be7f2969bbf86d8a29..c9472325e55052ead090c55704b590bb6722c429 100644
|
index 4e2e910c62534106209758a0e5aeb329cfbaa529..b7967a4ab1c9d2c7b2a49a610af10190bcd6e0f0 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -5238,8 +5238,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5232,8 +5232,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
if (delegate_ &&
|
if (delegate_ &&
|
||||||
delegate_->IsWebContentsCreationOverridden(
|
delegate_->IsWebContentsCreationOverridden(
|
||||||
opener, source_site_instance, params.window_container_type,
|
opener, source_site_instance, params.window_container_type,
|
||||||
|
@ -236,10 +236,10 @@ index 95ea7eb743ae3e4de52741be7f2969bbf86d8a29..c9472325e55052ead090c55704b590bb
|
||||||
static_cast<WebContentsImpl*>(delegate_->CreateCustomWebContents(
|
static_cast<WebContentsImpl*>(delegate_->CreateCustomWebContents(
|
||||||
opener, source_site_instance, is_new_browsing_instance,
|
opener, source_site_instance, is_new_browsing_instance,
|
||||||
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
|
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
|
||||||
index 33be50ce93dd998df5244f9ade391943f06978ad..3bb9baf76d331351d23d59fc2b9eb82d42b36b11 100644
|
index 80d004eb9060e33af9e60b31a862a7dcecb254e8..ea179bdf3e702fb1d5be55affe3958f77901cd08 100644
|
||||||
--- a/content/public/browser/web_contents_delegate.cc
|
--- a/content/public/browser/web_contents_delegate.cc
|
||||||
+++ b/content/public/browser/web_contents_delegate.cc
|
+++ b/content/public/browser/web_contents_delegate.cc
|
||||||
@@ -160,8 +160,7 @@ bool WebContentsDelegate::IsWebContentsCreationOverridden(
|
@@ -155,8 +155,7 @@ bool WebContentsDelegate::IsWebContentsCreationOverridden(
|
||||||
SiteInstance* source_site_instance,
|
SiteInstance* source_site_instance,
|
||||||
mojom::WindowContainerType window_container_type,
|
mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
|
@ -250,10 +250,10 @@ index 33be50ce93dd998df5244f9ade391943f06978ad..3bb9baf76d331351d23d59fc2b9eb82d
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
||||||
index 6c4c6265c26f5304b8f77d7fc5a4fad5dffc831d..d0842904102fee982bc8502478a0a9067bb77904 100644
|
index 6a43f8c30857bfb32867e63d570ad26459af9ae8..97def739ec2418286b76c0039c61b501293c8f5d 100644
|
||||||
--- a/content/public/browser/web_contents_delegate.h
|
--- a/content/public/browser/web_contents_delegate.h
|
||||||
+++ b/content/public/browser/web_contents_delegate.h
|
+++ b/content/public/browser/web_contents_delegate.h
|
||||||
@@ -364,8 +364,7 @@ class CONTENT_EXPORT WebContentsDelegate {
|
@@ -361,8 +361,7 @@ class CONTENT_EXPORT WebContentsDelegate {
|
||||||
SiteInstance* source_site_instance,
|
SiteInstance* source_site_instance,
|
||||||
mojom::WindowContainerType window_container_type,
|
mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
|
@ -356,10 +356,10 @@ index 7eeffdfbda9611806c6f260f0c68f6d84689cb7e..5d8f6d132068d7fabaa52bc61354c71a
|
||||||
content::RenderFrameHost* opener,
|
content::RenderFrameHost* opener,
|
||||||
content::SiteInstance* source_site_instance,
|
content::SiteInstance* source_site_instance,
|
||||||
diff --git a/fuchsia_web/webengine/browser/frame_impl.cc b/fuchsia_web/webengine/browser/frame_impl.cc
|
diff --git a/fuchsia_web/webengine/browser/frame_impl.cc b/fuchsia_web/webengine/browser/frame_impl.cc
|
||||||
index 570cfeb6c74f04d4748648b86661ccf603c71452..da8b64d70e5b26431a576cc52316210fce36f99a 100644
|
index fdc6afbf9048fa254d6f361b36765cf95d5eb521..16d297a3f6bde6bc4c038b79a057700aec68b689 100644
|
||||||
--- a/fuchsia_web/webengine/browser/frame_impl.cc
|
--- a/fuchsia_web/webengine/browser/frame_impl.cc
|
||||||
+++ b/fuchsia_web/webengine/browser/frame_impl.cc
|
+++ b/fuchsia_web/webengine/browser/frame_impl.cc
|
||||||
@@ -582,8 +582,7 @@ bool FrameImpl::IsWebContentsCreationOverridden(
|
@@ -584,8 +584,7 @@ bool FrameImpl::IsWebContentsCreationOverridden(
|
||||||
content::SiteInstance* source_site_instance,
|
content::SiteInstance* source_site_instance,
|
||||||
content::mojom::WindowContainerType window_container_type,
|
content::mojom::WindowContainerType window_container_type,
|
||||||
const GURL& opener_url,
|
const GURL& opener_url,
|
||||||
|
@ -398,7 +398,7 @@ index 1d95f5b521d7ab586fcecda6d6f822b432480367..b534327a8bd5b2c31522339b30caf123
|
||||||
->options()
|
->options()
|
||||||
->block_new_web_contents();
|
->block_new_web_contents();
|
||||||
diff --git a/ui/views/controls/webview/web_dialog_view.cc b/ui/views/controls/webview/web_dialog_view.cc
|
diff --git a/ui/views/controls/webview/web_dialog_view.cc b/ui/views/controls/webview/web_dialog_view.cc
|
||||||
index 42e0654da5659ba647529c4b0b97ec5df61d59a1..406e2ca73c182005014b56824e89ddfb25fd28f5 100644
|
index 3a6d0c589ee634b68e929c17ee912a6b1c19b4f6..b13d80623d1fd0d0798cec33cb92f73ed5947ffa 100644
|
||||||
--- a/ui/views/controls/webview/web_dialog_view.cc
|
--- a/ui/views/controls/webview/web_dialog_view.cc
|
||||||
+++ b/ui/views/controls/webview/web_dialog_view.cc
|
+++ b/ui/views/controls/webview/web_dialog_view.cc
|
||||||
@@ -490,8 +490,7 @@ bool WebDialogView::IsWebContentsCreationOverridden(
|
@@ -490,8 +490,7 @@ bool WebDialogView::IsWebContentsCreationOverridden(
|
||||||
|
|
|
@ -8,10 +8,10 @@ Allow registering custom protocols to handle service worker main script fetching
|
||||||
Refs https://bugs.chromium.org/p/chromium/issues/detail?id=996511
|
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
|
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
|
||||||
index 6bcf498a08a4600b6fb4892e395d6d20bf771057..5d4b50fbfdb43a3efee99f2e27b7fed1fac42e9e 100644
|
index 25c9e17bd063cc07fd2727474395a9276c4a000d..413f3019bd55388e8ebc8fe39af766b7c61e9924 100644
|
||||||
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
||||||
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
||||||
@@ -1956,6 +1956,26 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
@@ -1957,6 +1957,26 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
||||||
loader_factory_bundle_info =
|
loader_factory_bundle_info =
|
||||||
context()->loader_factory_bundle_for_update_check()->Clone();
|
context()->loader_factory_bundle_for_update_check()->Clone();
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ index 6bcf498a08a4600b6fb4892e395d6d20bf771057..5d4b50fbfdb43a3efee99f2e27b7fed1
|
||||||
if (auto* config = content::WebUIConfigMap::GetInstance().GetConfig(
|
if (auto* config = content::WebUIConfigMap::GetInstance().GetConfig(
|
||||||
browser_context(), scope)) {
|
browser_context(), scope)) {
|
||||||
// If this is a Service Worker for a WebUI, the WebUI's URLDataSource
|
// If this is a Service Worker for a WebUI, the WebUI's URLDataSource
|
||||||
@@ -1975,9 +1995,7 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
@@ -1976,9 +1996,7 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
||||||
features::kEnableServiceWorkersForChromeScheme) &&
|
features::kEnableServiceWorkersForChromeScheme) &&
|
||||||
scope.scheme_piece() == kChromeUIScheme) {
|
scope.scheme_piece() == kChromeUIScheme) {
|
||||||
config->RegisterURLDataSource(browser_context());
|
config->RegisterURLDataSource(browser_context());
|
||||||
|
@ -49,7 +49,7 @@ index 6bcf498a08a4600b6fb4892e395d6d20bf771057..5d4b50fbfdb43a3efee99f2e27b7fed1
|
||||||
.emplace(kChromeUIScheme, CreateWebUIServiceWorkerLoaderFactory(
|
.emplace(kChromeUIScheme, CreateWebUIServiceWorkerLoaderFactory(
|
||||||
browser_context(), kChromeUIScheme,
|
browser_context(), kChromeUIScheme,
|
||||||
base::flat_set<std::string>()));
|
base::flat_set<std::string>()));
|
||||||
@@ -1985,9 +2003,7 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
@@ -1986,9 +2004,7 @@ ServiceWorkerContextWrapper::GetLoaderFactoryForBrowserInitiatedRequest(
|
||||||
features::kEnableServiceWorkersForChromeUntrusted) &&
|
features::kEnableServiceWorkersForChromeUntrusted) &&
|
||||||
scope.scheme_piece() == kChromeUIUntrustedScheme) {
|
scope.scheme_piece() == kChromeUIUntrustedScheme) {
|
||||||
config->RegisterURLDataSource(browser_context());
|
config->RegisterURLDataSource(browser_context());
|
||||||
|
|
|
@ -6,10 +6,10 @@ Subject: fix: disabling compositor recycling
|
||||||
Compositor recycling is useful for Chrome because there can be many tabs and spinning up a compositor for each one would be costly. In practice, Chrome uses the parent compositor code path of browser_compositor_view_mac.mm; the NSView of each tab is detached when it's hidden and attached when it's shown. For Electron, there is no parent compositor, so we're forced into the "own compositor" code path, which seems to be non-optimal and pretty ruthless in terms of the release of resources. Electron has no real concept of multiple tabs per window, so it should be okay to disable this ruthless recycling altogether in Electron.
|
Compositor recycling is useful for Chrome because there can be many tabs and spinning up a compositor for each one would be costly. In practice, Chrome uses the parent compositor code path of browser_compositor_view_mac.mm; the NSView of each tab is detached when it's hidden and attached when it's shown. For Electron, there is no parent compositor, so we're forced into the "own compositor" code path, which seems to be non-optimal and pretty ruthless in terms of the release of resources. Electron has no real concept of multiple tabs per window, so it should be okay to disable this ruthless recycling altogether in Electron.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
index 59c8d5a2e687ac6148889c87f353b33959e276f6..7ef10194f02e32a9ec137f7f2519c4a834b81b7a 100644
|
index 57103054e874017bf9926dcdf71786c679f9aac0..571f4cfd4882f048268ebadf00d05ad3c034fedc 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
@@ -561,7 +561,11 @@
|
@@ -558,7 +558,11 @@
|
||||||
return;
|
return;
|
||||||
|
|
||||||
host()->WasHidden();
|
host()->WasHidden();
|
||||||
|
|
|
@ -6,7 +6,7 @@ Subject: disable_hidden.patch
|
||||||
Electron uses this to disable background throttling for hidden windows.
|
Electron uses this to disable background throttling for hidden windows.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
index c28aa525c51e9be757d5d8f8e5a60857b7a451d4..e8baae79ab127e4626f39247a5e57fe6a6114453 100644
|
index 817b5da3f10faf0770274f3e03a3a0cd3400f135..27131371845a81c0af16d59334a98656095f4aeb 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
@@ -847,6 +847,10 @@ void RenderWidgetHostImpl::WasHidden() {
|
@@ -847,6 +847,10 @@ void RenderWidgetHostImpl::WasHidden() {
|
||||||
|
@ -21,10 +21,10 @@ index c28aa525c51e9be757d5d8f8e5a60857b7a451d4..e8baae79ab127e4626f39247a5e57fe6
|
||||||
// Prompts should remain open and functional across tab switches.
|
// Prompts should remain open and functional across tab switches.
|
||||||
if (!delegate_ || !delegate_->IsWaitingForPointerLockPrompt(this)) {
|
if (!delegate_ || !delegate_->IsWaitingForPointerLockPrompt(this)) {
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
index f07055487abd76b2a72ba555ff1b5bcd996bbd3a..7d46db80c667900576cf46264034890203020a75 100644
|
index 43c840283b1f7ac39c2ecec5741cc206c64a064e..c8b2a66eccc2ca0b2be1f338f6c77b906db69faa 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.h
|
--- a/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.h
|
+++ b/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
@@ -1026,6 +1026,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
@@ -1029,6 +1029,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
||||||
// cpu-priority boosted to run discard logic.
|
// cpu-priority boosted to run discard logic.
|
||||||
void SetIsDiscarding(bool is_discarding);
|
void SetIsDiscarding(bool is_discarding);
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ index f07055487abd76b2a72ba555ff1b5bcd996bbd3a..7d46db80c667900576cf462640348902
|
||||||
// |routing_id| must not be IPC::mojom::kRoutingIdNone.
|
// |routing_id| must not be IPC::mojom::kRoutingIdNone.
|
||||||
// If this object outlives |delegate|, DetachDelegate() must be called when
|
// If this object outlives |delegate|, DetachDelegate() must be called when
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
index f4c657fe36eba54948cacf9770d9c6c1b55b5fe5..b14f5bc3f023c512a066ce9ec9f681c96b1fafc4 100644
|
index 1ae2c9328679f12cfe7068c6ea0f1589314bc6f0..e98d74fecf4275ef8e7c6d23e5ea5ec3af80b926 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
@@ -644,7 +644,7 @@ void RenderWidgetHostViewAura::HideImpl() {
|
@@ -643,7 +643,7 @@ void RenderWidgetHostViewAura::HideImpl() {
|
||||||
CHECK(visibility_ == Visibility::HIDDEN ||
|
CHECK(visibility_ == Visibility::HIDDEN ||
|
||||||
visibility_ == Visibility::OCCLUDED);
|
visibility_ == Visibility::OCCLUDED);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Subject: feat: enable setting aspect ratio to 0
|
||||||
Make SetAspectRatio accept 0 as valid input, which would reset to null.
|
Make SetAspectRatio accept 0 as valid input, which would reset to null.
|
||||||
|
|
||||||
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
index 95f034ecf921265304cde98d2ce163a2ab09887a..315356b513e9f2c0ce7658aefeb69d0ac327c4de 100644
|
index 5d0c67f54a321ecb945b04f4981e93ea1e4c8d84..7dd0e38866576389d59aecdd5a9ecc712996a597 100644
|
||||||
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
@@ -619,7 +619,7 @@ void DesktopWindowTreeHostWin::SetOpacity(float opacity) {
|
@@ -619,7 +619,7 @@ void DesktopWindowTreeHostWin::SetOpacity(float opacity) {
|
||||||
|
@ -19,7 +19,7 @@ index 95f034ecf921265304cde98d2ce163a2ab09887a..315356b513e9f2c0ce7658aefeb69d0a
|
||||||
excluded_margin);
|
excluded_margin);
|
||||||
}
|
}
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index df17e97666de639f05b92a79ee7fbd4a3da6c64f..f404c718e0242ec9269e7d14eb236aa928fb5d58 100644
|
index 7f4aac3aed53b53d8b8d6bc9b5c507e63906060d..aa5b34fa3fdef76b9bb7afd26ecaeda785e25824 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -1050,8 +1050,11 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen,
|
@@ -1050,8 +1050,11 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen,
|
||||||
|
|
|
@ -33,11 +33,11 @@ index 0ab8187b0db8ae6db46d81738f653a2bc4c566f6..de3d55e85c22317f7f9375eb94d0d5d4
|
||||||
|
|
||||||
} // namespace net
|
} // namespace net
|
||||||
diff --git a/services/network/network_context.cc b/services/network/network_context.cc
|
diff --git a/services/network/network_context.cc b/services/network/network_context.cc
|
||||||
index 7721b8e827d9aac6e90ddfe3de264f41915219f2..1bc4f24c3f0eb843033d2aa541d81e910f8021b0 100644
|
index 3998bb0849cd5bec52c6148ccf1e1a30511b32fb..5b588c510e1e4d551aaf1a0eef2ec7500fcc326c 100644
|
||||||
--- a/services/network/network_context.cc
|
--- a/services/network/network_context.cc
|
||||||
+++ b/services/network/network_context.cc
|
+++ b/services/network/network_context.cc
|
||||||
@@ -1872,6 +1872,13 @@ void NetworkContext::SetNetworkConditions(
|
@@ -1892,6 +1892,13 @@ void NetworkContext::EnableDurableMessageCollector(
|
||||||
std::move(network_conditions));
|
it->second->AddReceiver(std::move(receiver));
|
||||||
}
|
}
|
||||||
|
|
||||||
+void NetworkContext::SetUserAgent(const std::string& new_user_agent) {
|
+void NetworkContext::SetUserAgent(const std::string& new_user_agent) {
|
||||||
|
@ -51,24 +51,24 @@ index 7721b8e827d9aac6e90ddfe3de264f41915219f2..1bc4f24c3f0eb843033d2aa541d81e91
|
||||||
// This may only be called on NetworkContexts created with the constructor
|
// This may only be called on NetworkContexts created with the constructor
|
||||||
// that calls MakeURLRequestContext().
|
// that calls MakeURLRequestContext().
|
||||||
diff --git a/services/network/network_context.h b/services/network/network_context.h
|
diff --git a/services/network/network_context.h b/services/network/network_context.h
|
||||||
index b9f201ccf04433a29083cd15cfe599fe9600c9c0..137aaf96a8d02b81afe64fde6b19ed1153569941 100644
|
index f7831633a286f7c4aec2dd269b02561275b008c7..799688c0fc662845b1ff75ff472ee667674ab74e 100644
|
||||||
--- a/services/network/network_context.h
|
--- a/services/network/network_context.h
|
||||||
+++ b/services/network/network_context.h
|
+++ b/services/network/network_context.h
|
||||||
@@ -326,6 +326,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
@@ -333,6 +333,7 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
||||||
void CloseIdleConnections(CloseIdleConnectionsCallback callback) override;
|
const base::UnguessableToken& throttling_profile_id,
|
||||||
void SetNetworkConditions(const base::UnguessableToken& throttling_profile_id,
|
mojo::PendingReceiver<network::mojom::DurableMessageCollector> receiver)
|
||||||
mojom::NetworkConditionsPtr conditions) override;
|
override;
|
||||||
+ void SetUserAgent(const std::string& new_user_agent) override;
|
+ void SetUserAgent(const std::string& new_user_agent) override;
|
||||||
void SetAcceptLanguage(const std::string& new_accept_language) override;
|
void SetAcceptLanguage(const std::string& new_accept_language) override;
|
||||||
void SetEnableReferrers(bool enable_referrers) override;
|
void SetEnableReferrers(bool enable_referrers) override;
|
||||||
#if BUILDFLAG(IS_CT_SUPPORTED)
|
#if BUILDFLAG(IS_CT_SUPPORTED)
|
||||||
diff --git a/services/network/public/mojom/network_context.mojom b/services/network/public/mojom/network_context.mojom
|
diff --git a/services/network/public/mojom/network_context.mojom b/services/network/public/mojom/network_context.mojom
|
||||||
index 1ed66c3b41e583745c5b309670fc4470fa1983cf..c7464641d0fc944aa47f3f1e0406dd4002d0bd0b 100644
|
index 6885ff48db5ddfb8e8ec09e91a4c01231261f8e5..4d674a226ff1ccb0c8288177ce6d55f77d4f8116 100644
|
||||||
--- a/services/network/public/mojom/network_context.mojom
|
--- a/services/network/public/mojom/network_context.mojom
|
||||||
+++ b/services/network/public/mojom/network_context.mojom
|
+++ b/services/network/public/mojom/network_context.mojom
|
||||||
@@ -1288,6 +1288,9 @@ interface NetworkContext {
|
@@ -1317,6 +1317,9 @@ interface NetworkContext {
|
||||||
SetNetworkConditions(mojo_base.mojom.UnguessableToken throttling_profile_id,
|
mojo_base.mojom.UnguessableToken throttling_profile_id,
|
||||||
NetworkConditions? conditions);
|
pending_receiver<DurableMessageCollector> receiver);
|
||||||
|
|
||||||
+ // Updates the user agent to be used for requests.
|
+ // Updates the user agent to be used for requests.
|
||||||
+ SetUserAgent(string new_user_agent);
|
+ SetUserAgent(string new_user_agent);
|
||||||
|
@ -77,10 +77,10 @@ index 1ed66c3b41e583745c5b309670fc4470fa1983cf..c7464641d0fc944aa47f3f1e0406dd40
|
||||||
SetAcceptLanguage(string new_accept_language);
|
SetAcceptLanguage(string new_accept_language);
|
||||||
|
|
||||||
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
||||||
index 70a5ab342a8954354a3d8245d30df9520cfd398d..02700030ab651b6f8f0aecfe6857ca40e6f3839f 100644
|
index cfd21ce01b7db6a4912de8e4ce0799825fd27e77..def5a1f569d480e95053ca54e117eeae64f28057 100644
|
||||||
--- a/services/network/test/test_network_context.h
|
--- a/services/network/test/test_network_context.h
|
||||||
+++ b/services/network/test/test_network_context.h
|
+++ b/services/network/test/test_network_context.h
|
||||||
@@ -158,6 +158,7 @@ class TestNetworkContext : public mojom::NetworkContext {
|
@@ -159,6 +159,7 @@ class TestNetworkContext : public mojom::NetworkContext {
|
||||||
void CloseIdleConnections(CloseIdleConnectionsCallback callback) override {}
|
void CloseIdleConnections(CloseIdleConnectionsCallback callback) override {}
|
||||||
void SetNetworkConditions(const base::UnguessableToken& throttling_profile_id,
|
void SetNetworkConditions(const base::UnguessableToken& throttling_profile_id,
|
||||||
mojom::NetworkConditionsPtr conditions) override {}
|
mojom::NetworkConditionsPtr conditions) override {}
|
||||||
|
|
|
@ -15,10 +15,10 @@ Ideally we could add an embedder observer pattern here but that can be
|
||||||
done in future work.
|
done in future work.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.cc b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
diff --git a/third_party/blink/renderer/core/exported/web_view_impl.cc b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
index b9799837c7ce14fc76045700b30e1358d4705251..5b3ab0837b5a85b4e7dd1685db75f65cd4d5ff43 100644
|
index be43ac07eb6563dcb72374dfc4f3bd34913e98c3..099297e6fac7962eb731ba50cb51b868fa7070ac 100644
|
||||||
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||||
@@ -1890,6 +1890,8 @@ void WebView::ApplyWebPreferences(const web_pref::WebPreferences& prefs,
|
@@ -1900,6 +1900,8 @@ void WebView::ApplyWebPreferences(const web_pref::WebPreferences& prefs,
|
||||||
#if BUILDFLAG(IS_MAC)
|
#if BUILDFLAG(IS_MAC)
|
||||||
web_view_impl->SetMaximumLegibleScale(
|
web_view_impl->SetMaximumLegibleScale(
|
||||||
prefs.default_maximum_page_scale_factor);
|
prefs.default_maximum_page_scale_factor);
|
||||||
|
|
|
@ -13,11 +13,11 @@ uses internally for things like menus and devtools.
|
||||||
We can remove this patch once it has in some shape been upstreamed.
|
We can remove this patch once it has in some shape been upstreamed.
|
||||||
|
|
||||||
diff --git a/ui/native_theme/native_theme.cc b/ui/native_theme/native_theme.cc
|
diff --git a/ui/native_theme/native_theme.cc b/ui/native_theme/native_theme.cc
|
||||||
index 3f8801c6042ef2b20635838e4d4c572d89b94601..055b15ff72844cd54c60cc92042a5465ce2870ad 100644
|
index e761050d9afbbc6d1c25dd8ec6a2a90d548c1195..fc28431861f2499095ecedfd1ffb8c4d43545ea4 100644
|
||||||
--- a/ui/native_theme/native_theme.cc
|
--- a/ui/native_theme/native_theme.cc
|
||||||
+++ b/ui/native_theme/native_theme.cc
|
+++ b/ui/native_theme/native_theme.cc
|
||||||
@@ -210,6 +210,8 @@ NativeTheme::NativeTheme(bool should_use_dark_colors,
|
@@ -240,6 +240,8 @@ void NativeTheme::PaintMenuItemBackground(
|
||||||
NativeTheme::~NativeTheme() = default;
|
}
|
||||||
|
|
||||||
bool NativeTheme::ShouldUseDarkColors() const {
|
bool NativeTheme::ShouldUseDarkColors() const {
|
||||||
+ if (theme_source() == ThemeSource::kForcedLight) return false;
|
+ if (theme_source() == ThemeSource::kForcedLight) return false;
|
||||||
|
@ -26,10 +26,10 @@ index 3f8801c6042ef2b20635838e4d4c572d89b94601..055b15ff72844cd54c60cc92042a5465
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
|
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
|
||||||
index 67d63aa0048c2a4e331763a869b46bc1142b921c..34ddc49fe66c1824734a6d524af68862892801e2 100644
|
index cbe76bbc68692228072fa69a8562c290e571505e..a9fd486a77b7edcba63ee889d583dc4e99f008f4 100644
|
||||||
--- a/ui/native_theme/native_theme.h
|
--- a/ui/native_theme/native_theme.h
|
||||||
+++ b/ui/native_theme/native_theme.h
|
+++ b/ui/native_theme/native_theme.h
|
||||||
@@ -459,6 +459,23 @@ class COMPONENT_EXPORT(NATIVE_THEME) NativeTheme {
|
@@ -460,6 +460,23 @@ class COMPONENT_EXPORT(NATIVE_THEME) NativeTheme {
|
||||||
scoped_refptr<ColorProviderKey::ThemeInitializerSupplier> custom_theme,
|
scoped_refptr<ColorProviderKey::ThemeInitializerSupplier> custom_theme,
|
||||||
bool use_custom_frame = true) const;
|
bool use_custom_frame = true) const;
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ index 67d63aa0048c2a4e331763a869b46bc1142b921c..34ddc49fe66c1824734a6d524af68862
|
||||||
// Returns a shared instance of the native theme that should be used for web
|
// Returns a shared instance of the native theme that should be used for web
|
||||||
// rendering. Do not use it in a normal application context (i.e. browser).
|
// rendering. Do not use it in a normal application context (i.e. browser).
|
||||||
// The returned object should not be deleted by the caller. This function is
|
// The returned object should not be deleted by the caller. This function is
|
||||||
@@ -714,6 +731,7 @@ class COMPONENT_EXPORT(NATIVE_THEME) NativeTheme {
|
@@ -701,6 +718,7 @@ class COMPONENT_EXPORT(NATIVE_THEME) NativeTheme {
|
||||||
PreferredContrast preferred_contrast_ = PreferredContrast::kNoPreference;
|
PreferredContrast preferred_contrast_ = PreferredContrast::kNoPreference;
|
||||||
std::optional<base::TimeDelta> caret_blink_interval_;
|
std::optional<base::TimeDelta> caret_blink_interval_;
|
||||||
bool use_overlay_scrollbars_ = false;
|
bool use_overlay_scrollbars_ = false;
|
||||||
|
@ -62,10 +62,10 @@ index 67d63aa0048c2a4e331763a869b46bc1142b921c..34ddc49fe66c1824734a6d524af68862
|
||||||
SEQUENCE_CHECKER(sequence_checker_);
|
SEQUENCE_CHECKER(sequence_checker_);
|
||||||
};
|
};
|
||||||
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
|
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
|
||||||
index 0c6d689295a03fc088b57487037d85f4d634a5f4..8e3bab233e8611c68e79d53f125560f4fb086a1e 100644
|
index 0ca923fb1b402ce7a5b112600b86e79b02d96168..5362243aa69bf1a64f860c5757d15298101cde74 100644
|
||||||
--- a/ui/native_theme/native_theme_win.cc
|
--- a/ui/native_theme/native_theme_win.cc
|
||||||
+++ b/ui/native_theme/native_theme_win.cc
|
+++ b/ui/native_theme/native_theme_win.cc
|
||||||
@@ -697,6 +697,8 @@ bool NativeThemeWin::ShouldUseDarkColors() const {
|
@@ -678,6 +678,8 @@ bool NativeThemeWin::ShouldUseDarkColors() const {
|
||||||
if (InForcedColorsMode() && !IsForcedDarkMode()) {
|
if (InForcedColorsMode() && !IsForcedDarkMode()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ which removed range-requests-supported on non-http protocols. See https://issues
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc b/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
diff --git a/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc b/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
||||||
index 5972dcf91aeb8446af4fa0b902b086a5492815bd..ac37d7f601f24d9ec53c4c1fd5e00c8a262e1580 100644
|
index 23d5e86aad9509159c74fef32419e26ca68b2e4c..767e6b7e4c85f9f2fafac282c4ebc6ba80e52528 100644
|
||||||
--- a/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
--- a/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
||||||
+++ b/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
+++ b/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc
|
||||||
@@ -11,8 +11,10 @@
|
@@ -11,8 +11,10 @@
|
||||||
|
@ -104,7 +104,7 @@ index 8c92f1c0c5028069cdad967b5be2bccf8005ed43..8b49dc182296f7f277981aed29b58947
|
||||||
using InitializeCB = base::OnceCallback<void(bool)>;
|
using InitializeCB = base::OnceCallback<void(bool)>;
|
||||||
void Initialize(InitializeCB init_cb) override;
|
void Initialize(InitializeCB init_cb) override;
|
||||||
diff --git a/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc b/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
diff --git a/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc b/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
||||||
index 1b5dc45902fc30386dfcb98a19d532e3be46706b..fb2c7f09c210f6aa178e663b1c1ce91468c71e10 100644
|
index 093e01ba30f66e29d13c129a230f8acf875f5eb4..8fb40e4d5827985c2760e57f0dccfeb9ab700a03 100644
|
||||||
--- a/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
--- a/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
||||||
+++ b/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
+++ b/third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.cc
|
||||||
@@ -8,6 +8,7 @@
|
@@ -8,6 +8,7 @@
|
||||||
|
|
|
@ -259,7 +259,7 @@ index 28556e56f2fd591c46ce6f48d39eb907876a499d..f5737ba60fb9e182459066ffa62c7c58
|
||||||
+
|
+
|
||||||
} // namespace content
|
} // namespace content
|
||||||
diff --git a/content/browser/renderer_host/code_cache_host_impl.cc b/content/browser/renderer_host/code_cache_host_impl.cc
|
diff --git a/content/browser/renderer_host/code_cache_host_impl.cc b/content/browser/renderer_host/code_cache_host_impl.cc
|
||||||
index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e74b348406 100644
|
index 404ff1e48a990570dc411a714e570d4f8e1a9ef1..916c5d350cfabae0bfd3da97d6a058f2fb93530d 100644
|
||||||
--- a/content/browser/renderer_host/code_cache_host_impl.cc
|
--- a/content/browser/renderer_host/code_cache_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/code_cache_host_impl.cc
|
+++ b/content/browser/renderer_host/code_cache_host_impl.cc
|
||||||
@@ -6,6 +6,7 @@
|
@@ -6,6 +6,7 @@
|
||||||
|
@ -284,7 +284,7 @@ index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e7
|
||||||
|
|
||||||
+bool ProcessLockURLIsCodeCacheScheme(const ProcessLock& process_lock) {
|
+bool ProcessLockURLIsCodeCacheScheme(const ProcessLock& process_lock) {
|
||||||
+ return base::Contains(url::GetCodeCacheSchemes(),
|
+ return base::Contains(url::GetCodeCacheSchemes(),
|
||||||
+ process_lock.lock_url().scheme());
|
+ process_lock.GetProcessLockURL().scheme());
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
bool CheckSecurityForAccessingCodeCacheData(
|
bool CheckSecurityForAccessingCodeCacheData(
|
||||||
|
@ -303,17 +303,9 @@ index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e7
|
||||||
// chrome-untrusted scripts, so any http(s) page attempting to store data
|
// chrome-untrusted scripts, so any http(s) page attempting to store data
|
||||||
// about a chrome or chrome-untrusted script would be an indication of
|
// about a chrome or chrome-untrusted script would be an indication of
|
||||||
// suspicious activity.
|
// suspicious activity.
|
||||||
- if (resource_url.SchemeIs(content::kChromeUIScheme) ||
|
|
||||||
- resource_url.SchemeIs(content::kChromeUIUntrustedScheme)) {
|
|
||||||
- if (!process_lock.is_locked_to_site()) {
|
|
||||||
- // We can't tell for certain whether this renderer is doing something
|
|
||||||
- // malicious, but we don't trust it enough to store data.
|
|
||||||
- return false;
|
|
||||||
- }
|
|
||||||
+ if (resource_url.SchemeIsHTTPOrHTTPS()) {
|
+ if (resource_url.SchemeIsHTTPOrHTTPS()) {
|
||||||
if (process_lock.matches_scheme(url::kHttpScheme) ||
|
+ if (process_lock.MatchesScheme(url::kHttpScheme) ||
|
||||||
process_lock.matches_scheme(url::kHttpsScheme)) {
|
+ process_lock.MatchesScheme(url::kHttpsScheme)) {
|
||||||
- if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
|
||||||
+ return true;
|
+ return true;
|
||||||
+ }
|
+ }
|
||||||
+ // Pages in custom schemes like isolated-app: are allowed to load http(s)
|
+ // Pages in custom schemes like isolated-app: are allowed to load http(s)
|
||||||
|
@ -327,15 +319,22 @@ index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e7
|
||||||
+ return false;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (resource_url.SchemeIs(kChromeUIScheme) ||
|
if (resource_url.SchemeIs(content::kChromeUIScheme) ||
|
||||||
+ resource_url.SchemeIs(kChromeUIUntrustedScheme)) {
|
resource_url.SchemeIs(content::kChromeUIUntrustedScheme)) {
|
||||||
+ if (process_lock.matches_scheme(kChromeUIScheme) ||
|
- if (!process_lock.IsLockedToSite()) {
|
||||||
+ process_lock.matches_scheme(kChromeUIUntrustedScheme)) {
|
- // We can't tell for certain whether this renderer is doing something
|
||||||
|
- // malicious, but we don't trust it enough to store data.
|
||||||
|
- return false;
|
||||||
|
+ if (process_lock.MatchesScheme(content::kChromeUIScheme) ||
|
||||||
|
+ process_lock.MatchesScheme(content::kChromeUIUntrustedScheme)) {
|
||||||
+ return true;
|
+ return true;
|
||||||
+ }
|
}
|
||||||
|
- if (process_lock.MatchesScheme(url::kHttpScheme) ||
|
||||||
|
- process_lock.MatchesScheme(url::kHttpsScheme)) {
|
||||||
|
- if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
||||||
+ if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
+ if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
||||||
+ if (process_lock.matches_scheme(url::kHttpScheme) ||
|
+ if (process_lock.MatchesScheme(url::kHttpScheme) ||
|
||||||
+ process_lock.matches_scheme(url::kHttpsScheme)) {
|
+ process_lock.MatchesScheme(url::kHttpsScheme)) {
|
||||||
mojo::ReportBadMessage("HTTP(S) pages cannot cache WebUI code");
|
mojo::ReportBadMessage("HTTP(S) pages cannot cache WebUI code");
|
||||||
}
|
}
|
||||||
+ if (ProcessLockURLIsCodeCacheScheme(process_lock)) {
|
+ if (ProcessLockURLIsCodeCacheScheme(process_lock)) {
|
||||||
|
@ -348,15 +347,15 @@ index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e7
|
||||||
// Other schemes which might successfully load chrome or chrome-untrusted
|
// Other schemes which might successfully load chrome or chrome-untrusted
|
||||||
// scripts, such as the PDF viewer, are unsupported but not considered
|
// scripts, such as the PDF viewer, are unsupported but not considered
|
||||||
- // dangerous.
|
- // dangerous.
|
||||||
- return process_lock.matches_scheme(content::kChromeUIScheme) ||
|
- return process_lock.MatchesScheme(content::kChromeUIScheme) ||
|
||||||
- process_lock.matches_scheme(content::kChromeUIUntrustedScheme);
|
- process_lock.MatchesScheme(content::kChromeUIUntrustedScheme);
|
||||||
+ // dangerous. Similarly, the process might not be locked to a site.
|
+ // dangerous. Similarly, the process might not be locked to a site.
|
||||||
+ return false;
|
+ return false;
|
||||||
}
|
}
|
||||||
- if (resource_url.SchemeIsHTTPOrHTTPS() ||
|
- if (resource_url.SchemeIsHTTPOrHTTPS() ||
|
||||||
- blink::CommonSchemeRegistry::IsExtensionScheme(resource_url.scheme())) {
|
- blink::CommonSchemeRegistry::IsExtensionScheme(resource_url.scheme())) {
|
||||||
- if (process_lock.matches_scheme(content::kChromeUIScheme) ||
|
- if (process_lock.MatchesScheme(content::kChromeUIScheme) ||
|
||||||
- process_lock.matches_scheme(content::kChromeUIUntrustedScheme)) {
|
- process_lock.MatchesScheme(content::kChromeUIUntrustedScheme)) {
|
||||||
- // It is possible for WebUI pages to include open-web content, but such
|
- // It is possible for WebUI pages to include open-web content, but such
|
||||||
- // usage is rare and we've decided that reasoning about security is easier
|
- // usage is rare and we've decided that reasoning about security is easier
|
||||||
- // if the WebUI code cache includes only WebUI scripts.
|
- // if the WebUI code cache includes only WebUI scripts.
|
||||||
|
@ -370,13 +369,13 @@ index d95cba73aacf4b9156e8c0c3100abd7934369fdd..1583ae512e34c29e849efc2f570e09e7
|
||||||
|
|
||||||
if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
if (operation == CodeCacheHostImpl::Operation::kWrite) {
|
||||||
@@ -433,6 +458,7 @@ std::optional<GURL> CodeCacheHostImpl::GetSecondaryKeyForCodeCache(
|
@@ -433,6 +458,7 @@ std::optional<GURL> CodeCacheHostImpl::GetSecondaryKeyForCodeCache(
|
||||||
process_lock.matches_scheme(url::kHttpsScheme) ||
|
process_lock.MatchesScheme(url::kHttpsScheme) ||
|
||||||
process_lock.matches_scheme(content::kChromeUIScheme) ||
|
process_lock.MatchesScheme(content::kChromeUIScheme) ||
|
||||||
process_lock.matches_scheme(content::kChromeUIUntrustedScheme) ||
|
process_lock.MatchesScheme(content::kChromeUIUntrustedScheme) ||
|
||||||
+ ProcessLockURLIsCodeCacheScheme(process_lock) ||
|
+ ProcessLockURLIsCodeCacheScheme(process_lock) ||
|
||||||
blink::CommonSchemeRegistry::IsExtensionScheme(
|
blink::CommonSchemeRegistry::IsExtensionScheme(
|
||||||
process_lock.lock_url().scheme())) {
|
process_lock.GetProcessLockURL().scheme())) {
|
||||||
return process_lock.lock_url();
|
return process_lock.GetProcessLockURL();
|
||||||
diff --git a/content/common/url_schemes.cc b/content/common/url_schemes.cc
|
diff --git a/content/common/url_schemes.cc b/content/common/url_schemes.cc
|
||||||
index 225e017909b8869231b870eaaf161a0b5e93e2a0..846a5251429630b8528a84a3d67ed56cb28df5a1 100644
|
index 225e017909b8869231b870eaaf161a0b5e93e2a0..846a5251429630b8528a84a3d67ed56cb28df5a1 100644
|
||||||
--- a/content/common/url_schemes.cc
|
--- a/content/common/url_schemes.cc
|
||||||
|
|
|
@ -46,7 +46,7 @@ index e2771b7b281274cdcb601a5bc78a948ad592087b..48d116823a28213e50775f378e6ce04c
|
||||||
// OnStop is called by StopAndDeAllocate.
|
// OnStop is called by StopAndDeAllocate.
|
||||||
virtual void OnStop() = 0;
|
virtual void OnStop() = 0;
|
||||||
diff --git a/content/browser/media/capture/screen_capture_kit_device_mac.mm b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
diff --git a/content/browser/media/capture/screen_capture_kit_device_mac.mm b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b4049610fd49da 100644
|
index 86128a6555798e8380ffebd635e02329ccb96a12..7733e2d70b604efd41ce42638dd3472cba0b78ad 100644
|
||||||
--- a/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
--- a/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
+++ b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
+++ b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
@@ -27,6 +27,61 @@
|
@@ -27,6 +27,61 @@
|
||||||
|
@ -134,7 +134,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
_errorCallback = errorCallback;
|
_errorCallback = errorCallback;
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
@@ -211,29 +270,53 @@ + (SCStreamConfiguration*)streamConfigurationWithFrameSize:(gfx::Size)frameSize
|
@@ -210,29 +269,53 @@ + (SCStreamConfiguration*)streamConfigurationWithFrameSize:(gfx::Size)frameSize
|
||||||
|
|
||||||
class API_AVAILABLE(macos(12.3)) ScreenCaptureKitDeviceMac
|
class API_AVAILABLE(macos(12.3)) ScreenCaptureKitDeviceMac
|
||||||
: public IOSurfaceCaptureDeviceBase,
|
: public IOSurfaceCaptureDeviceBase,
|
||||||
|
@ -192,7 +192,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
|
|
||||||
void OnShareableContentCreated(SCShareableContent* content) {
|
void OnShareableContentCreated(SCShareableContent* content) {
|
||||||
DCHECK(device_task_runner_->RunsTasksInCurrentSequence());
|
DCHECK(device_task_runner_->RunsTasksInCurrentSequence());
|
||||||
@@ -301,7 +384,7 @@ void CreateStream(SCContentFilter* filter) {
|
@@ -300,7 +383,7 @@ void CreateStream(SCContentFilter* filter) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
// Update the content size. This step is neccessary when used together
|
// Update the content size. This step is neccessary when used together
|
||||||
// with SCContentSharingPicker. If the Chrome picker is used, it will
|
// with SCContentSharingPicker. If the Chrome picker is used, it will
|
||||||
// change to retina resolution if applicable.
|
// change to retina resolution if applicable.
|
||||||
@@ -310,6 +393,9 @@ void CreateStream(SCContentFilter* filter) {
|
@@ -309,6 +392,9 @@ void CreateStream(SCContentFilter* filter) {
|
||||||
filter.contentRect.size.height * filter.pointPixelScale);
|
filter.contentRect.size.height * filter.pointPixelScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
gfx::RectF dest_rect_in_frame;
|
gfx::RectF dest_rect_in_frame;
|
||||||
actual_capture_format_ = capture_params().requested_format;
|
actual_capture_format_ = capture_params().requested_format;
|
||||||
actual_capture_format_.pixel_format = media::PIXEL_FORMAT_NV12;
|
actual_capture_format_.pixel_format = media::PIXEL_FORMAT_NV12;
|
||||||
@@ -323,6 +409,7 @@ void CreateStream(SCContentFilter* filter) {
|
@@ -322,6 +408,7 @@ void CreateStream(SCContentFilter* filter) {
|
||||||
stream_ = [[SCStream alloc] initWithFilter:filter
|
stream_ = [[SCStream alloc] initWithFilter:filter
|
||||||
configuration:config
|
configuration:config
|
||||||
delegate:helper_];
|
delegate:helper_];
|
||||||
|
@ -219,7 +219,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
{
|
{
|
||||||
NSError* error = nil;
|
NSError* error = nil;
|
||||||
bool add_stream_output_result =
|
bool add_stream_output_result =
|
||||||
@@ -480,7 +567,7 @@ void OnStreamError() {
|
@@ -479,7 +566,7 @@ void OnStreamError() {
|
||||||
if (fullscreen_module_) {
|
if (fullscreen_module_) {
|
||||||
fullscreen_module_->Reset();
|
fullscreen_module_->Reset();
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
} else {
|
} else {
|
||||||
client()->OnError(media::VideoCaptureError::kScreenCaptureKitStreamError,
|
client()->OnError(media::VideoCaptureError::kScreenCaptureKitStreamError,
|
||||||
FROM_HERE, "Stream delegate called didStopWithError");
|
FROM_HERE, "Stream delegate called didStopWithError");
|
||||||
@@ -503,23 +590,41 @@ void OnUpdateConfigurationError() {
|
@@ -502,23 +589,41 @@ void OnUpdateConfigurationError() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// IOSurfaceCaptureDeviceBase:
|
// IOSurfaceCaptureDeviceBase:
|
||||||
|
@ -285,7 +285,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
}
|
}
|
||||||
void OnStop() override {
|
void OnStop() override {
|
||||||
DCHECK(device_task_runner_->RunsTasksInCurrentSequence());
|
DCHECK(device_task_runner_->RunsTasksInCurrentSequence());
|
||||||
@@ -577,8 +682,9 @@ void ResetStreamTo(SCWindow* window) override {
|
@@ -576,8 +681,9 @@ void ResetStreamTo(SCWindow* window) override {
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -296,7 +296,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
|
const scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
|
||||||
|
|
||||||
// The actual format of the video frames that are sent to `client`.
|
// The actual format of the video frames that are sent to `client`.
|
||||||
@@ -594,6 +700,10 @@ void ResetStreamTo(SCWindow* window) override {
|
@@ -593,6 +699,10 @@ void ResetStreamTo(SCWindow* window) override {
|
||||||
// Helper class that acts as output and delegate for `stream_`.
|
// Helper class that acts as output and delegate for `stream_`.
|
||||||
ScreenCaptureKitDeviceHelper* __strong helper_;
|
ScreenCaptureKitDeviceHelper* __strong helper_;
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
// This is used to detect when a captured presentation enters fullscreen mode.
|
// This is used to detect when a captured presentation enters fullscreen mode.
|
||||||
// If this happens, the module will call the ResetStreamTo function.
|
// If this happens, the module will call the ResetStreamTo function.
|
||||||
std::unique_ptr<ScreenCaptureKitFullscreenModule> fullscreen_module_;
|
std::unique_ptr<ScreenCaptureKitFullscreenModule> fullscreen_module_;
|
||||||
@@ -606,6 +716,8 @@ void ResetStreamTo(SCWindow* window) override {
|
@@ -605,6 +715,8 @@ void ResetStreamTo(SCWindow* window) override {
|
||||||
base::WeakPtrFactory<ScreenCaptureKitDeviceMac> weak_factory_{this};
|
base::WeakPtrFactory<ScreenCaptureKitDeviceMac> weak_factory_{this};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -317,10 +317,10 @@ index 7e17594c30ac3cf8cb484b53563b03fc75bd2e0b..0e4a68f2fd8179640f877cb258b40496
|
||||||
|
|
||||||
// Although ScreenCaptureKit is available in 12.3 there were some bugs that
|
// Although ScreenCaptureKit is available in 12.3 there were some bugs that
|
||||||
diff --git a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
diff --git a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
||||||
index a5bc6f63c771fdf68ed9251285eac9d2c91acdc0..f719ff68e18093791bf13e434f40a3d1a9626dca 100644
|
index 7c8f4b60a9299114ac5e71ede6f602643326507a..203422ff6ab9cf98c3e76820e230321c3cafb5ef 100644
|
||||||
--- a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
--- a/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
||||||
+++ b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
+++ b/content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
|
||||||
@@ -321,8 +321,16 @@ void InProcessVideoCaptureDeviceLauncher::LaunchDeviceAsync(
|
@@ -322,8 +322,16 @@ void InProcessVideoCaptureDeviceLauncher::LaunchDeviceAsync(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,7 +338,7 @@ index a5bc6f63c771fdf68ed9251285eac9d2c91acdc0..f719ff68e18093791bf13e434f40a3d1
|
||||||
// For the other capturers, when a bug reports the type of capture it's
|
// For the other capturers, when a bug reports the type of capture it's
|
||||||
// easy enough to determine which capturer was used, but it's a little
|
// easy enough to determine which capturer was used, but it's a little
|
||||||
// fuzzier with window capture.
|
// fuzzier with window capture.
|
||||||
@@ -338,13 +346,15 @@ void InProcessVideoCaptureDeviceLauncher::LaunchDeviceAsync(
|
@@ -339,13 +347,15 @@ void InProcessVideoCaptureDeviceLauncher::LaunchDeviceAsync(
|
||||||
}
|
}
|
||||||
#endif // defined(USE_AURA) || BUILDFLAG(IS_MAC)
|
#endif // defined(USE_AURA) || BUILDFLAG(IS_MAC)
|
||||||
|
|
||||||
|
@ -369,10 +369,10 @@ index 294b5f79955ba72976f8ba127fd19556c81e322c..27553e51b281575c5cb7a4ba4dab06d1
|
||||||
#if defined(USE_AURA) || BUILDFLAG(IS_MAC)
|
#if defined(USE_AURA) || BUILDFLAG(IS_MAC)
|
||||||
// Assigns integer identifier to the |window| and returns its DesktopMediaID.
|
// Assigns integer identifier to the |window| and returns its DesktopMediaID.
|
||||||
diff --git a/media/capture/video_capture_types.h b/media/capture/video_capture_types.h
|
diff --git a/media/capture/video_capture_types.h b/media/capture/video_capture_types.h
|
||||||
index 53e8077c9c0b635df0abdeca43fa9a6373c68252..2805e36cc42190d8197d83f5df235094570e3d5d 100644
|
index accd52db0cf7cb043d7d767b778079b5d1160cfb..357ee6111471405d1f860ea6d5000ac65f4ecb9a 100644
|
||||||
--- a/media/capture/video_capture_types.h
|
--- a/media/capture/video_capture_types.h
|
||||||
+++ b/media/capture/video_capture_types.h
|
+++ b/media/capture/video_capture_types.h
|
||||||
@@ -355,6 +355,8 @@ struct CAPTURE_EXPORT VideoCaptureParams {
|
@@ -358,6 +358,8 @@ struct CAPTURE_EXPORT VideoCaptureParams {
|
||||||
// Flag indicating whether HiDPI mode should be enabled for tab capture
|
// Flag indicating whether HiDPI mode should be enabled for tab capture
|
||||||
// sessions.
|
// sessions.
|
||||||
bool is_high_dpi_enabled = true;
|
bool is_high_dpi_enabled = true;
|
||||||
|
|
|
@ -707,7 +707,7 @@ index c5fee4ad8b246bc1113a383794c6101bade24df3..61f0a0f62795b30105c42da363205284
|
||||||
#if BUILDFLAG(IS_MAC)
|
#if BUILDFLAG(IS_MAC)
|
||||||
// Whether or not to disclaim TCC responsibility for the process, defaults to
|
// Whether or not to disclaim TCC responsibility for the process, defaults to
|
||||||
diff --git a/sandbox/policy/win/sandbox_win.cc b/sandbox/policy/win/sandbox_win.cc
|
diff --git a/sandbox/policy/win/sandbox_win.cc b/sandbox/policy/win/sandbox_win.cc
|
||||||
index a0a8545a9c967f1059119cf3dda849fa7d96cb15..3a3a9c1e2fa3ad88eaf721da75a305966c6833c4 100644
|
index 7f67a828fc76765fa88c1be4d5eed08637c1bae3..b16b7e56efedeb1c10b0b33a569ad2e02505ebf3 100644
|
||||||
--- a/sandbox/policy/win/sandbox_win.cc
|
--- a/sandbox/policy/win/sandbox_win.cc
|
||||||
+++ b/sandbox/policy/win/sandbox_win.cc
|
+++ b/sandbox/policy/win/sandbox_win.cc
|
||||||
@@ -588,11 +588,9 @@ base::win::ScopedHandle CreateUnsandboxedJob() {
|
@@ -588,11 +588,9 @@ base::win::ScopedHandle CreateUnsandboxedJob() {
|
||||||
|
|
|
@ -20,7 +20,7 @@ making three primary changes to Blink:
|
||||||
* Controls whether the CSS rule is available.
|
* Controls whether the CSS rule is available.
|
||||||
|
|
||||||
diff --git a/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom b/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
diff --git a/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom b/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
||||||
index bb284c62d1d0dcd693bcb092044e6723bb339258..3c754cf37c18d0d17dc27e184ba5e8c5ebf8bdae 100644
|
index c5fa337dd4dc80e6dd5e8485ad9ba68ee051ae68..716b487b85d44afe3cf940078983d461375fe556 100644
|
||||||
--- a/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
--- a/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
||||||
+++ b/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
+++ b/third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom
|
||||||
@@ -48,6 +48,7 @@ enum CSSSampleId {
|
@@ -48,6 +48,7 @@ enum CSSSampleId {
|
||||||
|
@ -45,10 +45,10 @@ index e189d584f05f2ce6354c03a9b19f56985df8a15e..41b430e8f2416be098494f5c49fb97ca
|
||||||
'internal-forced-visited-'):
|
'internal-forced-visited-'):
|
||||||
internal_visited_order = 0
|
internal_visited_order = 0
|
||||||
diff --git a/third_party/blink/renderer/core/css/css_properties.json5 b/third_party/blink/renderer/core/css/css_properties.json5
|
diff --git a/third_party/blink/renderer/core/css/css_properties.json5 b/third_party/blink/renderer/core/css/css_properties.json5
|
||||||
index 27e52d4fd24d575fded2016a720d4587d5fb1998..e39ad72d2d3e56ff918f3274be86633e930fd24f 100644
|
index 3d8de3b51b474f8c10b93e042c7a6f989aec6076..b39d90de9e740b8d908645a1c46b0aa234225903 100644
|
||||||
--- a/third_party/blink/renderer/core/css/css_properties.json5
|
--- a/third_party/blink/renderer/core/css/css_properties.json5
|
||||||
+++ b/third_party/blink/renderer/core/css/css_properties.json5
|
+++ b/third_party/blink/renderer/core/css/css_properties.json5
|
||||||
@@ -8966,6 +8966,26 @@
|
@@ -8976,6 +8976,26 @@
|
||||||
property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"],
|
property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -76,10 +76,10 @@ index 27e52d4fd24d575fded2016a720d4587d5fb1998..e39ad72d2d3e56ff918f3274be86633e
|
||||||
{
|
{
|
||||||
name: "-internal-visited-color",
|
name: "-internal-visited-color",
|
||||||
diff --git a/third_party/blink/renderer/core/css/css_property_equality.cc b/third_party/blink/renderer/core/css/css_property_equality.cc
|
diff --git a/third_party/blink/renderer/core/css/css_property_equality.cc b/third_party/blink/renderer/core/css/css_property_equality.cc
|
||||||
index 687332cf68b3b826d7dcbd5dc10d47f0cd7ce688..653bbb8aef7e6edb31d63b02a9799d5454ce8d57 100644
|
index fc3d725bcff1921756e9c4956dbe1e611bb00ba3..27462de749a760418b5c1457d786e95bf892f9c3 100644
|
||||||
--- a/third_party/blink/renderer/core/css/css_property_equality.cc
|
--- a/third_party/blink/renderer/core/css/css_property_equality.cc
|
||||||
+++ b/third_party/blink/renderer/core/css/css_property_equality.cc
|
+++ b/third_party/blink/renderer/core/css/css_property_equality.cc
|
||||||
@@ -352,6 +352,8 @@ bool CSSPropertyEquality::PropertiesEqual(const PropertyHandle& property,
|
@@ -354,6 +354,8 @@ bool CSSPropertyEquality::PropertiesEqual(const PropertyHandle& property,
|
||||||
return a.DominantBaseline() == b.DominantBaseline();
|
return a.DominantBaseline() == b.DominantBaseline();
|
||||||
case CSSPropertyID::kDynamicRangeLimit:
|
case CSSPropertyID::kDynamicRangeLimit:
|
||||||
return a.GetDynamicRangeLimit() == b.GetDynamicRangeLimit();
|
return a.GetDynamicRangeLimit() == b.GetDynamicRangeLimit();
|
||||||
|
@ -89,10 +89,10 @@ index 687332cf68b3b826d7dcbd5dc10d47f0cd7ce688..653bbb8aef7e6edb31d63b02a9799d54
|
||||||
return a.EmptyCells() == b.EmptyCells();
|
return a.EmptyCells() == b.EmptyCells();
|
||||||
case CSSPropertyID::kFill:
|
case CSSPropertyID::kFill:
|
||||||
diff --git a/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc b/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
diff --git a/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc b/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
||||||
index 8833941b927a076a73336b5d651c033258c13793..525f2303efbe9222567a1bbcdbc7321d5d93048f 100644
|
index 0ba66a67636d75ed8677f66ba8c6f80645f378bb..ef9ce49a3ca4f7760effe09c8619f49f1575c362 100644
|
||||||
--- a/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
--- a/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
||||||
+++ b/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
+++ b/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
||||||
@@ -12289,5 +12289,36 @@ const CSSValue* InternalEmptyLineHeight::ParseSingleValue(
|
@@ -12292,5 +12292,36 @@ const CSSValue* InternalEmptyLineHeight::ParseSingleValue(
|
||||||
CSSValueID::kNone>(stream);
|
CSSValueID::kNone>(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ index 8833941b927a076a73336b5d651c033258c13793..525f2303efbe9222567a1bbcdbc7321d
|
||||||
} // namespace css_longhand
|
} // namespace css_longhand
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
diff --git a/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc b/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
diff --git a/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc b/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
||||||
index 7a5a5e370daea769e710f56a8004d79efa721268..4ba371436c33049952d919dc734be835dfbc783a 100644
|
index d5754172748072b522c73e3071effd8206befda6..31ff0e8df2e30d0d46d6d117154b9b4313a76848 100644
|
||||||
--- a/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
--- a/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
||||||
+++ b/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
+++ b/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc
|
||||||
@@ -4022,6 +4022,15 @@ PositionTryFallback StyleBuilderConverter::ConvertSinglePositionTryFallback(
|
@@ -4022,6 +4022,15 @@ PositionTryFallback StyleBuilderConverter::ConvertSinglePositionTryFallback(
|
||||||
|
@ -201,10 +201,10 @@ index 0802c73aa4aaf4e1fb5efd367758f19c36691f71..5f06c0af277a7c937e694470beac707a
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn
|
diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn
|
||||||
index 4c0ab9ea098c76063ece82ee79e4fb6465f822c8..2eaf538e48407a4cb12d1509e012f41847c716f2 100644
|
index ad5d60eae0f2e451ebe82ce3d86a9d0417d1c2c7..93e1ebc69a605d23985045962210ad4061eb2f1e 100644
|
||||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||||
@@ -1659,6 +1659,8 @@ component("platform") {
|
@@ -1671,6 +1671,8 @@ component("platform") {
|
||||||
"widget/widget_base.h",
|
"widget/widget_base.h",
|
||||||
"widget/widget_base_client.h",
|
"widget/widget_base_client.h",
|
||||||
"windows_keyboard_codes.h",
|
"windows_keyboard_codes.h",
|
||||||
|
@ -312,7 +312,7 @@ index 7e3d46902fbf736b4240eb3fcb89975a7b222197..57fdc89fc265ad70cb0bff8443cc1026
|
||||||
|
|
||||||
auto DrawAsSinglePath = [&]() {
|
auto DrawAsSinglePath = [&]() {
|
||||||
diff --git a/third_party/blink/renderer/platform/runtime_enabled_features.json5 b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
diff --git a/third_party/blink/renderer/platform/runtime_enabled_features.json5 b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||||
index e58bd2c672fcfd68b7dbc0c861d5be1d2a099e97..7dbe46a7390a988c21b2fbfbd5fbb3a3e822b7f5 100644
|
index 8325c24ea4549b6e1ba5404f4756aaf3d9408e2f..9e25ca9f0fbcc3819149c10c6bfd8a5e5ea5acf3 100644
|
||||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||||
@@ -214,6 +214,10 @@
|
@@ -214,6 +214,10 @@
|
||||||
|
|
|
@ -39,7 +39,7 @@ index aed835411f5728c5685baa43eda2dd1585119b18..0e66085b1c457c1f1f6be241c7d331d7
|
||||||
gpu::SurfaceHandle child_window) {
|
gpu::SurfaceHandle child_window) {
|
||||||
NOTREACHED();
|
NOTREACHED();
|
||||||
diff --git a/components/viz/host/host_display_client.h b/components/viz/host/host_display_client.h
|
diff --git a/components/viz/host/host_display_client.h b/components/viz/host/host_display_client.h
|
||||||
index 9e94f648060e9873a120f2c45591ad599a2e62df..93dabe09e44bda68644dcab568a827a92c550e4a 100644
|
index 7236eee85fdbb285a9873138075183d37c129666..2ecb1a92fb3216211e8d429254f5b18e3dcc7346 100644
|
||||||
--- a/components/viz/host/host_display_client.h
|
--- a/components/viz/host/host_display_client.h
|
||||||
+++ b/components/viz/host/host_display_client.h
|
+++ b/components/viz/host/host_display_client.h
|
||||||
@@ -39,6 +39,9 @@ class VIZ_HOST_EXPORT HostDisplayClient : public mojom::DisplayClient {
|
@@ -39,6 +39,9 @@ class VIZ_HOST_EXPORT HostDisplayClient : public mojom::DisplayClient {
|
||||||
|
@ -597,7 +597,7 @@ index e063835e87f08e6a2359886a96d7b78954e3d5b2..34bcf67726f64466d11a56d7a315ce7e
|
||||||
|
|
||||||
// Sends the created child window to the browser process so that it can be
|
// Sends the created child window to the browser process so that it can be
|
||||||
diff --git a/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom b/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
diff --git a/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom b/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
||||||
index 3066550e422058eec23d5fe3e655625f5446d694..7358b05a646a2f80717a91182c4929776a404179 100644
|
index 4f1e9c6c4aad3a4c3d52d57f1234841471a4649e..cda1963ca4119db70c94b64365ab67fea89e9255 100644
|
||||||
--- a/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
--- a/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
||||||
+++ b/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
+++ b/services/viz/privileged/mojom/compositing/frame_sink_manager.mojom
|
||||||
@@ -39,6 +39,7 @@ struct RootCompositorFrameSinkParams {
|
@@ -39,6 +39,7 @@ struct RootCompositorFrameSinkParams {
|
||||||
|
@ -620,7 +620,7 @@ index 2f462f0deb5fc8a637457243fb5d5849fc214d14..695869b83cefaa24af93a2e11b39de05
|
||||||
+ Draw(gfx.mojom.Rect damage_rect) => ();
|
+ Draw(gfx.mojom.Rect damage_rect) => ();
|
||||||
};
|
};
|
||||||
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
||||||
index f1a4674323d96bc6a1a291b0aaa4c2a35b20648e..682b23f083eff17bc36cdc4698e35d853beb90cc 100644
|
index 0d1fd44c615041039579691802012b8ef96dc9b5..11e6186b8e06008564246e8034b780a09a498838 100644
|
||||||
--- a/ui/compositor/compositor.h
|
--- a/ui/compositor/compositor.h
|
||||||
+++ b/ui/compositor/compositor.h
|
+++ b/ui/compositor/compositor.h
|
||||||
@@ -87,6 +87,7 @@ class DisplayPrivate;
|
@@ -87,6 +87,7 @@ class DisplayPrivate;
|
||||||
|
@ -647,7 +647,7 @@ index f1a4674323d96bc6a1a291b0aaa4c2a35b20648e..682b23f083eff17bc36cdc4698e35d85
|
||||||
|
|
||||||
// Compositor object to take care of GPU painting.
|
// Compositor object to take care of GPU painting.
|
||||||
// A Browser compositor object is responsible for generating the final
|
// A Browser compositor object is responsible for generating the final
|
||||||
@@ -189,6 +199,9 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
@@ -195,6 +205,9 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
||||||
// Schedules a redraw of the layer tree associated with this compositor.
|
// Schedules a redraw of the layer tree associated with this compositor.
|
||||||
void ScheduleDraw();
|
void ScheduleDraw();
|
||||||
|
|
||||||
|
@ -657,7 +657,7 @@ index f1a4674323d96bc6a1a291b0aaa4c2a35b20648e..682b23f083eff17bc36cdc4698e35d85
|
||||||
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
||||||
// must have no parent. The compositor's root layer is reset if the root layer
|
// must have no parent. The compositor's root layer is reset if the root layer
|
||||||
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
||||||
@@ -630,6 +643,8 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
@@ -636,6 +649,8 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
||||||
simple_begin_frame_observers_;
|
simple_begin_frame_observers_;
|
||||||
std::unique_ptr<ui::HostBeginFrameObserver> host_begin_frame_observer_;
|
std::unique_ptr<ui::HostBeginFrameObserver> host_begin_frame_observer_;
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ index d2b9526f9a0bfa9d12a594c35c71499810cb6bb0..aef0eb3508fc37e3a0e9e1c27a71e1aa
|
||||||
+
|
+
|
||||||
} // namespace crypto::apple
|
} // namespace crypto::apple
|
||||||
diff --git a/crypto/apple/keychain_seckeychain.cc b/crypto/apple/keychain_seckeychain.cc
|
diff --git a/crypto/apple/keychain_seckeychain.cc b/crypto/apple/keychain_seckeychain.cc
|
||||||
index 4ad5acbf29607fe2ea28637f5470599984e317db..61056948062f3fcb5138e309b9f5019c96f9ce00 100644
|
index a737276cb146fdb51433be8ca81947edb54f626e..3adf18cc0f0eb40e88691ba2f5a4b11073f86820 100644
|
||||||
--- a/crypto/apple/keychain_seckeychain.cc
|
--- a/crypto/apple/keychain_seckeychain.cc
|
||||||
+++ b/crypto/apple/keychain_seckeychain.cc
|
+++ b/crypto/apple/keychain_seckeychain.cc
|
||||||
@@ -25,14 +25,15 @@ KeychainSecKeychain::~KeychainSecKeychain() = default;
|
@@ -25,14 +25,15 @@ KeychainSecKeychain::~KeychainSecKeychain() = default;
|
||||||
|
@ -182,7 +182,7 @@ index 4ad5acbf29607fe2ea28637f5470599984e317db..61056948062f3fcb5138e309b9f5019c
|
||||||
- std::string_view account_name) const {
|
- std::string_view account_name) const {
|
||||||
+ std::string_view account_name,
|
+ std::string_view account_name,
|
||||||
+ AppleSecKeychainItemRef* item) const {
|
+ AppleSecKeychainItemRef* item) const {
|
||||||
base::AutoLock lock(GetMacSecurityServicesLock());
|
base::AutoLock lock(GetSecurityFrameworkLock());
|
||||||
uint32_t password_length = 0;
|
uint32_t password_length = 0;
|
||||||
void* password_data = nullptr;
|
void* password_data = nullptr;
|
||||||
OSStatus status = SecKeychainFindGenericPassword(
|
OSStatus status = SecKeychainFindGenericPassword(
|
||||||
|
@ -198,7 +198,7 @@ index 4ad5acbf29607fe2ea28637f5470599984e317db..61056948062f3fcb5138e309b9f5019c
|
||||||
}
|
}
|
||||||
|
|
||||||
+OSStatus KeychainSecKeychain::ItemDelete(AppleSecKeychainItemRef item) const {
|
+OSStatus KeychainSecKeychain::ItemDelete(AppleSecKeychainItemRef item) const {
|
||||||
+ base::AutoLock lock(GetMacSecurityServicesLock());
|
+ base::AutoLock lock(GetSecurityFrameworkLock());
|
||||||
+ return SecKeychainItemDelete(item);
|
+ return SecKeychainItemDelete(item);
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
|
|
@ -112,10 +112,10 @@ index 3a5fbaea905e7c01caee3659ff3be06e8def5615..89da9461e8290b8099456e5222f27877
|
||||||
string mime_type;
|
string mime_type;
|
||||||
|
|
||||||
diff --git a/services/network/url_loader.cc b/services/network/url_loader.cc
|
diff --git a/services/network/url_loader.cc b/services/network/url_loader.cc
|
||||||
index 61f3909c6f0fe606d30da08fbd3222af44c1a9e4..8b5f2162a2bbfe0bd422b89bc13e9ff93d826afe 100644
|
index a130ee693ca02585a03ee1806d811db81e4e64c7..38a0bf930ad98de932865a871856e615631dbc12 100644
|
||||||
--- a/services/network/url_loader.cc
|
--- a/services/network/url_loader.cc
|
||||||
+++ b/services/network/url_loader.cc
|
+++ b/services/network/url_loader.cc
|
||||||
@@ -398,6 +398,9 @@ URLLoader::URLLoader(
|
@@ -400,6 +400,9 @@ URLLoader::URLLoader(
|
||||||
mojo::SimpleWatcher::ArmingPolicy::MANUAL,
|
mojo::SimpleWatcher::ArmingPolicy::MANUAL,
|
||||||
TaskRunner(request.priority)),
|
TaskRunner(request.priority)),
|
||||||
per_factory_orb_state_(context.GetMutableOrbState()),
|
per_factory_orb_state_(context.GetMutableOrbState()),
|
||||||
|
@ -125,7 +125,7 @@ index 61f3909c6f0fe606d30da08fbd3222af44c1a9e4..8b5f2162a2bbfe0bd422b89bc13e9ff9
|
||||||
devtools_request_id_(request.devtools_request_id),
|
devtools_request_id_(request.devtools_request_id),
|
||||||
options_(PopulateOptions(options,
|
options_(PopulateOptions(options,
|
||||||
factory_params_->is_orb_enabled,
|
factory_params_->is_orb_enabled,
|
||||||
@@ -536,7 +539,7 @@ void URLLoader::SetUpUrlRequestCallbacks(
|
@@ -539,7 +542,7 @@ void URLLoader::SetUpUrlRequestCallbacks(
|
||||||
&URLLoader::IsSharedDictionaryReadAllowed, base::Unretained(this)));
|
&URLLoader::IsSharedDictionaryReadAllowed, base::Unretained(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ index 61f3909c6f0fe606d30da08fbd3222af44c1a9e4..8b5f2162a2bbfe0bd422b89bc13e9ff9
|
||||||
url_request_->SetResponseHeadersCallback(base::BindRepeating(
|
url_request_->SetResponseHeadersCallback(base::BindRepeating(
|
||||||
&URLLoader::SetRawResponseHeaders, base::Unretained(this)));
|
&URLLoader::SetRawResponseHeaders, base::Unretained(this)));
|
||||||
}
|
}
|
||||||
@@ -1151,6 +1154,19 @@ void URLLoader::OnResponseStarted(net::URLRequest* url_request, int net_error) {
|
@@ -1154,6 +1157,19 @@ void URLLoader::OnResponseStarted(net::URLRequest* url_request, int net_error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
response_ = BuildResponseHead();
|
response_ = BuildResponseHead();
|
||||||
|
@ -155,10 +155,10 @@ index 61f3909c6f0fe606d30da08fbd3222af44c1a9e4..8b5f2162a2bbfe0bd422b89bc13e9ff9
|
||||||
|
|
||||||
ad_auction_event_record_request_helper_.HandleResponse(
|
ad_auction_event_record_request_helper_.HandleResponse(
|
||||||
diff --git a/services/network/url_loader.h b/services/network/url_loader.h
|
diff --git a/services/network/url_loader.h b/services/network/url_loader.h
|
||||||
index 6ba39c957af7927b060be59f7d8837a3e2d41215..e52a276b0dd671317797104d85ccf75f5a333153 100644
|
index 21dc5e84807eb89a4e331e5cca5b38f08c41f72d..9f55ff05f239df939833d98d45d455e864f4f2c3 100644
|
||||||
--- a/services/network/url_loader.h
|
--- a/services/network/url_loader.h
|
||||||
+++ b/services/network/url_loader.h
|
+++ b/services/network/url_loader.h
|
||||||
@@ -615,6 +615,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) URLLoader
|
@@ -622,6 +622,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) URLLoader
|
||||||
std::unique_ptr<ResourceScheduler::ScheduledResourceRequest>
|
std::unique_ptr<ResourceScheduler::ScheduledResourceRequest>
|
||||||
resource_scheduler_request_handle_;
|
resource_scheduler_request_handle_;
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,10 @@ Subject: feat: filter out non-shareable windows in the current application in
|
||||||
This patch ensures that windows protected via win.setContentProtection(true) do not appear in full display captures via desktopCapturer. This patch could be upstreamed but as the check is limited to in-process windows it doesn't make a lot of sense for Chromium itself. This patch currently has a limitation that it only function for windows created / protected BEFORE the stream is started. There is theoretical future work we can do via polling / observers to automatically update the SCContentFilter when new windows are made but for now this will solve 99+% of the problem and folks can re-order their logic a bit to get it working for their use cases.
|
This patch ensures that windows protected via win.setContentProtection(true) do not appear in full display captures via desktopCapturer. This patch could be upstreamed but as the check is limited to in-process windows it doesn't make a lot of sense for Chromium itself. This patch currently has a limitation that it only function for windows created / protected BEFORE the stream is started. There is theoretical future work we can do via polling / observers to automatically update the SCContentFilter when new windows are made but for now this will solve 99+% of the problem and folks can re-order their logic a bit to get it working for their use cases.
|
||||||
|
|
||||||
diff --git a/content/browser/media/capture/screen_capture_kit_device_mac.mm b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
diff --git a/content/browser/media/capture/screen_capture_kit_device_mac.mm b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
index 42705a5c59fb76ba4a6a17a060e215436307de49..7e17594c30ac3cf8cb484b53563b03fc75bd2e0b 100644
|
index 2b90b268dcc43202f5c01ac5a65b4bdfb79235e5..86128a6555798e8380ffebd635e02329ccb96a12 100644
|
||||||
--- a/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
--- a/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
+++ b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
+++ b/content/browser/media/capture/screen_capture_kit_device_mac.mm
|
||||||
@@ -254,8 +254,17 @@ void OnShareableContentCreated(SCShareableContent* content) {
|
@@ -253,8 +253,17 @@ void OnShareableContentCreated(SCShareableContent* content) {
|
||||||
// fallback. See https://crbug.com/325530044.
|
// fallback. See https://crbug.com/325530044.
|
||||||
if (source_.id == display.displayID ||
|
if (source_.id == display.displayID ||
|
||||||
source_.id == webrtc::kFullDesktopScreenId) {
|
source_.id == webrtc::kFullDesktopScreenId) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ This patch will be removed when the deprecated sync api support is
|
||||||
removed.
|
removed.
|
||||||
|
|
||||||
diff --git a/components/permissions/permission_util.cc b/components/permissions/permission_util.cc
|
diff --git a/components/permissions/permission_util.cc b/components/permissions/permission_util.cc
|
||||||
index 21abffe390a8213ce1a5b71f382b37a60a014f52..38134a075fbb3586eec543591c88fcf7dcd53e3d 100644
|
index 2b132446e1e384de0e51355a44fab38dbaf64f53..83b0237a56d5ea7555ae989bd7bd13886f0c8f13 100644
|
||||||
--- a/components/permissions/permission_util.cc
|
--- a/components/permissions/permission_util.cc
|
||||||
+++ b/components/permissions/permission_util.cc
|
+++ b/components/permissions/permission_util.cc
|
||||||
@@ -536,6 +536,7 @@ ContentSettingsType PermissionUtil::PermissionTypeToContentSettingsTypeSafe(
|
@@ -536,6 +536,7 @@ ContentSettingsType PermissionUtil::PermissionTypeToContentSettingsTypeSafe(
|
||||||
|
@ -32,7 +32,7 @@ index 21abffe390a8213ce1a5b71f382b37a60a014f52..38134a075fbb3586eec543591c88fcf7
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/permissions/permission_controller_impl.cc b/content/browser/permissions/permission_controller_impl.cc
|
diff --git a/content/browser/permissions/permission_controller_impl.cc b/content/browser/permissions/permission_controller_impl.cc
|
||||||
index 93375d87a26961edd8ae0c25fecc0ea5afc8c0bc..f6a28f5efae758a93aa52ebd28e25ece996f0e7e 100644
|
index 8af9381691776fd7968cab890e32546c285979e4..d92f15f9ff1bf8dc23361e668f6d48199540c4e6 100644
|
||||||
--- a/content/browser/permissions/permission_controller_impl.cc
|
--- a/content/browser/permissions/permission_controller_impl.cc
|
||||||
+++ b/content/browser/permissions/permission_controller_impl.cc
|
+++ b/content/browser/permissions/permission_controller_impl.cc
|
||||||
@@ -88,6 +88,7 @@ PermissionToSchedulingFeature(PermissionType permission_name) {
|
@@ -88,6 +88,7 @@ PermissionToSchedulingFeature(PermissionType permission_name) {
|
||||||
|
|
|
@ -16,10 +16,10 @@ Linux or Windows to un-fullscreen in some circumstances without this
|
||||||
change.
|
change.
|
||||||
|
|
||||||
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
||||||
index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf9d1f5c19 100644
|
index 52ab5b76078ac160162c6781d886c5466db5f037..0ee6e12a3194d9c99dd7d884afd33f58dad07d09 100644
|
||||||
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
||||||
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
||||||
@@ -46,7 +46,7 @@
|
@@ -47,7 +47,7 @@
|
||||||
#include "components/prefs/pref_service.h"
|
#include "components/prefs/pref_service.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
#include "chrome/browser/ui/blocked_content/popunder_preventer.h"
|
#include "chrome/browser/ui/blocked_content/popunder_preventer.h"
|
||||||
#endif // !BUILDFLAG(IS_ANDROID)
|
#endif // !BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ void FullscreenController::EnterFullscreenModeForTab(
|
@@ -196,7 +196,7 @@ void FullscreenController::EnterFullscreenModeForTab(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
if (!popunder_preventer_) {
|
if (!popunder_preventer_) {
|
||||||
popunder_preventer_ = std::make_unique<PopunderPreventer>(web_contents);
|
popunder_preventer_ = std::make_unique<PopunderPreventer>(web_contents);
|
||||||
} else {
|
} else {
|
||||||
@@ -391,12 +391,14 @@ void FullscreenController::ExitFullscreenModeForTab(WebContents* web_contents) {
|
@@ -317,12 +317,14 @@ void FullscreenController::ExitFullscreenModeForTab(WebContents* web_contents) {
|
||||||
void FullscreenController::FullscreenTabOpeningPopup(
|
void FullscreenController::FullscreenTabOpeningPopup(
|
||||||
content::WebContents* opener,
|
content::WebContents* opener,
|
||||||
content::WebContents* popup) {
|
content::WebContents* popup) {
|
||||||
|
@ -52,7 +52,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
}
|
}
|
||||||
#endif // !BUILDFLAG(IS_ANDROID)
|
#endif // !BUILDFLAG(IS_ANDROID)
|
||||||
|
|
||||||
@@ -487,8 +489,7 @@ void FullscreenController::FullscreenTransitionCompleted() {
|
@@ -406,8 +408,7 @@ void FullscreenController::FullscreenTransitionCompleted() {
|
||||||
#endif // DCHECK_IS_ON()
|
#endif // DCHECK_IS_ON()
|
||||||
tab_fullscreen_target_display_id_ = display::kInvalidDisplayId;
|
tab_fullscreen_target_display_id_ = display::kInvalidDisplayId;
|
||||||
started_fullscreen_transition_ = false;
|
started_fullscreen_transition_ = false;
|
||||||
|
@ -62,7 +62,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
if (!IsTabFullscreen()) {
|
if (!IsTabFullscreen()) {
|
||||||
// Activate any popup windows created while content fullscreen, after exit.
|
// Activate any popup windows created while content fullscreen, after exit.
|
||||||
popunder_preventer_.reset();
|
popunder_preventer_.reset();
|
||||||
@@ -623,18 +624,17 @@ void FullscreenController::EnterFullscreenModeInternal(
|
@@ -543,18 +544,17 @@ void FullscreenController::EnterFullscreenModeInternal(
|
||||||
// Do not enter fullscreen mode if disallowed by pref. This prevents the user
|
// Do not enter fullscreen mode if disallowed by pref. This prevents the user
|
||||||
// from manually entering fullscreen mode and also disables kiosk mode on
|
// from manually entering fullscreen mode and also disables kiosk mode on
|
||||||
// desktop platforms.
|
// desktop platforms.
|
||||||
|
@ -86,7 +86,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
if (option == TAB) {
|
if (option == TAB) {
|
||||||
origin = GetRequestingOrigin();
|
origin = GetRequestingOrigin();
|
||||||
tab_fullscreen_ = true;
|
tab_fullscreen_ = true;
|
||||||
@@ -671,6 +671,7 @@ void FullscreenController::EnterFullscreenModeInternal(
|
@@ -592,6 +592,7 @@ void FullscreenController::EnterFullscreenModeInternal(
|
||||||
origin = url::Origin::Create(extension_url_.value());
|
origin = url::Origin::Create(extension_url_.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
|
|
||||||
fullscreen_start_time_ = base::TimeTicks::Now();
|
fullscreen_start_time_ = base::TimeTicks::Now();
|
||||||
if (option == BROWSER) {
|
if (option == BROWSER) {
|
||||||
@@ -692,6 +693,7 @@ void FullscreenController::ExitFullscreenModeInternal() {
|
@@ -613,6 +614,7 @@ void FullscreenController::ExitFullscreenModeInternal() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
// `fullscreen_start_time_` is null if a fullscreen tab moves to a new window.
|
// `fullscreen_start_time_` is null if a fullscreen tab moves to a new window.
|
||||||
if (fullscreen_start_time_ && exclusive_access_tab()) {
|
if (fullscreen_start_time_ && exclusive_access_tab()) {
|
||||||
ukm::SourceId source_id =
|
ukm::SourceId source_id =
|
||||||
@@ -703,18 +705,19 @@ void FullscreenController::ExitFullscreenModeInternal() {
|
@@ -624,18 +626,19 @@ void FullscreenController::ExitFullscreenModeInternal() {
|
||||||
.Record(ukm::UkmRecorder::Get());
|
.Record(ukm::UkmRecorder::Get());
|
||||||
fullscreen_start_time_.reset();
|
fullscreen_start_time_.reset();
|
||||||
}
|
}
|
||||||
|
@ -125,24 +125,11 @@ index c38ce5558472c785837f1d4d2542f2edf2ffab58..219f562f51b45d2c961246e232ef4daf
|
||||||
exclusive_access_manager()->context()->ExitFullscreen();
|
exclusive_access_manager()->context()->ExitFullscreen();
|
||||||
extension_url_.reset();
|
extension_url_.reset();
|
||||||
exclusive_access_manager()->UpdateBubble(base::NullCallback());
|
exclusive_access_manager()->UpdateBubble(base::NullCallback());
|
||||||
@@ -778,8 +781,12 @@ url::Origin FullscreenController::GetEmbeddingOrigin() const {
|
|
||||||
void FullscreenController::RecordMetricsOnFullscreenApiRequested(
|
|
||||||
content::RenderFrameHost* requesting_frame) {
|
|
||||||
history::HistoryService* service =
|
|
||||||
+ #if 0
|
|
||||||
HistoryServiceFactory::GetForProfileWithoutCreating(
|
|
||||||
exclusive_access_manager()->context()->GetProfile());
|
|
||||||
+ #else
|
|
||||||
+ nullptr;
|
|
||||||
+ #endif
|
|
||||||
if (service) {
|
|
||||||
// Check if the origin has been visited more than a day ago and whether it's
|
|
||||||
// on an allowlist, then record those bits of information in a metric.
|
|
||||||
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.h b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
diff --git a/chrome/browser/ui/exclusive_access/fullscreen_controller.h b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
||||||
index 0fa707f6dfcfb26ed15488b099cc03efe548785b..0ef6faf1e2385b091df36b0c0efb89167b17ac34 100644
|
index f9e3ec3c61e0c9f16b13e2ee5fd447e26b49a6da..e06b1fb4a0c256c0f51ff66d06663af46c9c88ae 100644
|
||||||
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
--- a/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
||||||
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
+++ b/chrome/browser/ui/exclusive_access/fullscreen_controller.h
|
||||||
@@ -254,7 +254,7 @@ class FullscreenController : public ExclusiveAccessControllerBase {
|
@@ -256,7 +256,7 @@ class FullscreenController : public ExclusiveAccessControllerBase {
|
||||||
// Used in testing to set the state to tab fullscreen.
|
// Used in testing to set the state to tab fullscreen.
|
||||||
bool is_tab_fullscreen_for_testing_ = false;
|
bool is_tab_fullscreen_for_testing_ = false;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ We also need to ensure that an initial paint is scheduled when
|
||||||
the compositor is unsuspended in headles mode.
|
the compositor is unsuspended in headles mode.
|
||||||
|
|
||||||
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.mm b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.mm b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
index 48dfca966a594f54523c129fa49d2a561cb41dec..049cf4f1adcf4f64cd8692f6e6eda7418008e799 100644
|
index eafa32f62cac0627a4e32aa2301c2cbe0b18ede9..8e20b757a1d6d15e5ab2d633b2c8fd65a6cb88b3 100644
|
||||||
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
@@ -664,9 +664,10 @@ void HandleAccelerator(const ui::Accelerator& accelerator,
|
@@ -664,9 +664,10 @@ void HandleAccelerator(const ui::Accelerator& accelerator,
|
||||||
|
@ -31,10 +31,10 @@ index 48dfca966a594f54523c129fa49d2a561cb41dec..049cf4f1adcf4f64cd8692f6e6eda741
|
||||||
|
|
||||||
// Register the CGWindowID (used to identify this window for video capture)
|
// Register the CGWindowID (used to identify this window for video capture)
|
||||||
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
|
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
|
||||||
index b1bae5f73c9509e9fc837220a103d0dcff501ab2..aa5ab5fe546c1ebf8cc57b2a32f21b7c1802e4f2 100644
|
index 31709448e70a4213d1e9dedcb26ac27c4829a32c..3b9da80b4673faae16d8ef7722cd7804e3fac82e 100644
|
||||||
--- a/ui/views/widget/widget.h
|
--- a/ui/views/widget/widget.h
|
||||||
+++ b/ui/views/widget/widget.h
|
+++ b/ui/views/widget/widget.h
|
||||||
@@ -1298,6 +1298,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
@@ -1302,6 +1302,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
||||||
// True if widget was created in headless mode.
|
// True if widget was created in headless mode.
|
||||||
bool is_headless() const { return is_headless_; }
|
bool is_headless() const { return is_headless_; }
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ enlarge window above dimensions set during creation of the
|
||||||
BrowserWindow.
|
BrowserWindow.
|
||||||
|
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index f404c718e0242ec9269e7d14eb236aa928fb5d58..3637176c05a7074cb9042b74f7c9ea2e29af5ee5 100644
|
index aa5b34fa3fdef76b9bb7afd26ecaeda785e25824..76893d462786eaff21838614a8251b97bec92a79 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -3843,15 +3843,30 @@ void HWNDMessageHandler::SizeWindowToAspectRatio(UINT param,
|
@@ -3843,15 +3843,30 @@ void HWNDMessageHandler::SizeWindowToAspectRatio(UINT param,
|
||||||
|
|
|
@ -28,10 +28,10 @@ The patch should be removed in favor of either:
|
||||||
Upstream bug https://bugs.chromium.org/p/chromium/issues/detail?id=1081397.
|
Upstream bug https://bugs.chromium.org/p/chromium/issues/detail?id=1081397.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/navigation_request.cc b/content/browser/renderer_host/navigation_request.cc
|
diff --git a/content/browser/renderer_host/navigation_request.cc b/content/browser/renderer_host/navigation_request.cc
|
||||||
index 07284d1cca9d78cfd0081d41823766e0051e1eed..2daded6fb83043ced67378fca9367168e5e76f4f 100644
|
index ed42146d41ed88133780217cea15ab068ca77745..f151330a55443f9e4518265ccc2c1368a38474ae 100644
|
||||||
--- a/content/browser/renderer_host/navigation_request.cc
|
--- a/content/browser/renderer_host/navigation_request.cc
|
||||||
+++ b/content/browser/renderer_host/navigation_request.cc
|
+++ b/content/browser/renderer_host/navigation_request.cc
|
||||||
@@ -11392,6 +11392,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() {
|
@@ -11316,6 +11316,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() {
|
||||||
target_rph_id);
|
target_rph_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ index 07284d1cca9d78cfd0081d41823766e0051e1eed..2daded6fb83043ced67378fca9367168
|
||||||
// origin of |common_params.url| and/or |common_params.initiator_origin|.
|
// origin of |common_params.url| and/or |common_params.initiator_origin|.
|
||||||
url::Origin resolved_origin = url::Origin::Resolve(
|
url::Origin resolved_origin = url::Origin::Resolve(
|
||||||
diff --git a/third_party/blink/renderer/core/loader/document_loader.cc b/third_party/blink/renderer/core/loader/document_loader.cc
|
diff --git a/third_party/blink/renderer/core/loader/document_loader.cc b/third_party/blink/renderer/core/loader/document_loader.cc
|
||||||
index a7c069c44622d1a247b44395007261b5323da982..639f9a93f4b27bda9082ed1b7a4c914c493b714f 100644
|
index 24ca17c2cf3e633f5609d13cebfc521991e9aabf..8e34fadf2cb21e561d6a4d3b0c7e8c384e33cc73 100644
|
||||||
--- a/third_party/blink/renderer/core/loader/document_loader.cc
|
--- a/third_party/blink/renderer/core/loader/document_loader.cc
|
||||||
+++ b/third_party/blink/renderer/core/loader/document_loader.cc
|
+++ b/third_party/blink/renderer/core/loader/document_loader.cc
|
||||||
@@ -2322,6 +2322,10 @@ Frame* DocumentLoader::CalculateOwnerFrame() {
|
@@ -2322,6 +2322,10 @@ Frame* DocumentLoader::CalculateOwnerFrame() {
|
||||||
|
|
|
@ -12,7 +12,7 @@ invisible state of the `viz::DisplayScheduler` owned
|
||||||
by the `ui::Compositor`.
|
by the `ui::Compositor`.
|
||||||
|
|
||||||
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
|
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
|
||||||
index 1cb8ea92e46ad45cd8bf9e99f38889964b16768f..3e80241add13eeeb3b5970932f23acec0d91fd4e 100644
|
index 57cac208e943687226348b427c3d80b2cc9288a7..c2794daaa48af44f9cfd374bac45c64b315a6817 100644
|
||||||
--- a/ui/compositor/compositor.cc
|
--- a/ui/compositor/compositor.cc
|
||||||
+++ b/ui/compositor/compositor.cc
|
+++ b/ui/compositor/compositor.cc
|
||||||
@@ -358,7 +358,8 @@ void Compositor::SetLayerTreeFrameSink(
|
@@ -358,7 +358,8 @@ void Compositor::SetLayerTreeFrameSink(
|
||||||
|
@ -25,7 +25,7 @@ index 1cb8ea92e46ad45cd8bf9e99f38889964b16768f..3e80241add13eeeb3b5970932f23acec
|
||||||
display_private_->SetDisplayColorSpaces(display_color_spaces_);
|
display_private_->SetDisplayColorSpaces(display_color_spaces_);
|
||||||
display_private_->SetDisplayColorMatrix(
|
display_private_->SetDisplayColorMatrix(
|
||||||
gfx::SkM44ToTransform(display_color_matrix_));
|
gfx::SkM44ToTransform(display_color_matrix_));
|
||||||
@@ -609,7 +610,9 @@ void Compositor::SetVisible(bool visible) {
|
@@ -615,7 +616,9 @@ void Compositor::SetVisible(bool visible) {
|
||||||
// updated then. We need to call this even if the visibility hasn't changed,
|
// updated then. We need to call this even if the visibility hasn't changed,
|
||||||
// for the same reason.
|
// for the same reason.
|
||||||
if (display_private_)
|
if (display_private_)
|
||||||
|
@ -36,7 +36,7 @@ index 1cb8ea92e46ad45cd8bf9e99f38889964b16768f..3e80241add13eeeb3b5970932f23acec
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
observer_list_.Notify(&CompositorObserver::OnCompositorVisibilityChanged,
|
observer_list_.Notify(&CompositorObserver::OnCompositorVisibilityChanged,
|
||||||
@@ -1073,6 +1076,15 @@ void Compositor::MaybeUpdateObserveBeginFrame() {
|
@@ -1079,6 +1082,15 @@ void Compositor::MaybeUpdateObserveBeginFrame() {
|
||||||
host_begin_frame_observer_->GetBoundRemote());
|
host_begin_frame_observer_->GetBoundRemote());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +53,10 @@ index 1cb8ea92e46ad45cd8bf9e99f38889964b16768f..3e80241add13eeeb3b5970932f23acec
|
||||||
void Compositor::SetSeamlessRefreshRates(
|
void Compositor::SetSeamlessRefreshRates(
|
||||||
const std::vector<float>& seamless_refresh_rates) {
|
const std::vector<float>& seamless_refresh_rates) {
|
||||||
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
||||||
index 682b23f083eff17bc36cdc4698e35d853beb90cc..df9e598b65594748d59284e1e91d61233eef83a0 100644
|
index 11e6186b8e06008564246e8034b780a09a498838..902c14d3d88fd6e65332ea05c566793cce569089 100644
|
||||||
--- a/ui/compositor/compositor.h
|
--- a/ui/compositor/compositor.h
|
||||||
+++ b/ui/compositor/compositor.h
|
+++ b/ui/compositor/compositor.h
|
||||||
@@ -514,6 +514,10 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
@@ -520,6 +520,10 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
||||||
|
|
||||||
const cc::LayerTreeSettings& GetLayerTreeSettings() const;
|
const cc::LayerTreeSettings& GetLayerTreeSettings() const;
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ index 682b23f083eff17bc36cdc4698e35d853beb90cc..df9e598b65594748d59284e1e91d6123
|
||||||
size_t saved_events_metrics_count_for_testing() const {
|
size_t saved_events_metrics_count_for_testing() const {
|
||||||
return host_->saved_events_metrics_count_for_testing();
|
return host_->saved_events_metrics_count_for_testing();
|
||||||
}
|
}
|
||||||
@@ -724,6 +728,12 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
@@ -730,6 +734,12 @@ class COMPOSITOR_EXPORT Compositor : public base::PowerSuspendObserver,
|
||||||
// See go/report-ux-metrics-at-painting for details.
|
// See go/report-ux-metrics-at-painting for details.
|
||||||
bool animation_started_ = false;
|
bool animation_started_ = false;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ to support content settings UI. The support pulls in chrome content settings
|
||||||
and UI code which are not valid in the scope of Electron.
|
and UI code which are not valid in the scope of Electron.
|
||||||
|
|
||||||
diff --git a/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc b/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
diff --git a/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc b/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
||||||
index 32f0f62dbc4f0c541440fd99d20e0fc80825f480..bcf7e67eb024a6ec8d2470a338e016c6779840a4 100644
|
index 387a75ac7b0c7be1e38c3ba2b357f729f1e09229..fecf72a6d434f7c22159420c1cbbf34a285838c8 100644
|
||||||
--- a/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
--- a/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
||||||
+++ b/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
+++ b/chrome/browser/picture_in_picture/picture_in_picture_window_manager.cc
|
||||||
@@ -6,6 +6,7 @@
|
@@ -6,6 +6,7 @@
|
||||||
|
@ -23,7 +23,7 @@ index 32f0f62dbc4f0c541440fd99d20e0fc80825f480..bcf7e67eb024a6ec8d2470a338e016c6
|
||||||
@@ -28,8 +29,10 @@
|
@@ -28,8 +29,10 @@
|
||||||
#include "base/task/sequenced_task_runner.h"
|
#include "base/task/sequenced_task_runner.h"
|
||||||
// TODO(crbug.com/421608904): include auto_picture_in_picture_tab_helper for
|
// TODO(crbug.com/421608904): include auto_picture_in_picture_tab_helper for
|
||||||
// Android.
|
// Android when supporting document PiP.
|
||||||
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||||
#include "chrome/browser/picture_in_picture/auto_picture_in_picture_tab_helper.h"
|
#include "chrome/browser/picture_in_picture/auto_picture_in_picture_tab_helper.h"
|
||||||
#include "chrome/browser/picture_in_picture/auto_pip_setting_overlay_view.h"
|
#include "chrome/browser/picture_in_picture/auto_pip_setting_overlay_view.h"
|
||||||
|
@ -83,7 +83,7 @@ index 32f0f62dbc4f0c541440fd99d20e0fc80825f480..bcf7e67eb024a6ec8d2470a338e016c6
|
||||||
|
|
||||||
PictureInPictureOcclusionTracker*
|
PictureInPictureOcclusionTracker*
|
||||||
diff --git a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
diff --git a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
index 489d68b6452a4814f4cba1e65ab036629583f5b5..a306cbb8e5bfa585bceb140a0c66d1c64b7a8813 100644
|
index fea71317b41429dd3bbd50947673124f7c230394..ddfd48582869c6285274d241b5d876e9c4fbe555 100644
|
||||||
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
@@ -471,11 +471,13 @@ std::unique_ptr<VideoOverlayWindowViews> VideoOverlayWindowViews::Create(
|
@@ -471,11 +471,13 @@ std::unique_ptr<VideoOverlayWindowViews> VideoOverlayWindowViews::Create(
|
||||||
|
|
|
@ -9,10 +9,10 @@ focus node change via TextInputManager.
|
||||||
chromium-bug: https://crbug.com/1369605
|
chromium-bug: https://crbug.com/1369605
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
index b930145db575eb8c4e84297ddd610bd90fb5d3a8..8407b3a87219d314617295fa664c39b5daa2ce0a 100644
|
index 0927d69b56d064327f0659d8ffe6ceff98064947..c64efad51c18254f957dd0b5b89f3d6ee25bac13 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||||
@@ -3249,6 +3249,12 @@ void RenderWidgetHostViewAura::OnTextSelectionChanged(
|
@@ -3247,6 +3247,12 @@ void RenderWidgetHostViewAura::OnTextSelectionChanged(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,10 +87,10 @@ index 75df43e3cd2721a92c90c18154d53d5c203e2465..ce42c75c8face36d21f53f44c0201ac4
|
||||||
// The view with active text input state, i.e., a focused <input> element.
|
// The view with active text input state, i.e., a focused <input> element.
|
||||||
// It will be nullptr if no such view exists. Note that the active view
|
// It will be nullptr if no such view exists. Note that the active view
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 0a6a205f49d7bc853879ac4919868aadd6fdd42f..3a9264493f90fb8e82e34e13328d74c00d156966 100644
|
index 7f49174c2e0121ddde50250a38b4ac4fcc43d125..2fd9e3ce15869b284ff8716c02ce8dc6392b2a7b 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -10089,7 +10089,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame(
|
@@ -10083,7 +10083,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame(
|
||||||
"WebContentsImpl::OnFocusedElementChangedInFrame",
|
"WebContentsImpl::OnFocusedElementChangedInFrame",
|
||||||
"render_frame_host", frame);
|
"render_frame_host", frame);
|
||||||
RenderWidgetHostViewBase* root_view =
|
RenderWidgetHostViewBase* root_view =
|
||||||
|
|
|
@ -62,7 +62,7 @@ index b504350cb53273d1db7204771ae080647fe6b878..8fdf6a14d0913aca8f14c412c4afae3a
|
||||||
PMPrintSettings print_settings =
|
PMPrintSettings print_settings =
|
||||||
static_cast<PMPrintSettings>([print_info_ PMPrintSettings]);
|
static_cast<PMPrintSettings>([print_info_ PMPrintSettings]);
|
||||||
diff --git a/printing/printing_context_system_dialog_win.cc b/printing/printing_context_system_dialog_win.cc
|
diff --git a/printing/printing_context_system_dialog_win.cc b/printing/printing_context_system_dialog_win.cc
|
||||||
index 2808248f6eb3f5c75f20775d61c9d0d20aaaecf6..c7367251f5b9735994ac4c173281b89d1c5f4579 100644
|
index f8e903f21cee7041dea67b479c298baf9093d719..ed5d59f29992b0925efd89cb0ac4b33a03a31788 100644
|
||||||
--- a/printing/printing_context_system_dialog_win.cc
|
--- a/printing/printing_context_system_dialog_win.cc
|
||||||
+++ b/printing/printing_context_system_dialog_win.cc
|
+++ b/printing/printing_context_system_dialog_win.cc
|
||||||
@@ -4,10 +4,12 @@
|
@@ -4,10 +4,12 @@
|
||||||
|
@ -78,12 +78,11 @@ index 2808248f6eb3f5c75f20775d61c9d0d20aaaecf6..c7367251f5b9735994ac4c173281b89d
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "base/task/current_thread.h"
|
#include "base/task/current_thread.h"
|
||||||
#include "printing/backend/win_helper.h"
|
#include "printing/backend/win_helper.h"
|
||||||
@@ -74,14 +76,28 @@ void PrintingContextSystemDialogWin::AskUserForSettings(
|
@@ -74,13 +76,28 @@ void PrintingContextSystemDialogWin::AskUserForSettings(
|
||||||
PRINTPAGERANGE ranges[32];
|
PRINTPAGERANGE ranges[32] = {};
|
||||||
dialog_options.nStartPage = START_PAGE_GENERAL;
|
dialog_options.nStartPage = START_PAGE_GENERAL;
|
||||||
if (max_pages) {
|
if (max_pages) {
|
||||||
- // Default initialize to print all the pages.
|
- // Default initialize to print all the pages.
|
||||||
- UNSAFE_TODO(memset(ranges, 0, sizeof(ranges)));
|
|
||||||
- ranges[0].nFromPage = 1;
|
- ranges[0].nFromPage = 1;
|
||||||
- ranges[0].nToPage = max_pages;
|
- ranges[0].nToPage = max_pages;
|
||||||
- dialog_options.nPageRanges = 1;
|
- dialog_options.nPageRanges = 1;
|
||||||
|
|
|
@ -18,7 +18,7 @@ or resizing, but Electron does not seem to run into that issue
|
||||||
for opaque frameless windows even with that block commented out.
|
for opaque frameless windows even with that block commented out.
|
||||||
|
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index 3ed583cf09dec0ae83c3c9449e6ef7e1fa92aa8d..1287e9eda295061a7ee9b758b3c0618933896d82 100644
|
index 72474adfb09f85118b4f752a22d121ab2b4c588a..fa4912943171789f6f326a245185885a4e74c0bb 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -1857,7 +1857,23 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
|
@@ -1857,7 +1857,23 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ such as the background turning black when maximizing the window and
|
||||||
dynamic background material settings not taking effect.
|
dynamic background material settings not taking effect.
|
||||||
|
|
||||||
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
index ed4d2c4d849085c0e7830c5d52d47daf2700ce34..31ee28c3f8d04a4a9239a781ef9f79da8ee699b9 100644
|
index 7d899eef72721c6f3e27c9892ba963fd6b5aaeef..7c61f1f8d57a04cb5c0151c134b4b3d617159032 100644
|
||||||
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
@@ -183,6 +183,10 @@ void DesktopWindowTreeHostWin::FinishTouchDrag(gfx::Point screen_point) {
|
@@ -183,6 +183,10 @@ void DesktopWindowTreeHostWin::FinishTouchDrag(gfx::Point screen_point) {
|
||||||
|
@ -36,7 +36,7 @@ index d8be4dffee3947e7ac6dc09cb8e1f2a6a834789b..8eb539af74c1934a55f9b14ad97dd93b
|
||||||
// Overridden from DesktopWindowTreeHost:
|
// Overridden from DesktopWindowTreeHost:
|
||||||
void Init(const Widget::InitParams& params) override;
|
void Init(const Widget::InitParams& params) override;
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index 1287e9eda295061a7ee9b758b3c0618933896d82..e2b899dd25c12448068c99f1344cba4fea26e2c6 100644
|
index fa4912943171789f6f326a245185885a4e74c0bb..f8832efce276c6dfc520cab2870697aa4d88eff5 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -994,13 +994,13 @@ void HWNDMessageHandler::FrameTypeChanged() {
|
@@ -994,13 +994,13 @@ void HWNDMessageHandler::FrameTypeChanged() {
|
||||||
|
|
|
@ -11,10 +11,10 @@ This patch should be upstreamed as a conditional revert of the logic in desktop
|
||||||
vs mobile runtimes. i.e. restore the old logic only on desktop platforms
|
vs mobile runtimes. i.e. restore the old logic only on desktop platforms
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
index 8073bdba33d6ddbc0306e8e9256b36cd87537eca..7ae6336c4e3c09ae16639b616a4757f75a044bc4 100644
|
index 9cccc151a7c1b7d11a88545e168fd878276a91ea..349d591b0b35421f91e70dde257a726341e94ad9 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
@@ -2164,9 +2164,8 @@ RenderWidgetHostImpl::GetWidgetInputHandler() {
|
@@ -2160,9 +2160,8 @@ RenderWidgetHostImpl::GetWidgetInputHandler() {
|
||||||
void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
|
void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
|
||||||
// The resize message (which may not happen immediately) will carry with it
|
// The resize message (which may not happen immediately) will carry with it
|
||||||
// the screen info as well as the new size (if the screen has changed scale
|
// the screen info as well as the new size (if the screen has changed scale
|
||||||
|
|
|
@ -20,10 +20,10 @@ index fc9cb7e68bdad4c40fab63f70243e09ad005ab80..199fbceda530da31aab9126d78b4bd21
|
||||||
injector_->ExpectsResults(), injector_->ShouldWaitForPromise());
|
injector_->ExpectsResults(), injector_->ShouldWaitForPromise());
|
||||||
}
|
}
|
||||||
diff --git a/third_party/blink/public/web/web_local_frame.h b/third_party/blink/public/web/web_local_frame.h
|
diff --git a/third_party/blink/public/web/web_local_frame.h b/third_party/blink/public/web/web_local_frame.h
|
||||||
index ca2155188474863dca7a811a9c484027447026e8..4c4064f99bbffe03c525694797aef70e9decd346 100644
|
index e4362d8b19bc91a56d84f2fb2756cc8489b98287..a4594215dbec1a77bf511297a5a1a8886b542e97 100644
|
||||||
--- a/third_party/blink/public/web/web_local_frame.h
|
--- a/third_party/blink/public/web/web_local_frame.h
|
||||||
+++ b/third_party/blink/public/web/web_local_frame.h
|
+++ b/third_party/blink/public/web/web_local_frame.h
|
||||||
@@ -462,6 +462,7 @@ class BLINK_EXPORT WebLocalFrame : public WebFrame {
|
@@ -463,6 +463,7 @@ class BLINK_EXPORT WebLocalFrame : public WebFrame {
|
||||||
mojom::EvaluationTiming,
|
mojom::EvaluationTiming,
|
||||||
mojom::LoadEventBlockingOption,
|
mojom::LoadEventBlockingOption,
|
||||||
WebScriptExecutionCallback,
|
WebScriptExecutionCallback,
|
||||||
|
@ -59,10 +59,10 @@ index cba373664bec3a32abad6fe0396bd67b53b7e67f..a54f1b3351efd2d8f324436f7f35cd43
|
||||||
|
|
||||||
#endif // THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_SCRIPT_EXECUTION_CALLBACK_H_
|
#endif // THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_SCRIPT_EXECUTION_CALLBACK_H_
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
index 7aeff27d6005d70f962fcbd90e6902987e3abd09..37eb4b97f9f1f90998e65f6cb253f826b27088a4 100644
|
index 75975a8d48b05ba25b169b93b62bb7d34eb3f5b7..31a876e234f4228220ab6cf5b41c22de31779c84 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
@@ -3176,6 +3176,7 @@ void LocalFrame::RequestExecuteScript(
|
@@ -3194,6 +3194,7 @@ void LocalFrame::RequestExecuteScript(
|
||||||
mojom::blink::EvaluationTiming evaluation_timing,
|
mojom::blink::EvaluationTiming evaluation_timing,
|
||||||
mojom::blink::LoadEventBlockingOption blocking_option,
|
mojom::blink::LoadEventBlockingOption blocking_option,
|
||||||
WebScriptExecutionCallback callback,
|
WebScriptExecutionCallback callback,
|
||||||
|
@ -70,7 +70,7 @@ index 7aeff27d6005d70f962fcbd90e6902987e3abd09..37eb4b97f9f1f90998e65f6cb253f826
|
||||||
BackForwardCacheAware back_forward_cache_aware,
|
BackForwardCacheAware back_forward_cache_aware,
|
||||||
mojom::blink::WantResultOption want_result_option,
|
mojom::blink::WantResultOption want_result_option,
|
||||||
mojom::blink::PromiseResultOption promise_behavior) {
|
mojom::blink::PromiseResultOption promise_behavior) {
|
||||||
@@ -3208,7 +3209,7 @@ void LocalFrame::RequestExecuteScript(
|
@@ -3251,7 +3252,7 @@ void LocalFrame::RequestExecuteScript(
|
||||||
PausableScriptExecutor::CreateAndRun(
|
PausableScriptExecutor::CreateAndRun(
|
||||||
script_state, std::move(script_sources), execute_script_policy,
|
script_state, std::move(script_sources), execute_script_policy,
|
||||||
user_gesture, evaluation_timing, blocking_option, want_result_option,
|
user_gesture, evaluation_timing, blocking_option, want_result_option,
|
||||||
|
@ -80,7 +80,7 @@ index 7aeff27d6005d70f962fcbd90e6902987e3abd09..37eb4b97f9f1f90998e65f6cb253f826
|
||||||
|
|
||||||
void LocalFrame::SetEvictCachedSessionStorageOnFreezeOrUnload() {
|
void LocalFrame::SetEvictCachedSessionStorageOnFreezeOrUnload() {
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame.h b/third_party/blink/renderer/core/frame/local_frame.h
|
diff --git a/third_party/blink/renderer/core/frame/local_frame.h b/third_party/blink/renderer/core/frame/local_frame.h
|
||||||
index b68a56d2dd05ce614c9b2c387dc960bad58fab0b..e53bad5ef91d6d86d25996a62f26a24015b607fe 100644
|
index 27a48a7ccdee3a15bd42e7ebb01cf109ec80fbf3..fc0dc28d97dc7e73ec0b86ed221179b1f538de9d 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame.h
|
--- a/third_party/blink/renderer/core/frame/local_frame.h
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame.h
|
+++ b/third_party/blink/renderer/core/frame/local_frame.h
|
||||||
@@ -831,6 +831,7 @@ class CORE_EXPORT LocalFrame final
|
@@ -831,6 +831,7 @@ class CORE_EXPORT LocalFrame final
|
||||||
|
@ -92,7 +92,7 @@ index b68a56d2dd05ce614c9b2c387dc960bad58fab0b..e53bad5ef91d6d86d25996a62f26a240
|
||||||
mojom::blink::WantResultOption,
|
mojom::blink::WantResultOption,
|
||||||
mojom::blink::PromiseResultOption);
|
mojom::blink::PromiseResultOption);
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc b/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc b/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
||||||
index a7d638b474011b564f326b128183278fd3fdb6e2..11a49018d7c004f34897d1a7f21c7e4705da023c 100644
|
index 6516d0bc1a2a1891e59268bc29ca20bf27ec4789..c2d7ac40b253135c5d0342863e88a60d721afd00 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
--- a/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
+++ b/third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
|
||||||
@@ -968,6 +968,7 @@ void LocalFrameMojoHandler::JavaScriptExecuteRequestInIsolatedWorld(
|
@@ -968,6 +968,7 @@ void LocalFrameMojoHandler::JavaScriptExecuteRequestInIsolatedWorld(
|
||||||
|
@ -104,7 +104,7 @@ index a7d638b474011b564f326b128183278fd3fdb6e2..11a49018d7c004f34897d1a7f21c7e47
|
||||||
wants_result
|
wants_result
|
||||||
? mojom::blink::WantResultOption::kWantResultDateAndRegExpAllowed
|
? mojom::blink::WantResultOption::kWantResultDateAndRegExpAllowed
|
||||||
diff --git a/third_party/blink/renderer/core/frame/pausable_script_executor.cc b/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
diff --git a/third_party/blink/renderer/core/frame/pausable_script_executor.cc b/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
||||||
index 19e5c838cc17844092df5652542a767316bc03b2..105f61bf14cdcfbf9cd284d80ba7bde756d5fcf2 100644
|
index 7c31a69ccd7a74d75e5df63d895b91239d243a92..1b435cb43592afba984fe203d1ccf2d9f4ef85f5 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
--- a/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
+++ b/third_party/blink/renderer/core/frame/pausable_script_executor.cc
|
||||||
@@ -243,7 +243,7 @@ void PausableScriptExecutor::CreateAndRun(
|
@@ -243,7 +243,7 @@ void PausableScriptExecutor::CreateAndRun(
|
||||||
|
@ -203,7 +203,7 @@ index fa65331f40b90d812b71a489fd560e9359152d2b..390714d631dc88ef92d59ef9618a5706
|
||||||
const mojom::blink::UserActivationOption user_activation_option_;
|
const mojom::blink::UserActivationOption user_activation_option_;
|
||||||
const mojom::blink::LoadEventBlockingOption blocking_option_;
|
const mojom::blink::LoadEventBlockingOption blocking_option_;
|
||||||
diff --git a/third_party/blink/renderer/core/frame/web_frame_test.cc b/third_party/blink/renderer/core/frame/web_frame_test.cc
|
diff --git a/third_party/blink/renderer/core/frame/web_frame_test.cc b/third_party/blink/renderer/core/frame/web_frame_test.cc
|
||||||
index bb32bd4b10280ec767af6589efc843c264e13533..06e70645fe57b1d0576c69fd64d3532636dd9184 100644
|
index afee60b061eb816286f34323f6dad8cb81d8f203..0d81f7e997225f25c17f3ec2c16962ab5ecfe465 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/web_frame_test.cc
|
--- a/third_party/blink/renderer/core/frame/web_frame_test.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/web_frame_test.cc
|
+++ b/third_party/blink/renderer/core/frame/web_frame_test.cc
|
||||||
@@ -295,6 +295,7 @@ void ExecuteScriptsInMainWorld(
|
@@ -295,6 +295,7 @@ void ExecuteScriptsInMainWorld(
|
||||||
|
@ -215,10 +215,10 @@ index bb32bd4b10280ec767af6589efc843c264e13533..06e70645fe57b1d0576c69fd64d35326
|
||||||
mojom::blink::WantResultOption::kWantResult, wait_for_promise);
|
mojom::blink::WantResultOption::kWantResult, wait_for_promise);
|
||||||
}
|
}
|
||||||
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
index 8fd3d92ef3fb132922bcf041840161f32804fd1f..212e6d5678fbc50fc155bd9beb4806315e5c2202 100644
|
index 8035d2ee0dbef988f87de48a6aa5371b74377637..30e3a7613bc7c951faccc44b5989d2840a6ce6ad 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
@@ -1121,14 +1121,15 @@ void WebLocalFrameImpl::RequestExecuteScript(
|
@@ -1122,14 +1122,15 @@ void WebLocalFrameImpl::RequestExecuteScript(
|
||||||
mojom::blink::EvaluationTiming evaluation_timing,
|
mojom::blink::EvaluationTiming evaluation_timing,
|
||||||
mojom::blink::LoadEventBlockingOption blocking_option,
|
mojom::blink::LoadEventBlockingOption blocking_option,
|
||||||
WebScriptExecutionCallback callback,
|
WebScriptExecutionCallback callback,
|
||||||
|
@ -237,7 +237,7 @@ index 8fd3d92ef3fb132922bcf041840161f32804fd1f..212e6d5678fbc50fc155bd9beb480631
|
||||||
|
|
||||||
bool WebLocalFrameImpl::IsInspectorConnected() {
|
bool WebLocalFrameImpl::IsInspectorConnected() {
|
||||||
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.h b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.h b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
index a605d360906b68cd55bba57d383ff92a326d8b98..2806254047b707b65ea6117066734505b715f6d7 100644
|
index a2850434615d5439fa25bcb75c8d23811564d1bc..2be52adcae8ec252a1274ccf0ca21838727e0564 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
@@ -199,6 +199,7 @@ class CORE_EXPORT WebLocalFrameImpl final
|
@@ -199,6 +199,7 @@ class CORE_EXPORT WebLocalFrameImpl final
|
||||||
|
|
|
@ -6,10 +6,10 @@ Subject: fix: select the first menu item when opened via keyboard
|
||||||
This fixes an accessibility issue where the root view is 'focused' to the screen reader instead of the first menu item as with all other native menus. This patch will be upstreamed.
|
This fixes an accessibility issue where the root view is 'focused' to the screen reader instead of the first menu item as with all other native menus. This patch will be upstreamed.
|
||||||
|
|
||||||
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
|
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
|
||||||
index c206a2ebcb069616be1205efc261ec060249f35b..0300e9b05feaa14895a05eb9ca7b41fb84a05bee 100644
|
index a4b272aa24dc59e68451d72adaf08df4d1657925..aaf13673d2b934638f467bb070fb96aa823c51a1 100644
|
||||||
--- a/ui/views/controls/menu/menu_controller.cc
|
--- a/ui/views/controls/menu/menu_controller.cc
|
||||||
+++ b/ui/views/controls/menu/menu_controller.cc
|
+++ b/ui/views/controls/menu/menu_controller.cc
|
||||||
@@ -713,6 +713,16 @@ void MenuController::Run(Widget* parent,
|
@@ -740,6 +740,16 @@ void MenuController::Run(Widget* parent,
|
||||||
SetSelection(root, SELECTION_OPEN_SUBMENU | SELECTION_UPDATE_IMMEDIATELY);
|
SetSelection(root, SELECTION_OPEN_SUBMENU | SELECTION_UPDATE_IMMEDIATELY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ index c206a2ebcb069616be1205efc261ec060249f35b..0300e9b05feaa14895a05eb9ca7b41fb
|
||||||
if (button_controller) {
|
if (button_controller) {
|
||||||
pressed_lock_ = button_controller->TakeLock(
|
pressed_lock_ = button_controller->TakeLock(
|
||||||
false, ui::LocatedEvent::FromIfValid(event));
|
false, ui::LocatedEvent::FromIfValid(event));
|
||||||
@@ -2456,19 +2466,15 @@ void MenuController::OpenMenuImpl(MenuItemView* item, bool show) {
|
@@ -2482,18 +2492,15 @@ void MenuController::OpenMenuImpl(MenuItemView* item, bool show) {
|
||||||
}
|
}
|
||||||
item->GetSubmenu()->ShowAt(params);
|
item->GetSubmenu()->ShowAt(params);
|
||||||
|
|
||||||
|
@ -39,13 +39,14 @@ index c206a2ebcb069616be1205efc261ec060249f35b..0300e9b05feaa14895a05eb9ca7b41fb
|
||||||
+ // `ConvertFromScreen` doesn't work correctly if the widget isn't shown.
|
+ // `ConvertFromScreen` doesn't work correctly if the widget isn't shown.
|
||||||
if (item->GetSubmenu()->GetWidget()) {
|
if (item->GetSubmenu()->GetWidget()) {
|
||||||
const gfx::Point mouse_pos = ConvertFromScreen(
|
const gfx::Point mouse_pos = ConvertFromScreen(
|
||||||
*item->submenu_,
|
- *item->submenu_, display::Screen::Get()->GetCursorScreenPoint());
|
||||||
display::Screen::GetScreen()->GetCursorScreenPoint());
|
|
||||||
- MenuPart part_under_mouse = GetMenuPart(item->submenu_.get(), mouse_pos);
|
- MenuPart part_under_mouse = GetMenuPart(item->submenu_.get(), mouse_pos);
|
||||||
- if (part_under_mouse.type != MenuPartType::kNone) {
|
- if (part_under_mouse.type != MenuPartType::kNone) {
|
||||||
- menu_open_mouse_loc_ =
|
- menu_open_mouse_loc_ =
|
||||||
- GetLocationInRootMenu(*item->submenu_, mouse_pos);
|
- GetLocationInRootMenu(*item->submenu_, mouse_pos);
|
||||||
- }
|
- }
|
||||||
|
+ *item->submenu_,
|
||||||
|
+ display::Screen::Get()->GetCursorScreenPoint());
|
||||||
+ menu_open_mouse_loc_ =
|
+ menu_open_mouse_loc_ =
|
||||||
+ GetLocationInRootMenu(*item->submenu_, mouse_pos);
|
+ GetLocationInRootMenu(*item->submenu_, mouse_pos);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,10 +6,10 @@ Subject: frame_host_manager.patch
|
||||||
Allows embedder to intercept site instances created by chromium.
|
Allows embedder to intercept site instances created by chromium.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_frame_host_manager.cc b/content/browser/renderer_host/render_frame_host_manager.cc
|
diff --git a/content/browser/renderer_host/render_frame_host_manager.cc b/content/browser/renderer_host/render_frame_host_manager.cc
|
||||||
index 15da2281d9b2e556aecd723802c952a7135edde7..4802bba61e069b99af76716c148aaaa04b7bdfad 100644
|
index f365208f46749cd7cc08e55f8ddf3187afef64c9..51869cc02beb6b4eca6b2e24e6e3e05fa8c78e50 100644
|
||||||
--- a/content/browser/renderer_host/render_frame_host_manager.cc
|
--- a/content/browser/renderer_host/render_frame_host_manager.cc
|
||||||
+++ b/content/browser/renderer_host/render_frame_host_manager.cc
|
+++ b/content/browser/renderer_host/render_frame_host_manager.cc
|
||||||
@@ -4780,6 +4780,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
@@ -4801,6 +4801,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
||||||
request->ResetStateForSiteInstanceChange();
|
request->ResetStateForSiteInstanceChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ index 15da2281d9b2e556aecd723802c952a7135edde7..4802bba61e069b99af76716c148aaaa0
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
||||||
index 77addfedac20cf8ecf656321dda53ada149f17ff..b813b39b83ebb777a6de960d32ba3b64d2a31907 100644
|
index f27b387da5ff4e4f20d28d80043151ad2f2e9d51..21720c0734155eca8110ae84b937f9cf0291cfb5 100644
|
||||||
--- a/content/public/browser/content_browser_client.h
|
--- a/content/public/browser/content_browser_client.h
|
||||||
+++ b/content/public/browser/content_browser_client.h
|
+++ b/content/public/browser/content_browser_client.h
|
||||||
@@ -339,6 +339,11 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -339,6 +339,11 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||||
|
|
|
@ -6,11 +6,11 @@ Subject: gritsettings_resource_ids.patch
|
||||||
Add electron resources file to the list of resource ids generation.
|
Add electron resources file to the list of resource ids generation.
|
||||||
|
|
||||||
diff --git a/tools/gritsettings/resource_ids.spec b/tools/gritsettings/resource_ids.spec
|
diff --git a/tools/gritsettings/resource_ids.spec b/tools/gritsettings/resource_ids.spec
|
||||||
index b1ac3dbdae5f57873a3259d90883500b01c5fe1a..bffba25874c654a8bbd784c48e8d49f4db2d8f26 100644
|
index bba1bed7b351171434d9b6d8170f6b015f5acb6c..83004f00857a8d260756443f1675228336926896 100644
|
||||||
--- a/tools/gritsettings/resource_ids.spec
|
--- a/tools/gritsettings/resource_ids.spec
|
||||||
+++ b/tools/gritsettings/resource_ids.spec
|
+++ b/tools/gritsettings/resource_ids.spec
|
||||||
@@ -1566,6 +1566,11 @@
|
@@ -1575,6 +1575,11 @@
|
||||||
"structures": [10100],
|
"messages": [10120],
|
||||||
},
|
},
|
||||||
|
|
||||||
+ "electron/build/electron_resources.grd": {
|
+ "electron/build/electron_resources.grd": {
|
||||||
|
|
|
@ -9,10 +9,10 @@ be created for each child process, despite logs being redirected to a
|
||||||
file.
|
file.
|
||||||
|
|
||||||
diff --git a/content/app/content_main.cc b/content/app/content_main.cc
|
diff --git a/content/app/content_main.cc b/content/app/content_main.cc
|
||||||
index 1be84c4cc45951ce874fb4a56d18bd2cbee440a4..c51d40ccef015d6453878debecccdec5681c9614 100644
|
index 47ffb24940071be6f3747a85022a2b226ae8b63b..4632bc6e1801da827a7db37484084288fd709268 100644
|
||||||
--- a/content/app/content_main.cc
|
--- a/content/app/content_main.cc
|
||||||
+++ b/content/app/content_main.cc
|
+++ b/content/app/content_main.cc
|
||||||
@@ -327,16 +327,14 @@ NO_STACK_PROTECTOR int RunContentProcess(
|
@@ -324,16 +324,14 @@ NO_STACK_PROTECTOR int RunContentProcess(
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
|
||||||
|
|
|
@ -35,10 +35,10 @@ system font by checking if it's kCTFontPriorityAttribute is set to
|
||||||
system priority.
|
system priority.
|
||||||
|
|
||||||
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
||||||
index 39780da0d0074845b4d17ff4f6f7e2fbf2aec59f..3eab6a8c37f351bce24b7b581e09e9471cbd527b 100644
|
index c835d9ea235070abaca36b38dc5f573da98fd469..a8d867b18c73abfe55da053a93696eb43c848dde 100644
|
||||||
--- a/base/BUILD.gn
|
--- a/base/BUILD.gn
|
||||||
+++ b/base/BUILD.gn
|
+++ b/base/BUILD.gn
|
||||||
@@ -1061,6 +1061,7 @@ component("base") {
|
@@ -1058,6 +1058,7 @@ component("base") {
|
||||||
"//build:ios_buildflags",
|
"//build:ios_buildflags",
|
||||||
"//build/config/compiler:compiler_buildflags",
|
"//build/config/compiler:compiler_buildflags",
|
||||||
"//third_party/modp_b64",
|
"//third_party/modp_b64",
|
||||||
|
@ -220,10 +220,10 @@ index 1d4c16a300227e5e8269e2c2564cb5e87ec8ee65..3bcbb33700b2b9349795c05c12e44b4f
|
||||||
|
|
||||||
using crypto::apple::Keychain;
|
using crypto::apple::Keychain;
|
||||||
diff --git a/components/remote_cocoa/app_shim/BUILD.gn b/components/remote_cocoa/app_shim/BUILD.gn
|
diff --git a/components/remote_cocoa/app_shim/BUILD.gn b/components/remote_cocoa/app_shim/BUILD.gn
|
||||||
index f93b68dacdba883b259555f486417b94e80152bf..21b6b7a169e201d570d77da9dde54cc2a334c21c 100644
|
index ba813851fde2660c21f99248a124161d2ac2ca07..c34f920e4a592b6798f5307c726bc34ebedf3f88 100644
|
||||||
--- a/components/remote_cocoa/app_shim/BUILD.gn
|
--- a/components/remote_cocoa/app_shim/BUILD.gn
|
||||||
+++ b/components/remote_cocoa/app_shim/BUILD.gn
|
+++ b/components/remote_cocoa/app_shim/BUILD.gn
|
||||||
@@ -75,6 +75,7 @@ component("app_shim") {
|
@@ -77,6 +77,7 @@ component("app_shim") {
|
||||||
"//components/crash/core/common",
|
"//components/crash/core/common",
|
||||||
"//components/remote_cocoa/common:mojo",
|
"//components/remote_cocoa/common:mojo",
|
||||||
"//components/system_media_controls",
|
"//components/system_media_controls",
|
||||||
|
@ -232,7 +232,7 @@ index f93b68dacdba883b259555f486417b94e80152bf..21b6b7a169e201d570d77da9dde54cc2
|
||||||
"//net",
|
"//net",
|
||||||
"//ui/accelerated_widget_mac",
|
"//ui/accelerated_widget_mac",
|
||||||
diff --git a/components/remote_cocoa/app_shim/application_bridge.mm b/components/remote_cocoa/app_shim/application_bridge.mm
|
diff --git a/components/remote_cocoa/app_shim/application_bridge.mm b/components/remote_cocoa/app_shim/application_bridge.mm
|
||||||
index e9f4e5131238b9fb5f1b4b3e90a0cb84a7fc15b4..8b5f4cae3123ac5480ad73f0c873fca0d62f7c9f 100644
|
index b5801f8d4b4d5f5ed9f70b61cbd63f28a80840a6..7bf371952ba5ce01f28c79ffe156ee33812d6874 100644
|
||||||
--- a/components/remote_cocoa/app_shim/application_bridge.mm
|
--- a/components/remote_cocoa/app_shim/application_bridge.mm
|
||||||
+++ b/components/remote_cocoa/app_shim/application_bridge.mm
|
+++ b/components/remote_cocoa/app_shim/application_bridge.mm
|
||||||
@@ -12,6 +12,7 @@
|
@@ -12,6 +12,7 @@
|
||||||
|
@ -270,7 +270,7 @@ index e9f4e5131238b9fb5f1b4b3e90a0cb84a7fc15b4..8b5f4cae3123ac5480ad73f0c873fca0
|
||||||
+#endif
|
+#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
bool g_is_out_of_process_app_shim = false;
|
||||||
diff --git a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
diff --git a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
||||||
index f7200edbe6059ac6d7ade0672852b52da7642a71..0cc5da96411b46eb39d0c01dfec59cb503df0d9b 100644
|
index f7200edbe6059ac6d7ade0672852b52da7642a71..0cc5da96411b46eb39d0c01dfec59cb503df0d9b 100644
|
||||||
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
||||||
|
@ -385,7 +385,7 @@ index 71158ca9a7101911bb76f0c1b5300b0ff0e326b3..1441b9d4f9560c8b26d4beffe31449ed
|
||||||
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
|
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
|
||||||
// can only be accomplished by overriding methods.
|
// can only be accomplished by overriding methods.
|
||||||
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
diff --git a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
index d2200451e0040a0f597a8ee28de4d16398bdf9ea..49f6579f997c8d60288add0ed8ab7bab69e1a550 100644
|
index 0f65c4272547f31890b872dc208cd01d02848e20..2634fddf9b7b71cd4b97e9ecb5de06bff7217355 100644
|
||||||
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
--- a/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
+++ b/components/remote_cocoa/app_shim/native_widget_mac_nswindow.mm
|
||||||
@@ -21,6 +21,7 @@
|
@@ -21,6 +21,7 @@
|
||||||
|
@ -452,7 +452,7 @@ index d2200451e0040a0f597a8ee28de4d16398bdf9ea..49f6579f997c8d60288add0ed8ab7bab
|
||||||
bool shouldShowWindowTitle = YES;
|
bool shouldShowWindowTitle = YES;
|
||||||
if (_bridge)
|
if (_bridge)
|
||||||
diff --git a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
diff --git a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
index acc9537464c2a54ffc22956873dbdba74500c20b..b0b7d98e20ed0cc63a38d6a2ce462ac63e183ed9 100644
|
index 6ea211c221d74f26be924334ac8b5b007f38e7a3..c5171b3f1a0b25825dded8828ed683282c06e151 100644
|
||||||
--- a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
--- a/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
+++ b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
+++ b/components/remote_cocoa/app_shim/native_widget_ns_window_bridge.mm
|
||||||
@@ -42,6 +42,7 @@
|
@@ -42,6 +42,7 @@
|
||||||
|
@ -548,7 +548,7 @@ index 010c713090e5038dc90db131c8f621422d30c03b..20c35e887a0496ee609c077e3b0494bd
|
||||||
|
|
||||||
void ForwardKeyboardEvent(const input::NativeWebKeyboardEvent& key_event,
|
void ForwardKeyboardEvent(const input::NativeWebKeyboardEvent& key_event,
|
||||||
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
index 437b47fd3a1a43fd52980ea550db953ba47990eb..180b186de6177bcf3345c71646362e9655b9a81f 100644
|
index e5b59a9d364dd5a8f847d9543b19fdc068098754..86abd01371ce8a9c21d020f1a69a5d33b656d72b 100644
|
||||||
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
@@ -34,6 +34,7 @@
|
@@ -34,6 +34,7 @@
|
||||||
|
@ -582,10 +582,10 @@ index 437b47fd3a1a43fd52980ea550db953ba47990eb..180b186de6177bcf3345c71646362e96
|
||||||
return kAttributes;
|
return kAttributes;
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
|
||||||
index 17ec69e510d6af3d64053edce8efc7188a0c62ed..57358a499c0e713c6cec98229fd304636467234d 100644
|
index c92c7110c747cc575c94cf941cf9131987ef4fd6..08bd7dc0663b7d3a7fa327e8795db13129e891de 100644
|
||||||
--- a/content/browser/BUILD.gn
|
--- a/content/browser/BUILD.gn
|
||||||
+++ b/content/browser/BUILD.gn
|
+++ b/content/browser/BUILD.gn
|
||||||
@@ -345,6 +345,7 @@ source_set("browser") {
|
@@ -344,6 +344,7 @@ source_set("browser") {
|
||||||
"//ui/webui/resources",
|
"//ui/webui/resources",
|
||||||
"//v8",
|
"//v8",
|
||||||
"//v8:v8_version",
|
"//v8:v8_version",
|
||||||
|
@ -628,7 +628,7 @@ index e7007a9a7788cbc89a0bbb2387ff2c62bb7d2c79..c2b672a3bd1e61089b411d139f708371
|
||||||
// Used to force the NSApplication's focused accessibility element to be the
|
// Used to force the NSApplication's focused accessibility element to be the
|
||||||
// content::BrowserAccessibilityCocoa accessibility tree when the NSView for
|
// content::BrowserAccessibilityCocoa accessibility tree when the NSView for
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
index 7cd35ebe42cf3b5604a001baf3d4353d6a2bf777..59c8d5a2e687ac6148889c87f353b33959e276f6 100644
|
index d667fdd34ba42be6a7d6486bb9add2bd65953101..57103054e874017bf9926dcdf71786c679f9aac0 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
@@ -52,6 +52,7 @@
|
@@ -52,6 +52,7 @@
|
||||||
|
@ -639,7 +639,7 @@ index 7cd35ebe42cf3b5604a001baf3d4353d6a2bf777..59c8d5a2e687ac6148889c87f353b339
|
||||||
#include "media/base/media_switches.h"
|
#include "media/base/media_switches.h"
|
||||||
#include "skia/ext/platform_canvas.h"
|
#include "skia/ext/platform_canvas.h"
|
||||||
#include "skia/ext/skia_utils_mac.h"
|
#include "skia/ext/skia_utils_mac.h"
|
||||||
@@ -275,8 +276,10 @@
|
@@ -274,8 +275,10 @@
|
||||||
void RenderWidgetHostViewMac::MigrateNSViewBridge(
|
void RenderWidgetHostViewMac::MigrateNSViewBridge(
|
||||||
remote_cocoa::mojom::Application* remote_cocoa_application,
|
remote_cocoa::mojom::Application* remote_cocoa_application,
|
||||||
uint64_t parent_ns_view_id) {
|
uint64_t parent_ns_view_id) {
|
||||||
|
@ -650,7 +650,7 @@ index 7cd35ebe42cf3b5604a001baf3d4353d6a2bf777..59c8d5a2e687ac6148889c87f353b339
|
||||||
|
|
||||||
// Reset `ns_view_` before resetting `remote_ns_view_` to avoid dangling
|
// Reset `ns_view_` before resetting `remote_ns_view_` to avoid dangling
|
||||||
// pointers. `ns_view_` gets reinitialized later in this method.
|
// pointers. `ns_view_` gets reinitialized later in this method.
|
||||||
@@ -1633,10 +1636,12 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
@@ -1630,10 +1633,12 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
||||||
|
|
||||||
gfx::NativeViewAccessible
|
gfx::NativeViewAccessible
|
||||||
RenderWidgetHostViewMac::AccessibilityGetNativeViewAccessibleForWindow() {
|
RenderWidgetHostViewMac::AccessibilityGetNativeViewAccessibleForWindow() {
|
||||||
|
@ -663,7 +663,7 @@ index 7cd35ebe42cf3b5604a001baf3d4353d6a2bf777..59c8d5a2e687ac6148889c87f353b339
|
||||||
return gfx::NativeViewAccessible([GetInProcessNSView() window]);
|
return gfx::NativeViewAccessible([GetInProcessNSView() window]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1688,9 +1693,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
@@ -1685,9 +1690,11 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
void RenderWidgetHostViewMac::SetAccessibilityWindow(NSWindow* window) {
|
||||||
|
@ -675,7 +675,7 @@ index 7cd35ebe42cf3b5604a001baf3d4353d6a2bf777..59c8d5a2e687ac6148889c87f353b339
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
bool RenderWidgetHostViewMac::SyncIsWidgetForMainFrame(
|
||||||
@@ -2193,20 +2200,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
@@ -2190,20 +2197,26 @@ void CombineTextNodesAndMakeCallback(SpeechCallback callback,
|
||||||
void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
void RenderWidgetHostViewMac::GetRenderWidgetAccessibilityToken(
|
||||||
GetRenderWidgetAccessibilityTokenCallback callback) {
|
GetRenderWidgetAccessibilityTokenCallback callback) {
|
||||||
base::ProcessId pid = getpid();
|
base::ProcessId pid = getpid();
|
||||||
|
@ -797,7 +797,7 @@ index a1068589ad844518038ee7bc15a3de9bc5cba525..1ff781c49f086ec8015c7d3c44567dbe
|
||||||
|
|
||||||
} // namespace content
|
} // namespace content
|
||||||
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn
|
||||||
index 738aff50df5ca48ebd0d142dd738c7c8bfab635d..ae293d37bf014c8c899bb2105a941bd2c092ae86 100644
|
index 8e939c6c74a016779cc2a9da2ce68f3ebb11a05a..4c4fb37276f58ba32baaddb5b9e61b95eab8336f 100644
|
||||||
--- a/content/test/BUILD.gn
|
--- a/content/test/BUILD.gn
|
||||||
+++ b/content/test/BUILD.gn
|
+++ b/content/test/BUILD.gn
|
||||||
@@ -673,6 +673,7 @@ static_library("test_support") {
|
@@ -673,6 +673,7 @@ static_library("test_support") {
|
||||||
|
@ -808,7 +808,7 @@ index 738aff50df5ca48ebd0d142dd738c7c8bfab635d..ae293d37bf014c8c899bb2105a941bd2
|
||||||
]
|
]
|
||||||
|
|
||||||
data_deps = [
|
data_deps = [
|
||||||
@@ -1127,6 +1128,8 @@ static_library("browsertest_support") {
|
@@ -1143,6 +1144,8 @@ static_library("browsertest_support") {
|
||||||
# TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
|
# TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
|
||||||
# enable the diagnostic by removing this line.
|
# enable the diagnostic by removing this line.
|
||||||
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
||||||
|
@ -817,7 +817,7 @@ index 738aff50df5ca48ebd0d142dd738c7c8bfab635d..ae293d37bf014c8c899bb2105a941bd2
|
||||||
}
|
}
|
||||||
|
|
||||||
mojom("content_test_mojo_bindings") {
|
mojom("content_test_mojo_bindings") {
|
||||||
@@ -2014,6 +2017,7 @@ test("content_browsertests") {
|
@@ -2029,6 +2032,7 @@ test("content_browsertests") {
|
||||||
"//ui/shell_dialogs",
|
"//ui/shell_dialogs",
|
||||||
"//ui/snapshot",
|
"//ui/snapshot",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
|
@ -825,7 +825,7 @@ index 738aff50df5ca48ebd0d142dd738c7c8bfab635d..ae293d37bf014c8c899bb2105a941bd2
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
||||||
@@ -3330,6 +3334,7 @@ test("content_unittests") {
|
@@ -3354,6 +3358,7 @@ test("content_unittests") {
|
||||||
"//ui/shell_dialogs",
|
"//ui/shell_dialogs",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
"//url",
|
"//url",
|
||||||
|
@ -938,10 +938,10 @@ index d288ffce5c1265adbdefc571f840851026e7479e..e9a6e8c31401750d270fcc55ef1116b2
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
||||||
index 90e73686ebc5befecaa64d745b474ed46a1d4293..96d2c7fa2c8960263215d12fc5a15b4d16d3c3fe 100644
|
index 7bc208697690ac36a3fc546748a05cbe952f1003..2fa14c45a5f3ce23985b7e9e9b2c2a14d3596d63 100644
|
||||||
--- a/media/audio/BUILD.gn
|
--- a/media/audio/BUILD.gn
|
||||||
+++ b/media/audio/BUILD.gn
|
+++ b/media/audio/BUILD.gn
|
||||||
@@ -201,6 +201,7 @@ source_set("audio") {
|
@@ -203,6 +203,7 @@ source_set("audio") {
|
||||||
"CoreMedia.framework",
|
"CoreMedia.framework",
|
||||||
]
|
]
|
||||||
weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0
|
weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0
|
||||||
|
@ -950,7 +950,7 @@ index 90e73686ebc5befecaa64d745b474ed46a1d4293..96d2c7fa2c8960263215d12fc5a15b4d
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
diff --git a/media/audio/apple/audio_low_latency_input.cc b/media/audio/apple/audio_low_latency_input.cc
|
diff --git a/media/audio/apple/audio_low_latency_input.cc b/media/audio/apple/audio_low_latency_input.cc
|
||||||
index 0f7c441ba44fe22b1bf4913ae8e61a8bb7ef7fe7..2311fdbbfa566e76b4709059b707ac4d4ff195d9 100644
|
index 5eda5e58b30b84795ec3827aad7ce97171400097..60bf6c34e8d824ea6d4e02b2951568604db68f43 100644
|
||||||
--- a/media/audio/apple/audio_low_latency_input.cc
|
--- a/media/audio/apple/audio_low_latency_input.cc
|
||||||
+++ b/media/audio/apple/audio_low_latency_input.cc
|
+++ b/media/audio/apple/audio_low_latency_input.cc
|
||||||
@@ -29,6 +29,7 @@
|
@@ -29,6 +29,7 @@
|
||||||
|
@ -1396,10 +1396,10 @@ index eb81a70e4d5d5cd3e6ae9b45f8cd1c795ea76c51..9921ccb10d3455600eddd85f77f10228
|
||||||
|
|
||||||
} // namespace sandbox
|
} // namespace sandbox
|
||||||
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
|
diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn
|
||||||
index 29c93be451657a8844210acba66fe8b9b4b2eed0..64300176d5a2cd4d2243d22d1c298c5315d24474 100644
|
index 96b487da179dd60e325194335cb091b36ec08d35..33efac95559d5ae91a377077b8df357dfa5b7edc 100644
|
||||||
--- a/third_party/blink/renderer/core/BUILD.gn
|
--- a/third_party/blink/renderer/core/BUILD.gn
|
||||||
+++ b/third_party/blink/renderer/core/BUILD.gn
|
+++ b/third_party/blink/renderer/core/BUILD.gn
|
||||||
@@ -425,6 +425,7 @@ component("core") {
|
@@ -428,6 +428,7 @@ component("core") {
|
||||||
"//ui/gfx/geometry",
|
"//ui/gfx/geometry",
|
||||||
"//ui/gfx/geometry:geometry_skia",
|
"//ui/gfx/geometry:geometry_skia",
|
||||||
"//ui/strings",
|
"//ui/strings",
|
||||||
|
@ -1428,10 +1428,10 @@ index c771cee7be34f36521de34ef893ee578b648a8c8..b0bd447b848bfdb7a9ff9cd98ba95574
|
||||||
blink_core_sources_editing += [ "kill_ring_none.cc" ]
|
blink_core_sources_editing += [ "kill_ring_none.cc" ]
|
||||||
}
|
}
|
||||||
diff --git a/ui/accelerated_widget_mac/BUILD.gn b/ui/accelerated_widget_mac/BUILD.gn
|
diff --git a/ui/accelerated_widget_mac/BUILD.gn b/ui/accelerated_widget_mac/BUILD.gn
|
||||||
index 8c07f1ad347cbc3e5024b25e1dd4a9d14396a82b..601df4d169d7ff2925a9762d353438b3eb8665b5 100644
|
index 4a2e4211864cd93cdf3f1e065fedd01d0ddd18f2..8c8916f2a424fea3508a3c0c8266d73c539b16fd 100644
|
||||||
--- a/ui/accelerated_widget_mac/BUILD.gn
|
--- a/ui/accelerated_widget_mac/BUILD.gn
|
||||||
+++ b/ui/accelerated_widget_mac/BUILD.gn
|
+++ b/ui/accelerated_widget_mac/BUILD.gn
|
||||||
@@ -81,6 +81,7 @@ component("accelerated_widget_mac") {
|
@@ -85,6 +85,7 @@ component("accelerated_widget_mac") {
|
||||||
"//ui/gfx",
|
"//ui/gfx",
|
||||||
"//ui/gfx/geometry",
|
"//ui/gfx/geometry",
|
||||||
"//ui/gl",
|
"//ui/gl",
|
||||||
|
@ -1544,10 +1544,10 @@ index dcf493d62990018040a3f84b6f875af737bd2214..3d1c4dcc9ee0bbfdac15f40d9c74e9f3
|
||||||
|
|
||||||
void DisplayCALayerTree::GotIOSurfaceFrame(
|
void DisplayCALayerTree::GotIOSurfaceFrame(
|
||||||
diff --git a/ui/accessibility/platform/BUILD.gn b/ui/accessibility/platform/BUILD.gn
|
diff --git a/ui/accessibility/platform/BUILD.gn b/ui/accessibility/platform/BUILD.gn
|
||||||
index 79a01b007924230edf8c0b32945d3fb4e6f2445d..649a4a80b023808b2c4c28689a0da0401560090a 100644
|
index 54d483d6b3f1a56573e21b1f873b8dee8fc25a0f..33bc8c9ef097a907060ed347dca2ad46b6d081f5 100644
|
||||||
--- a/ui/accessibility/platform/BUILD.gn
|
--- a/ui/accessibility/platform/BUILD.gn
|
||||||
+++ b/ui/accessibility/platform/BUILD.gn
|
+++ b/ui/accessibility/platform/BUILD.gn
|
||||||
@@ -298,6 +298,7 @@ component("platform") {
|
@@ -299,6 +299,7 @@ component("platform") {
|
||||||
"AppKit.framework",
|
"AppKit.framework",
|
||||||
"Foundation.framework",
|
"Foundation.framework",
|
||||||
]
|
]
|
||||||
|
@ -1556,7 +1556,7 @@ index 79a01b007924230edf8c0b32945d3fb4e6f2445d..649a4a80b023808b2c4c28689a0da040
|
||||||
|
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
diff --git a/ui/accessibility/platform/browser_accessibility_manager_mac.mm b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
diff --git a/ui/accessibility/platform/browser_accessibility_manager_mac.mm b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
||||||
index 2a7352c1925bdce988c9f1a44f387e160532f508..8c07cc82bd6c42e6da8de314ca52867bcb3b9532 100644
|
index 8ef5c8c7ac9a555fe41e6146997833ae43164951..4c17f1d29dac780195e07bcdb7e12a8fdd3f2130 100644
|
||||||
--- a/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
--- a/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
||||||
+++ b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
+++ b/ui/accessibility/platform/browser_accessibility_manager_mac.mm
|
||||||
@@ -14,6 +14,7 @@
|
@@ -14,6 +14,7 @@
|
||||||
|
@ -1593,7 +1593,7 @@ index 2a7352c1925bdce988c9f1a44f387e160532f508..8c07cc82bd6c42e6da8de314ca52867b
|
||||||
|
|
||||||
// Use native VoiceOver support for live regions.
|
// Use native VoiceOver support for live regions.
|
||||||
BrowserAccessibilityCocoa* retained_node = native_node;
|
BrowserAccessibilityCocoa* retained_node = native_node;
|
||||||
@@ -703,6 +708,7 @@ void PostAnnouncementNotification(NSString* announcement,
|
@@ -696,6 +701,7 @@ void PostAnnouncementNotification(NSString* announcement,
|
||||||
return window == [NSApp accessibilityFocusedWindow];
|
return window == [NSApp accessibilityFocusedWindow];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1601,7 +1601,7 @@ index 2a7352c1925bdce988c9f1a44f387e160532f508..8c07cc82bd6c42e6da8de314ca52867b
|
||||||
// TODO(accessibility): We need a solution to the problem described below.
|
// TODO(accessibility): We need a solution to the problem described below.
|
||||||
// If the window is NSAccessibilityRemoteUIElement, there are some challenges:
|
// If the window is NSAccessibilityRemoteUIElement, there are some challenges:
|
||||||
// 1. NSApp is the browser which spawned the PWA, and what it considers the
|
// 1. NSApp is the browser which spawned the PWA, and what it considers the
|
||||||
@@ -731,6 +737,7 @@ void PostAnnouncementNotification(NSString* announcement,
|
@@ -724,6 +730,7 @@ void PostAnnouncementNotification(NSString* announcement,
|
||||||
if ([window isKindOfClass:[NSAccessibilityRemoteUIElement class]]) {
|
if ([window isKindOfClass:[NSAccessibilityRemoteUIElement class]]) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1638,10 +1638,10 @@ index 6846060ef9622d8fc8d1d6c8da16e2f1b785e6bd..05c22db87e882b246bd7034e027cf149
|
||||||
// Accessible object
|
// Accessible object
|
||||||
if (AXElementWrapper::IsValidElement(value)) {
|
if (AXElementWrapper::IsValidElement(value)) {
|
||||||
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
|
diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn
|
||||||
index 660c4f5939df164ab5db868ddd19c97e2c782f36..3dae3e6d8aa651f0f382a7af7f1fa8a6ebd480f4 100644
|
index 1428a0aa8d233062990e825050e71d3e3b6dd6f0..009d3446ae976150b25c92ee50590f0926956bca 100644
|
||||||
--- a/ui/base/BUILD.gn
|
--- a/ui/base/BUILD.gn
|
||||||
+++ b/ui/base/BUILD.gn
|
+++ b/ui/base/BUILD.gn
|
||||||
@@ -369,6 +369,13 @@ component("base") {
|
@@ -355,6 +355,13 @@ component("base") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1655,7 +1655,7 @@ index 660c4f5939df164ab5db868ddd19c97e2c782f36..3dae3e6d8aa651f0f382a7af7f1fa8a6
|
||||||
if (is_ios) {
|
if (is_ios) {
|
||||||
sources += [
|
sources += [
|
||||||
"device_form_factor_ios.mm",
|
"device_form_factor_ios.mm",
|
||||||
@@ -517,6 +524,12 @@ component("base") {
|
@@ -503,6 +510,12 @@ component("base") {
|
||||||
"//url",
|
"//url",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1808,7 +1808,7 @@ index 85d9170ae8de43ec0fa18c033d66c0583c26ec2f..c4f76301818404ce853583adf01af85c
|
||||||
// Query the display's refresh rate.
|
// Query the display's refresh rate.
|
||||||
double refresh_rate = 1.0 / screen.minimumRefreshInterval;
|
double refresh_rate = 1.0 / screen.minimumRefreshInterval;
|
||||||
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
||||||
index a4226f4f8d4bb5401edb79855e95c7fff3cd0bb1..9e8da8ab0b21c2b8d7a3a0b9c9eeeb2fdd15201e 100644
|
index 6f09aea6a492f44f5771c635b8d766bb1868938c..bd82e70622e04d83d5d07a9f5e08a1ddacb568e4 100644
|
||||||
--- a/ui/gfx/BUILD.gn
|
--- a/ui/gfx/BUILD.gn
|
||||||
+++ b/ui/gfx/BUILD.gn
|
+++ b/ui/gfx/BUILD.gn
|
||||||
@@ -337,6 +337,12 @@ component("gfx") {
|
@@ -337,6 +337,12 @@ component("gfx") {
|
||||||
|
@ -1863,10 +1863,10 @@ index fe3f85073e31de487a08e57d7f9b07aa4eccf8f3..cf5b07203c8bd559a404600cc98cc8ec
|
||||||
// enough.
|
// enough.
|
||||||
return PlatformFontMac::SystemFontType::kGeneral;
|
return PlatformFontMac::SystemFontType::kGeneral;
|
||||||
diff --git a/ui/views/BUILD.gn b/ui/views/BUILD.gn
|
diff --git a/ui/views/BUILD.gn b/ui/views/BUILD.gn
|
||||||
index f3db960f1963e9fbc575a13b570a8b7564535a5d..0bbf9182ec826a7add3a52b782b9ba319548c687 100644
|
index a7ba817422eb2b82f7a722e8e5df886acd4012aa..1fd81ae13caefbc0950a6c5d87d959455fbf9ce9 100644
|
||||||
--- a/ui/views/BUILD.gn
|
--- a/ui/views/BUILD.gn
|
||||||
+++ b/ui/views/BUILD.gn
|
+++ b/ui/views/BUILD.gn
|
||||||
@@ -724,6 +724,8 @@ component("views") {
|
@@ -720,6 +720,8 @@ component("views") {
|
||||||
"IOSurface.framework",
|
"IOSurface.framework",
|
||||||
"QuartzCore.framework",
|
"QuartzCore.framework",
|
||||||
]
|
]
|
||||||
|
@ -1875,7 +1875,7 @@ index f3db960f1963e9fbc575a13b570a8b7564535a5d..0bbf9182ec826a7add3a52b782b9ba31
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
@@ -1153,6 +1155,8 @@ source_set("test_support") {
|
@@ -1151,6 +1153,8 @@ source_set("test_support") {
|
||||||
"//ui/base/mojom:ui_base_types",
|
"//ui/base/mojom:ui_base_types",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1920,7 +1920,7 @@ index 4cc9db3ae1ef2443b1ecf923c9c572b7d0e85662..f7bf6a6bb63f9c38cc21c03da1c884d6
|
||||||
// Used to force the NSApplication's focused accessibility element to be the
|
// Used to force the NSApplication's focused accessibility element to be the
|
||||||
// views::Views accessibility tree when the NSView for this is focused.
|
// views::Views accessibility tree when the NSView for this is focused.
|
||||||
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.mm b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
diff --git a/ui/views/cocoa/native_widget_mac_ns_window_host.mm b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
index 7c4250a4b5610182abd97469e83e71f32f5bd2b3..48dfca966a594f54523c129fa49d2a561cb41dec 100644
|
index 4c83545e75535469ccdf2bdf7ec3266f4acd64c4..eafa32f62cac0627a4e32aa2301c2cbe0b18ede9 100644
|
||||||
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
--- a/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
+++ b/ui/views/cocoa/native_widget_mac_ns_window_host.mm
|
||||||
@@ -21,6 +21,7 @@
|
@@ -21,6 +21,7 @@
|
||||||
|
@ -1999,7 +1999,7 @@ index 7c4250a4b5610182abd97469e83e71f32f5bd2b3..48dfca966a594f54523c129fa49d2a56
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/ui/views/controls/webview/BUILD.gn b/ui/views/controls/webview/BUILD.gn
|
diff --git a/ui/views/controls/webview/BUILD.gn b/ui/views/controls/webview/BUILD.gn
|
||||||
index 111d6432586f47833dde50678b908c76ad88d37a..429ca4402652a2d89ead228d92971f0cb3b6222c 100644
|
index 7f4eff1017119fc90107c2d86436f7bbf596ac72..688d8a17625765c63151117554933627427829f1 100644
|
||||||
--- a/ui/views/controls/webview/BUILD.gn
|
--- a/ui/views/controls/webview/BUILD.gn
|
||||||
+++ b/ui/views/controls/webview/BUILD.gn
|
+++ b/ui/views/controls/webview/BUILD.gn
|
||||||
@@ -46,6 +46,12 @@ component("webview") {
|
@@ -46,6 +46,12 @@ component("webview") {
|
||||||
|
|
|
@ -7,10 +7,10 @@ This adds a callback from the network service that's used to implement
|
||||||
session.setCertificateVerifyCallback.
|
session.setCertificateVerifyCallback.
|
||||||
|
|
||||||
diff --git a/services/network/network_context.cc b/services/network/network_context.cc
|
diff --git a/services/network/network_context.cc b/services/network/network_context.cc
|
||||||
index a5fa5553641c2be3a3e73e362f89dd3defd90947..7721b8e827d9aac6e90ddfe3de264f41915219f2 100644
|
index 26019db9116d02a3ef4899ff697b7d1060eba046..3998bb0849cd5bec52c6148ccf1e1a30511b32fb 100644
|
||||||
--- a/services/network/network_context.cc
|
--- a/services/network/network_context.cc
|
||||||
+++ b/services/network/network_context.cc
|
+++ b/services/network/network_context.cc
|
||||||
@@ -165,6 +165,11 @@
|
@@ -166,6 +166,11 @@
|
||||||
#include "services/network/web_transport.h"
|
#include "services/network/web_transport.h"
|
||||||
#include "url/gurl.h"
|
#include "url/gurl.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ index a5fa5553641c2be3a3e73e362f89dd3defd90947..7721b8e827d9aac6e90ddfe3de264f41
|
||||||
#if BUILDFLAG(IS_CT_SUPPORTED)
|
#if BUILDFLAG(IS_CT_SUPPORTED)
|
||||||
// gn check does not account for BUILDFLAG(). So, for iOS builds, it will
|
// gn check does not account for BUILDFLAG(). So, for iOS builds, it will
|
||||||
// complain about a missing dependency on the target exposing this header. Add a
|
// complain about a missing dependency on the target exposing this header. Add a
|
||||||
@@ -620,6 +625,111 @@ void RecordHSTSPreconnectUpgradeReason(HSTSRedirectUpgradeReason reason) {
|
@@ -621,6 +626,111 @@ void RecordHSTSPreconnectUpgradeReason(HSTSRedirectUpgradeReason reason) {
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ index a5fa5553641c2be3a3e73e362f89dd3defd90947..7721b8e827d9aac6e90ddfe3de264f41
|
||||||
constexpr uint32_t NetworkContext::kMaxOutstandingRequestsPerProcess;
|
constexpr uint32_t NetworkContext::kMaxOutstandingRequestsPerProcess;
|
||||||
|
|
||||||
NetworkContext::NetworkContextHttpAuthPreferences::
|
NetworkContext::NetworkContextHttpAuthPreferences::
|
||||||
@@ -1023,6 +1133,13 @@ void NetworkContext::SetClient(
|
@@ -1021,6 +1131,13 @@ void NetworkContext::SetClient(
|
||||||
client_.Bind(std::move(client));
|
client_.Bind(std::move(client));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ index a5fa5553641c2be3a3e73e362f89dd3defd90947..7721b8e827d9aac6e90ddfe3de264f41
|
||||||
void NetworkContext::CreateURLLoaderFactory(
|
void NetworkContext::CreateURLLoaderFactory(
|
||||||
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
|
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
|
||||||
mojom::URLLoaderFactoryParamsPtr params) {
|
mojom::URLLoaderFactoryParamsPtr params) {
|
||||||
@@ -2660,6 +2777,10 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext(
|
@@ -2662,6 +2779,10 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext(
|
||||||
cert_verifier = std::make_unique<net::CachingCertVerifier>(
|
cert_verifier = std::make_unique<net::CachingCertVerifier>(
|
||||||
std::make_unique<net::CoalescingCertVerifier>(
|
std::make_unique<net::CoalescingCertVerifier>(
|
||||||
std::move(cert_verifier)));
|
std::move(cert_verifier)));
|
||||||
|
@ -160,10 +160,10 @@ index a5fa5553641c2be3a3e73e362f89dd3defd90947..7721b8e827d9aac6e90ddfe3de264f41
|
||||||
|
|
||||||
builder.SetCertVerifier(IgnoreErrorsCertVerifier::MaybeWrapCertVerifier(
|
builder.SetCertVerifier(IgnoreErrorsCertVerifier::MaybeWrapCertVerifier(
|
||||||
diff --git a/services/network/network_context.h b/services/network/network_context.h
|
diff --git a/services/network/network_context.h b/services/network/network_context.h
|
||||||
index 6a60953f3b51dcfdfed8cf6516846c915a583e0b..b9f201ccf04433a29083cd15cfe599fe9600c9c0 100644
|
index c8d877b36343d10b0ba7fe75f15ee91851e43f59..f7831633a286f7c4aec2dd269b02561275b008c7 100644
|
||||||
--- a/services/network/network_context.h
|
--- a/services/network/network_context.h
|
||||||
+++ b/services/network/network_context.h
|
+++ b/services/network/network_context.h
|
||||||
@@ -115,6 +115,7 @@ class URLMatcher;
|
@@ -117,6 +117,7 @@ class URLMatcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace network {
|
namespace network {
|
||||||
|
@ -171,7 +171,7 @@ index 6a60953f3b51dcfdfed8cf6516846c915a583e0b..b9f201ccf04433a29083cd15cfe599fe
|
||||||
class CookieManager;
|
class CookieManager;
|
||||||
class HostResolver;
|
class HostResolver;
|
||||||
class MdnsResponderManager;
|
class MdnsResponderManager;
|
||||||
@@ -252,6 +253,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
@@ -254,6 +255,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
||||||
void CreateURLLoaderFactory(
|
void CreateURLLoaderFactory(
|
||||||
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
|
mojo::PendingReceiver<mojom::URLLoaderFactory> receiver,
|
||||||
mojom::URLLoaderFactoryParamsPtr params) override;
|
mojom::URLLoaderFactoryParamsPtr params) override;
|
||||||
|
@ -180,7 +180,7 @@ index 6a60953f3b51dcfdfed8cf6516846c915a583e0b..b9f201ccf04433a29083cd15cfe599fe
|
||||||
void ResetURLLoaderFactories() override;
|
void ResetURLLoaderFactories() override;
|
||||||
void GetViaObliviousHttp(
|
void GetViaObliviousHttp(
|
||||||
mojom::ObliviousHttpRequestPtr request,
|
mojom::ObliviousHttpRequestPtr request,
|
||||||
@@ -971,6 +974,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
@@ -987,6 +990,8 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) NetworkContext
|
||||||
std::vector<base::OnceClosure> dismount_closures_;
|
std::vector<base::OnceClosure> dismount_closures_;
|
||||||
#endif // BUILDFLAG(IS_DIRECTORY_TRANSFER_REQUIRED)
|
#endif // BUILDFLAG(IS_DIRECTORY_TRANSFER_REQUIRED)
|
||||||
|
|
||||||
|
@ -190,10 +190,10 @@ index 6a60953f3b51dcfdfed8cf6516846c915a583e0b..b9f201ccf04433a29083cd15cfe599fe
|
||||||
std::unique_ptr<HostResolver> internal_host_resolver_;
|
std::unique_ptr<HostResolver> internal_host_resolver_;
|
||||||
std::set<std::unique_ptr<HostResolver>, base::UniquePtrComparator>
|
std::set<std::unique_ptr<HostResolver>, base::UniquePtrComparator>
|
||||||
diff --git a/services/network/public/mojom/network_context.mojom b/services/network/public/mojom/network_context.mojom
|
diff --git a/services/network/public/mojom/network_context.mojom b/services/network/public/mojom/network_context.mojom
|
||||||
index 5986f8444e582ea0571590060dbcddbe366df74d..1ed66c3b41e583745c5b309670fc4470fa1983cf 100644
|
index a28ff5cd43ef84d3b0d24d2828b7fdad628f8d27..6885ff48db5ddfb8e8ec09e91a4c01231261f8e5 100644
|
||||||
--- a/services/network/public/mojom/network_context.mojom
|
--- a/services/network/public/mojom/network_context.mojom
|
||||||
+++ b/services/network/public/mojom/network_context.mojom
|
+++ b/services/network/public/mojom/network_context.mojom
|
||||||
@@ -315,6 +315,17 @@ struct SocketBrokerRemotes {
|
@@ -317,6 +317,17 @@ struct SocketBrokerRemotes {
|
||||||
pending_remote<SocketBroker> server;
|
pending_remote<SocketBroker> server;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ index 5986f8444e582ea0571590060dbcddbe366df74d..1ed66c3b41e583745c5b309670fc4470
|
||||||
// Parameters for constructing a network context.
|
// Parameters for constructing a network context.
|
||||||
struct NetworkContextParams {
|
struct NetworkContextParams {
|
||||||
// The user agent string.
|
// The user agent string.
|
||||||
@@ -967,6 +978,9 @@ interface NetworkContext {
|
@@ -985,6 +996,9 @@ interface NetworkContext {
|
||||||
// Sets a client for this network context.
|
// Sets a client for this network context.
|
||||||
SetClient(pending_remote<NetworkContextClient> client);
|
SetClient(pending_remote<NetworkContextClient> client);
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ index 5986f8444e582ea0571590060dbcddbe366df74d..1ed66c3b41e583745c5b309670fc4470
|
||||||
CreateURLLoaderFactory(
|
CreateURLLoaderFactory(
|
||||||
pending_receiver<URLLoaderFactory> url_loader_factory,
|
pending_receiver<URLLoaderFactory> url_loader_factory,
|
||||||
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
diff --git a/services/network/test/test_network_context.h b/services/network/test/test_network_context.h
|
||||||
index 54bfe6a699a5de7641423548a2a4f5de5a582786..70a5ab342a8954354a3d8245d30df9520cfd398d 100644
|
index e0289f9f74fc9e9b4480dd8ecae45fcde66bed61..cfd21ce01b7db6a4912de8e4ce0799825fd27e77 100644
|
||||||
--- a/services/network/test/test_network_context.h
|
--- a/services/network/test/test_network_context.h
|
||||||
+++ b/services/network/test/test_network_context.h
|
+++ b/services/network/test/test_network_context.h
|
||||||
@@ -63,6 +63,8 @@ class TestNetworkContext : public mojom::NetworkContext {
|
@@ -63,6 +63,8 @@ class TestNetworkContext : public mojom::NetworkContext {
|
||||||
|
|
|
@ -133,10 +133,10 @@ index 5be62a3fb27e37f3c1db6b811172f6dfebe18f61..34349f9832fe4b9a3d48db613a789afb
|
||||||
const GURL& document_url,
|
const GURL& document_url,
|
||||||
const WeakDocumentPtr& weak_document_ptr,
|
const WeakDocumentPtr& weak_document_ptr,
|
||||||
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
index d3f53f539544e5206e1c8cf8d3f9f87906630954..c20d6b898f517856efb01e9f504a9dfa967fa3c3 100644
|
index 8e2c92d1cef7f76ec8e2fadb2be7c0e0aa288a15..9d5c6428a0f35d678f8723dd0b959fa34e8fc32c 100644
|
||||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
@@ -2218,7 +2218,7 @@ void RenderProcessHostImpl::CreateNotificationService(
|
@@ -2249,7 +2249,7 @@ void RenderProcessHostImpl::CreateNotificationService(
|
||||||
case RenderProcessHost::NotificationServiceCreatorType::kSharedWorker:
|
case RenderProcessHost::NotificationServiceCreatorType::kSharedWorker:
|
||||||
case RenderProcessHost::NotificationServiceCreatorType::kDedicatedWorker: {
|
case RenderProcessHost::NotificationServiceCreatorType::kDedicatedWorker: {
|
||||||
storage_partition_impl_->GetPlatformNotificationContext()->CreateService(
|
storage_partition_impl_->GetPlatformNotificationContext()->CreateService(
|
||||||
|
@ -145,7 +145,7 @@ index d3f53f539544e5206e1c8cf8d3f9f87906630954..c20d6b898f517856efb01e9f504a9dfa
|
||||||
creator_type, std::move(receiver));
|
creator_type, std::move(receiver));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2226,7 +2226,7 @@ void RenderProcessHostImpl::CreateNotificationService(
|
@@ -2257,7 +2257,7 @@ void RenderProcessHostImpl::CreateNotificationService(
|
||||||
CHECK(rfh);
|
CHECK(rfh);
|
||||||
|
|
||||||
storage_partition_impl_->GetPlatformNotificationContext()->CreateService(
|
storage_partition_impl_->GetPlatformNotificationContext()->CreateService(
|
||||||
|
|
|
@ -11,10 +11,10 @@ For resolving complex conflict please pin @reitowo
|
||||||
For more reason please see: https://crrev.com/c/5465148
|
For more reason please see: https://crrev.com/c/5465148
|
||||||
|
|
||||||
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc b/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc b/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
||||||
index 31543b5b018313d2e5890f599109bd48d7bc5e64..2f4003b0557ae275ee3697062fafb6428f5da010 100644
|
index bb33e469e2d38ee4a23b19acfa52f962a5e9c854..6e83c65334f1ce0134dc4efc1dc40eb7ffed028d 100644
|
||||||
--- a/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
--- a/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
||||||
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_dxgi.cc
|
||||||
@@ -166,7 +166,8 @@ gfx::GpuMemoryBufferHandle GpuMemoryBufferFactoryDXGI::CreateNativeGmbHandle(
|
@@ -152,7 +152,8 @@ gfx::GpuMemoryBufferHandle GpuMemoryBufferFactoryDXGI::CreateNativeGmbHandle(
|
||||||
// so make sure that the usage is one that we support.
|
// so make sure that the usage is one that we support.
|
||||||
DCHECK(usage == gfx::BufferUsage::GPU_READ ||
|
DCHECK(usage == gfx::BufferUsage::GPU_READ ||
|
||||||
usage == gfx::BufferUsage::SCANOUT ||
|
usage == gfx::BufferUsage::SCANOUT ||
|
||||||
|
@ -24,7 +24,7 @@ index 31543b5b018313d2e5890f599109bd48d7bc5e64..2f4003b0557ae275ee3697062fafb642
|
||||||
<< "Incorrect usage, usage=" << gfx::BufferUsageToString(usage);
|
<< "Incorrect usage, usage=" << gfx::BufferUsageToString(usage);
|
||||||
|
|
||||||
D3D11_TEXTURE2D_DESC desc = {
|
D3D11_TEXTURE2D_DESC desc = {
|
||||||
@@ -180,7 +181,9 @@ gfx::GpuMemoryBufferHandle GpuMemoryBufferFactoryDXGI::CreateNativeGmbHandle(
|
@@ -166,7 +167,9 @@ gfx::GpuMemoryBufferHandle GpuMemoryBufferFactoryDXGI::CreateNativeGmbHandle(
|
||||||
D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET,
|
D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET,
|
||||||
0,
|
0,
|
||||||
D3D11_RESOURCE_MISC_SHARED_NTHANDLE |
|
D3D11_RESOURCE_MISC_SHARED_NTHANDLE |
|
||||||
|
|
|
@ -9,7 +9,7 @@ don't get errors for Chrome's generated resources, which are non-existent
|
||||||
because we don't generate them in our build.
|
because we don't generate them in our build.
|
||||||
|
|
||||||
diff --git a/chrome/browser/ui/views/overlay/close_image_button.cc b/chrome/browser/ui/views/overlay/close_image_button.cc
|
diff --git a/chrome/browser/ui/views/overlay/close_image_button.cc b/chrome/browser/ui/views/overlay/close_image_button.cc
|
||||||
index 8168b4cfbafd42fa93a5aa9a3691c2552fabfb86..ba49212bd76d209f99c1cee649fc1466215a13c1 100644
|
index 85df555841ac0d32d2f097547c9991cecf0f4b1a..7a108339448fad3105e87c9d9af678c2f85b8ed5 100644
|
||||||
--- a/chrome/browser/ui/views/overlay/close_image_button.cc
|
--- a/chrome/browser/ui/views/overlay/close_image_button.cc
|
||||||
+++ b/chrome/browser/ui/views/overlay/close_image_button.cc
|
+++ b/chrome/browser/ui/views/overlay/close_image_button.cc
|
||||||
@@ -5,9 +5,12 @@
|
@@ -5,9 +5,12 @@
|
||||||
|
@ -22,10 +22,10 @@ index 8168b4cfbafd42fa93a5aa9a3691c2552fabfb86..ba49212bd76d209f99c1cee649fc1466
|
||||||
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||||
#include "components/vector_icons/vector_icons.h"
|
#include "components/vector_icons/vector_icons.h"
|
||||||
+#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
+#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||||
#include "media/base/media_switches.h"
|
|
||||||
#include "ui/base/l10n/l10n_util.h"
|
#include "ui/base/l10n/l10n_util.h"
|
||||||
#include "ui/base/metadata/metadata_impl_macros.h"
|
#include "ui/base/metadata/metadata_impl_macros.h"
|
||||||
@@ -29,7 +32,10 @@ CloseImageButton::CloseImageButton(PressedCallback callback)
|
#include "ui/base/models/image_model.h"
|
||||||
|
@@ -28,7 +31,10 @@ CloseImageButton::CloseImageButton(PressedCallback callback)
|
||||||
: OverlayWindowImageButton(std::move(callback)) {
|
: OverlayWindowImageButton(std::move(callback)) {
|
||||||
SetSize(gfx::Size(kCloseButtonSize, kCloseButtonSize));
|
SetSize(gfx::Size(kCloseButtonSize, kCloseButtonSize));
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ index 8168b4cfbafd42fa93a5aa9a3691c2552fabfb86..ba49212bd76d209f99c1cee649fc1466
|
||||||
ui::ImageModel::FromVectorIcon(*icon, kColorPipWindowForeground,
|
ui::ImageModel::FromVectorIcon(*icon, kColorPipWindowForeground,
|
||||||
kCloseButtonIconSize));
|
kCloseButtonIconSize));
|
||||||
diff --git a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
diff --git a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
index 937c84308a2894e2abaaec3f068be0ba1741e448..489d68b6452a4814f4cba1e65ab036629583f5b5 100644
|
index fcb7d2c18f39acb174fc456362de51c484de398c..fea71317b41429dd3bbd50947673124f7c230394 100644
|
||||||
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
|
||||||
@@ -18,12 +18,16 @@
|
@@ -18,12 +18,16 @@
|
||||||
|
@ -76,7 +76,7 @@ index 937c84308a2894e2abaaec3f068be0ba1741e448..489d68b6452a4814f4cba1e65ab03662
|
||||||
std::wstring app_user_model_id;
|
std::wstring app_user_model_id;
|
||||||
Browser* browser = chrome::FindBrowserWithTab(controller->GetWebContents());
|
Browser* browser = chrome::FindBrowserWithTab(controller->GetWebContents());
|
||||||
if (browser) {
|
if (browser) {
|
||||||
@@ -1247,11 +1251,13 @@ void VideoOverlayWindowViews::SetUpViews() {
|
@@ -1270,11 +1274,13 @@ void VideoOverlayWindowViews::SetUpViews() {
|
||||||
&VideoOverlayWindowViews::OnLiveCaptionButtonPressed,
|
&VideoOverlayWindowViews::OnLiveCaptionButtonPressed,
|
||||||
base::Unretained(this)));
|
base::Unretained(this)));
|
||||||
live_caption_button->SetSize(kActionButtonSize);
|
live_caption_button->SetSize(kActionButtonSize);
|
||||||
|
@ -90,7 +90,7 @@ index 937c84308a2894e2abaaec3f068be0ba1741e448..489d68b6452a4814f4cba1e65ab03662
|
||||||
toggle_microphone_button =
|
toggle_microphone_button =
|
||||||
std::make_unique<ToggleMicrophoneButton>(base::BindRepeating(
|
std::make_unique<ToggleMicrophoneButton>(base::BindRepeating(
|
||||||
[](VideoOverlayWindowViews* overlay) {
|
[](VideoOverlayWindowViews* overlay) {
|
||||||
@@ -2541,6 +2547,7 @@ gfx::Rect VideoOverlayWindowViews::GetLiveCaptionDialogBounds() {
|
@@ -2561,6 +2567,7 @@ gfx::Rect VideoOverlayWindowViews::GetLiveCaptionDialogBounds() {
|
||||||
|
|
||||||
bool VideoOverlayWindowViews::HasHighMediaEngagement(
|
bool VideoOverlayWindowViews::HasHighMediaEngagement(
|
||||||
const url::Origin& origin) const {
|
const url::Origin& origin) const {
|
||||||
|
@ -98,7 +98,7 @@ index 937c84308a2894e2abaaec3f068be0ba1741e448..489d68b6452a4814f4cba1e65ab03662
|
||||||
MediaEngagementService* service =
|
MediaEngagementService* service =
|
||||||
MediaEngagementService::Get(Profile::FromBrowserContext(
|
MediaEngagementService::Get(Profile::FromBrowserContext(
|
||||||
GetController()->GetWebContents()->GetBrowserContext()));
|
GetController()->GetWebContents()->GetBrowserContext()));
|
||||||
@@ -2549,6 +2556,8 @@ bool VideoOverlayWindowViews::HasHighMediaEngagement(
|
@@ -2569,6 +2576,8 @@ bool VideoOverlayWindowViews::HasHighMediaEngagement(
|
||||||
}
|
}
|
||||||
|
|
||||||
return service->HasHighEngagement(origin);
|
return service->HasHighEngagement(origin);
|
||||||
|
|
|
@ -8,7 +8,7 @@ needed in chromium but our autofill implementation uses them. This patch can be
|
||||||
our autofill implementation to work like Chromium's.
|
our autofill implementation to work like Chromium's.
|
||||||
|
|
||||||
diff --git a/ui/color/color_id.h b/ui/color/color_id.h
|
diff --git a/ui/color/color_id.h b/ui/color/color_id.h
|
||||||
index 8308dd53c198e4e3c7fe08fd6115b0ed53cf466c..e3323e4c4ff4f96ce235511a38e4e2d8cbb701c0 100644
|
index b6fe461a04dfabab9b114b4a0c0c6cc08718cdaf..e57d928023a2defe5c2586aa6bd8385be6687f99 100644
|
||||||
--- a/ui/color/color_id.h
|
--- a/ui/color/color_id.h
|
||||||
+++ b/ui/color/color_id.h
|
+++ b/ui/color/color_id.h
|
||||||
@@ -431,6 +431,10 @@
|
@@ -431,6 +431,10 @@
|
||||||
|
@ -61,10 +61,10 @@ index f606d2a058ed9ebf86b5f020b6897be718a40b68..003e95ca8bb6364fb6b937871b2c78b9
|
||||||
? SkColorSetRGB(0x99, 0xC8, 0xFF)
|
? SkColorSetRGB(0x99, 0xC8, 0xFF)
|
||||||
: SkColorSetRGB(0x00, 0x75, 0xFF)};
|
: SkColorSetRGB(0x00, 0x75, 0xFF)};
|
||||||
diff --git a/ui/color/win/native_color_mixers_win.cc b/ui/color/win/native_color_mixers_win.cc
|
diff --git a/ui/color/win/native_color_mixers_win.cc b/ui/color/win/native_color_mixers_win.cc
|
||||||
index ebc3156ef1df8bfc9bc6e20ddddea4a0259e17e9..c5cbe13ad241564ecdef320de8a10112cda4cdfc 100644
|
index 179dc53711ed96421a66cb6c1651983af5f49c6a..686661965ebb56d2de7ff5279669491d95f81cca 100644
|
||||||
--- a/ui/color/win/native_color_mixers_win.cc
|
--- a/ui/color/win/native_color_mixers_win.cc
|
||||||
+++ b/ui/color/win/native_color_mixers_win.cc
|
+++ b/ui/color/win/native_color_mixers_win.cc
|
||||||
@@ -171,6 +171,10 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
@@ -146,6 +146,10 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
||||||
SetAlpha(kColorNotificationInputForeground, gfx::kGoogleGreyAlpha700);
|
SetAlpha(kColorNotificationInputForeground, gfx::kGoogleGreyAlpha700);
|
||||||
mixer[kColorSliderTrack] = AlphaBlend(
|
mixer[kColorSliderTrack] = AlphaBlend(
|
||||||
kColorNativeHighlight, kColorNativeWindow, gfx::kGoogleGreyAlpha400);
|
kColorNativeHighlight, kColorNativeWindow, gfx::kGoogleGreyAlpha400);
|
||||||
|
@ -75,7 +75,7 @@ index ebc3156ef1df8bfc9bc6e20ddddea4a0259e17e9..c5cbe13ad241564ecdef320de8a10112
|
||||||
|
|
||||||
// Window Background
|
// Window Background
|
||||||
mixer[kColorBubbleFooterBackground] = {kColorNativeWindow};
|
mixer[kColorBubbleFooterBackground] = {kColorNativeWindow};
|
||||||
@@ -179,6 +183,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
@@ -154,6 +158,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
||||||
mixer[kColorFrameInactive] = {kColorNativeWindow};
|
mixer[kColorFrameInactive] = {kColorNativeWindow};
|
||||||
mixer[kColorPrimaryBackground] = {kColorNativeWindow};
|
mixer[kColorPrimaryBackground] = {kColorNativeWindow};
|
||||||
mixer[kColorTooltipBackground] = {kColorNativeWindow};
|
mixer[kColorTooltipBackground] = {kColorNativeWindow};
|
||||||
|
@ -83,7 +83,7 @@ index ebc3156ef1df8bfc9bc6e20ddddea4a0259e17e9..c5cbe13ad241564ecdef320de8a10112
|
||||||
|
|
||||||
// Window Text
|
// Window Text
|
||||||
mixer[kColorAlertLowSeverity] = {kColorNativeWindowText};
|
mixer[kColorAlertLowSeverity] = {kColorNativeWindowText};
|
||||||
@@ -192,6 +197,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
@@ -167,6 +172,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
||||||
mixer[kColorTableGroupingIndicator] = {kColorNativeWindowText};
|
mixer[kColorTableGroupingIndicator] = {kColorNativeWindowText};
|
||||||
mixer[kColorThrobber] = {kColorNativeWindowText};
|
mixer[kColorThrobber] = {kColorNativeWindowText};
|
||||||
mixer[kColorTooltipForeground] = {kColorNativeWindowText};
|
mixer[kColorTooltipForeground] = {kColorNativeWindowText};
|
||||||
|
@ -91,7 +91,7 @@ index ebc3156ef1df8bfc9bc6e20ddddea4a0259e17e9..c5cbe13ad241564ecdef320de8a10112
|
||||||
|
|
||||||
// Hyperlinks
|
// Hyperlinks
|
||||||
mixer[kColorLinkForegroundDefault] = {kColorNativeHotlight};
|
mixer[kColorLinkForegroundDefault] = {kColorNativeHotlight};
|
||||||
@@ -234,6 +240,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
@@ -209,6 +215,7 @@ void AddNativeUiColorMixer(ColorProvider* provider,
|
||||||
mixer[kColorTextfieldForeground] = {kColorNativeBtnText};
|
mixer[kColorTextfieldForeground] = {kColorNativeBtnText};
|
||||||
mixer[kColorTextfieldForegroundPlaceholder] = {kColorNativeBtnText};
|
mixer[kColorTextfieldForegroundPlaceholder] = {kColorNativeBtnText};
|
||||||
mixer[kColorTextfieldForegroundDisabled] = {kColorNativeBtnText};
|
mixer[kColorTextfieldForegroundDisabled] = {kColorNativeBtnText};
|
||||||
|
|
|
@ -8,7 +8,7 @@ Chrome moved the SetCursor IPC message to mojo, which we use to tell OSR about `
|
||||||
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2172779
|
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2172779
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
index 18c6ee6657e5edb5e90102dd9a20e5c0efeed843..af763ad4e441e54556854cd40c4cb9098f84bb58 100644
|
index 27b51f78f4676071a8fdc2340f650cb7df1d883b..7db3a07ff9e0f52f1232c25f8e4e72d3c299e623 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_delegate.h
|
--- a/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
@@ -27,6 +27,7 @@
|
@@ -27,6 +27,7 @@
|
||||||
|
@ -19,7 +19,7 @@ index 18c6ee6657e5edb5e90102dd9a20e5c0efeed843..af763ad4e441e54556854cd40c4cb909
|
||||||
#include "ui/gfx/native_widget_types.h"
|
#include "ui/gfx/native_widget_types.h"
|
||||||
|
|
||||||
namespace blink {
|
namespace blink {
|
||||||
@@ -299,6 +300,9 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
@@ -293,6 +294,9 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
||||||
// Returns the associated RenderViewHostDelegateView*, if possible.
|
// Returns the associated RenderViewHostDelegateView*, if possible.
|
||||||
virtual RenderViewHostDelegateView* GetDelegateView();
|
virtual RenderViewHostDelegateView* GetDelegateView();
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@ index 18c6ee6657e5edb5e90102dd9a20e5c0efeed843..af763ad4e441e54556854cd40c4cb909
|
||||||
// RenderWidgetHost on the primary main frame, and false otherwise.
|
// RenderWidgetHost on the primary main frame, and false otherwise.
|
||||||
virtual bool IsWidgetForPrimaryMainFrame(RenderWidgetHostImpl*);
|
virtual bool IsWidgetForPrimaryMainFrame(RenderWidgetHostImpl*);
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
index e8baae79ab127e4626f39247a5e57fe6a6114453..8073bdba33d6ddbc0306e8e9256b36cd87537eca 100644
|
index 27131371845a81c0af16d59334a98656095f4aeb..9cccc151a7c1b7d11a88545e168fd878276a91ea 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
@@ -2083,6 +2083,9 @@ void RenderWidgetHostImpl::SetCursor(const ui::Cursor& cursor) {
|
@@ -2079,6 +2079,9 @@ void RenderWidgetHostImpl::SetCursor(const ui::Cursor& cursor) {
|
||||||
if (view_) {
|
if (view_) {
|
||||||
view_->UpdateCursor(cursor);
|
view_->UpdateCursor(cursor);
|
||||||
}
|
}
|
||||||
|
@ -44,10 +44,10 @@ index e8baae79ab127e4626f39247a5e57fe6a6114453..8073bdba33d6ddbc0306e8e9256b36cd
|
||||||
|
|
||||||
void RenderWidgetHostImpl::ShowContextMenuAtPoint(
|
void RenderWidgetHostImpl::ShowContextMenuAtPoint(
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 5e35d7af2bcf9078887f4e2658e3f067f3b4f1b7..95ea7eb743ae3e4de52741be7f2969bbf86d8a29 100644
|
index 7a6760e0efdf6972eb497407b68202c5bfffd006..4e2e910c62534106209758a0e5aeb329cfbaa529 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -6116,6 +6116,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() {
|
@@ -6110,6 +6110,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() {
|
||||||
return text_input_manager_.get();
|
return text_input_manager_.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,10 +60,10 @@ index 5e35d7af2bcf9078887f4e2658e3f067f3b4f1b7..95ea7eb743ae3e4de52741be7f2969bb
|
||||||
RenderWidgetHostImpl* render_widget_host) {
|
RenderWidgetHostImpl* render_widget_host) {
|
||||||
return render_widget_host == GetPrimaryMainFrame()->GetRenderWidgetHost();
|
return render_widget_host == GetPrimaryMainFrame()->GetRenderWidgetHost();
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
||||||
index 8ae956ce13ae0be1436875228bc5f2915caf9f91..aff1ff3112b2d52f5e111fe7343aca2d59165e64 100644
|
index 8bad6ba62f98732676920f334c49fe46aad42bf2..9dfd229af26127dee8e21c77fcedef5285f3aafa 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.h
|
--- a/content/browser/web_contents/web_contents_impl.h
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.h
|
+++ b/content/browser/web_contents/web_contents_impl.h
|
||||||
@@ -1176,6 +1176,7 @@ class CONTENT_EXPORT WebContentsImpl
|
@@ -1178,6 +1178,7 @@ class CONTENT_EXPORT WebContentsImpl
|
||||||
void SendScreenRects() override;
|
void SendScreenRects() override;
|
||||||
void SendActiveState(bool active) override;
|
void SendActiveState(bool active) override;
|
||||||
TextInputManager* GetTextInputManager() override;
|
TextInputManager* GetTextInputManager() override;
|
||||||
|
|
|
@ -8,10 +8,10 @@ it in Electron and prevent drift from Chrome's blocklist. We should look for a w
|
||||||
to upstream this change to Chrome.
|
to upstream this change to Chrome.
|
||||||
|
|
||||||
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
||||||
index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333fc01c4ee 100644
|
index 570d768d017bdf235c31d919a9308e3c0e7390f0..7c930cf3b149410e2a5f9a93e666cf765e0fabc6 100644
|
||||||
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
||||||
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
||||||
@@ -82,11 +82,13 @@
|
@@ -84,11 +84,13 @@
|
||||||
#include "chrome/browser/ui/browser_window.h"
|
#include "chrome/browser/ui/browser_window.h"
|
||||||
#include "chrome/browser/ui/tabs/public/tab_features.h"
|
#include "chrome/browser/ui/tabs/public/tab_features.h"
|
||||||
#include "chrome/browser/ui/views/file_system_access/file_system_access_page_action_controller.h"
|
#include "chrome/browser/ui/views/file_system_access/file_system_access_page_action_controller.h"
|
||||||
|
@ -25,7 +25,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
#include "components/tabs/public/tab_interface.h"
|
#include "components/tabs/public/tab_interface.h"
|
||||||
#if BUILDFLAG(ENABLE_PLATFORM_APPS)
|
#if BUILDFLAG(ENABLE_PLATFORM_APPS)
|
||||||
#include "extensions/browser/extension_registry.h" // nogncheck
|
#include "extensions/browser/extension_registry.h" // nogncheck
|
||||||
@@ -262,190 +264,10 @@ bool MaybeIsLocalUNCPath(const base::FilePath& path) {
|
@@ -264,190 +266,10 @@ bool MaybeIsLocalUNCPath(const base::FilePath& path) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
|
|
||||||
// Checks if `path` should be blocked by the `rules`.
|
// Checks if `path` should be blocked by the `rules`.
|
||||||
// The BlockType of the nearest ancestor of a path to check is what
|
// The BlockType of the nearest ancestor of a path to check is what
|
||||||
@@ -1271,16 +1093,6 @@ struct ChromeFileSystemAccessPermissionContext::OriginState {
|
@@ -1362,16 +1184,6 @@ struct ChromeFileSystemAccessPermissionContext::OriginState {
|
||||||
std::unique_ptr<base::RetainingOneShotTimer> cleanup_timer;
|
std::unique_ptr<base::RetainingOneShotTimer> cleanup_timer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
ChromeFileSystemAccessPermissionContext::
|
ChromeFileSystemAccessPermissionContext::
|
||||||
ChromeFileSystemAccessPermissionContext(content::BrowserContext* context,
|
ChromeFileSystemAccessPermissionContext(content::BrowserContext* context,
|
||||||
const base::Clock* clock)
|
const base::Clock* clock)
|
||||||
@@ -1299,7 +1111,7 @@ ChromeFileSystemAccessPermissionContext::
|
@@ -1390,7 +1202,7 @@ ChromeFileSystemAccessPermissionContext::
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if BUILDFLAG(IS_ANDROID)
|
||||||
one_time_permissions_tracker_.Observe(
|
one_time_permissions_tracker_.Observe(
|
||||||
OneTimePermissionsTrackerFactory::GetForBrowserContext(context));
|
OneTimePermissionsTrackerFactory::GetForBrowserContext(context));
|
||||||
|
@ -246,7 +246,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
auto* provider = web_app::WebAppProvider::GetForWebApps(
|
auto* provider = web_app::WebAppProvider::GetForWebApps(
|
||||||
Profile::FromBrowserContext(profile_));
|
Profile::FromBrowserContext(profile_));
|
||||||
if (provider) {
|
if (provider) {
|
||||||
@@ -2566,7 +2378,7 @@ void ChromeFileSystemAccessPermissionContext::OnShutdown() {
|
@@ -2775,7 +2587,7 @@ void ChromeFileSystemAccessPermissionContext::OnShutdown() {
|
||||||
one_time_permissions_tracker_.Reset();
|
one_time_permissions_tracker_.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
void ChromeFileSystemAccessPermissionContext::OnWebAppInstalled(
|
void ChromeFileSystemAccessPermissionContext::OnWebAppInstalled(
|
||||||
const webapps::AppId& app_id) {
|
const webapps::AppId& app_id) {
|
||||||
if (!base::FeatureList::IsEnabled(
|
if (!base::FeatureList::IsEnabled(
|
||||||
@@ -2901,11 +2713,7 @@ bool ChromeFileSystemAccessPermissionContext::
|
@@ -3110,11 +2922,7 @@ bool ChromeFileSystemAccessPermissionContext::
|
||||||
HandleType handle_type,
|
HandleType handle_type,
|
||||||
UserAction user_action,
|
UserAction user_action,
|
||||||
GrantType grant_type) {
|
GrantType grant_type) {
|
||||||
|
@ -268,7 +268,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
if (!base::FeatureList::IsEnabled(
|
if (!base::FeatureList::IsEnabled(
|
||||||
features::kFileSystemAccessPersistentPermissions)) {
|
features::kFileSystemAccessPersistentPermissions)) {
|
||||||
return false;
|
return false;
|
||||||
@@ -2956,6 +2764,7 @@ bool ChromeFileSystemAccessPermissionContext::
|
@@ -3165,6 +2973,7 @@ bool ChromeFileSystemAccessPermissionContext::
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
#endif // BUILDFLAG(IS_ANDROID)
|
#endif // BUILDFLAG(IS_ANDROID)
|
||||||
|
@ -277,7 +277,7 @@ index 7611ba742de5b11c5a1f43c2e18d78cb01c9562f..640076ba6fc15637e53e1126db4f5333
|
||||||
|
|
||||||
std::vector<FileRequestData> ChromeFileSystemAccessPermissionContext::
|
std::vector<FileRequestData> ChromeFileSystemAccessPermissionContext::
|
||||||
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
||||||
index 51bec8ef2a5212494625898fdeb500344525d8f4..6deb4b86b35c2ba38849e25af7691ac858dfaa3e 100644
|
index c026a5ac558d3570c8d893943f93a5833c16ccd2..4a9bc924e609066086812bc1002258b6ce586c14 100644
|
||||||
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
||||||
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
|
||||||
@@ -9,10 +9,13 @@
|
@@ -9,10 +9,13 @@
|
||||||
|
@ -302,9 +302,9 @@ index 51bec8ef2a5212494625898fdeb500344525d8f4..6deb4b86b35c2ba38849e25af7691ac8
|
||||||
#include "components/enterprise/buildflags/buildflags.h"
|
#include "components/enterprise/buildflags/buildflags.h"
|
||||||
#include "components/permissions/features.h"
|
#include "components/permissions/features.h"
|
||||||
#include "components/permissions/object_permission_context_base.h"
|
#include "components/permissions/object_permission_context_base.h"
|
||||||
@@ -403,6 +407,191 @@ class ChromeFileSystemAccessPermissionContext
|
@@ -419,6 +423,191 @@ class ChromeFileSystemAccessPermissionContext
|
||||||
return is_block_path_rules_init_complete_;
|
bool IsPathInDowngradedReadPathsForTesting(const url::Origin& origin,
|
||||||
}
|
const base::FilePath& path);
|
||||||
|
|
||||||
+ // Sentinel used to indicate that no PathService key is specified for a path in
|
+ // Sentinel used to indicate that no PathService key is specified for a path in
|
||||||
+ // the struct below.
|
+ // the struct below.
|
||||||
|
|
|
@ -7,10 +7,10 @@ Subject: refactor: expose HostImportModuleDynamically and
|
||||||
This is so that Electron can blend Blink's and Node's implementations of these isolate handlers.
|
This is so that Electron can blend Blink's and Node's implementations of these isolate handlers.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
index d7a222d99389ae8f826080ae31321043e75b3fc9..9b31bf1176e72b69468244a1a4be24ab5878c74a 100644
|
index 1fac8bc97292767149887ff77ebb425124a77f95..2137de2f69cec918c5651292cd79c0ad26a86ae9 100644
|
||||||
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
@@ -645,8 +645,9 @@ bool WasmJSPromiseIntegrationEnabledCallback(v8::Local<v8::Context> context) {
|
@@ -644,8 +644,9 @@ bool WasmJSPromiseIntegrationEnabledCallback(v8::Local<v8::Context> context) {
|
||||||
return RuntimeEnabledFeatures::WebAssemblyJSPromiseIntegrationEnabled(
|
return RuntimeEnabledFeatures::WebAssemblyJSPromiseIntegrationEnabled(
|
||||||
execution_context);
|
execution_context);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ index d7a222d99389ae8f826080ae31321043e75b3fc9..9b31bf1176e72b69468244a1a4be24ab
|
||||||
v8::Local<v8::Context> context,
|
v8::Local<v8::Context> context,
|
||||||
v8::Local<v8::Data> v8_host_defined_options,
|
v8::Local<v8::Data> v8_host_defined_options,
|
||||||
v8::Local<v8::Value> v8_referrer_resource_url,
|
v8::Local<v8::Value> v8_referrer_resource_url,
|
||||||
@@ -724,20 +725,23 @@ v8::MaybeLocal<v8::Promise> HostImportModuleWithPhaseDynamically(
|
@@ -723,20 +724,23 @@ v8::MaybeLocal<v8::Promise> HostImportModuleWithPhaseDynamically(
|
||||||
|
|
||||||
return resolver->Promise().V8Promise();
|
return resolver->Promise().V8Promise();
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ index d7a222d99389ae8f826080ae31321043e75b3fc9..9b31bf1176e72b69468244a1a4be24ab
|
||||||
v8::Local<v8::Module> module,
|
v8::Local<v8::Module> module,
|
||||||
v8::Local<v8::Object> meta) {
|
v8::Local<v8::Object> meta) {
|
||||||
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
||||||
@@ -764,6 +768,7 @@ void HostGetImportMetaProperties(v8::Local<v8::Context> context,
|
@@ -763,6 +767,7 @@ void HostGetImportMetaProperties(v8::Local<v8::Context> context,
|
||||||
meta->CreateDataProperty(context, resolve_key, resolve_value).ToChecked();
|
meta->CreateDataProperty(context, resolve_key, resolve_value).ToChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ index d7a222d99389ae8f826080ae31321043e75b3fc9..9b31bf1176e72b69468244a1a4be24ab
|
||||||
bool IsDOMExceptionWrapper(v8::Isolate* isolate, v8::Local<v8::Object> object) {
|
bool IsDOMExceptionWrapper(v8::Isolate* isolate, v8::Local<v8::Object> object) {
|
||||||
return V8DOMException::HasInstance(isolate, object);
|
return V8DOMException::HasInstance(isolate, object);
|
||||||
}
|
}
|
||||||
@@ -794,7 +799,6 @@ void EmitDevToolsEvent(v8::Isolate* isolate) {
|
@@ -793,7 +798,6 @@ void EmitDevToolsEvent(v8::Isolate* isolate) {
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ index d7a222d99389ae8f826080ae31321043e75b3fc9..9b31bf1176e72b69468244a1a4be24ab
|
||||||
void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
||||||
// Set up garbage collection before setting up anything else as V8 may trigger
|
// Set up garbage collection before setting up anything else as V8 may trigger
|
||||||
// GCs during Blink setup.
|
// GCs during Blink setup.
|
||||||
@@ -811,9 +815,9 @@ void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
@@ -810,9 +814,9 @@ void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
||||||
SharedArrayBufferConstructorEnabledCallback);
|
SharedArrayBufferConstructorEnabledCallback);
|
||||||
isolate->SetHostImportModuleDynamicallyCallback(HostImportModuleDynamically);
|
isolate->SetHostImportModuleDynamicallyCallback(HostImportModuleDynamically);
|
||||||
isolate->SetHostImportModuleWithPhaseDynamicallyCallback(
|
isolate->SetHostImportModuleWithPhaseDynamicallyCallback(
|
||||||
|
|
|
@ -6,7 +6,7 @@ Subject: refactor: patch electron PermissionTypes into blink
|
||||||
6387077: [PermissionOptions] Generalize PermissionRequestDescription | https://chromium-review.googlesource.com/c/chromium/src/+/6387077
|
6387077: [PermissionOptions] Generalize PermissionRequestDescription | https://chromium-review.googlesource.com/c/chromium/src/+/6387077
|
||||||
|
|
||||||
diff --git a/components/permissions/permission_util.cc b/components/permissions/permission_util.cc
|
diff --git a/components/permissions/permission_util.cc b/components/permissions/permission_util.cc
|
||||||
index 38134a075fbb3586eec543591c88fcf7dcd53e3d..a65838e017a01c8fbb8cd9afe7e3edcce22bf947 100644
|
index 83b0237a56d5ea7555ae989bd7bd13886f0c8f13..0377c8c0c3a112ec40132b8441747652b0c15870 100644
|
||||||
--- a/components/permissions/permission_util.cc
|
--- a/components/permissions/permission_util.cc
|
||||||
+++ b/components/permissions/permission_util.cc
|
+++ b/components/permissions/permission_util.cc
|
||||||
@@ -536,7 +536,17 @@ ContentSettingsType PermissionUtil::PermissionTypeToContentSettingsTypeSafe(
|
@@ -536,7 +536,17 @@ ContentSettingsType PermissionUtil::PermissionTypeToContentSettingsTypeSafe(
|
||||||
|
@ -28,7 +28,7 @@ index 38134a075fbb3586eec543591c88fcf7dcd53e3d..a65838e017a01c8fbb8cd9afe7e3edcc
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/permissions/permission_controller_impl.cc b/content/browser/permissions/permission_controller_impl.cc
|
diff --git a/content/browser/permissions/permission_controller_impl.cc b/content/browser/permissions/permission_controller_impl.cc
|
||||||
index f6a28f5efae758a93aa52ebd28e25ece996f0e7e..7a6e702126234fa8f09ea5e8eeb3bc67155f76ca 100644
|
index d92f15f9ff1bf8dc23361e668f6d48199540c4e6..aa13c5e85fef3de67e41889b0ea1c751c5144f85 100644
|
||||||
--- a/content/browser/permissions/permission_controller_impl.cc
|
--- a/content/browser/permissions/permission_controller_impl.cc
|
||||||
+++ b/content/browser/permissions/permission_controller_impl.cc
|
+++ b/content/browser/permissions/permission_controller_impl.cc
|
||||||
@@ -88,7 +88,15 @@ PermissionToSchedulingFeature(PermissionType permission_name) {
|
@@ -88,7 +88,15 @@ PermissionToSchedulingFeature(PermissionType permission_name) {
|
||||||
|
|
|
@ -15,10 +15,10 @@ This CL removes these filters so the unresponsive event can still be
|
||||||
accessed from our JS event. The filtering is moved into Electron's code.
|
accessed from our JS event. The filtering is moved into Electron's code.
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index dd274924f1c26efbc9fc3683f69647a0933a9855..35def2ce3af887c8f13f2d55590468397c89c708 100644
|
index 7bda1bd1d7c34e369c27e4ec283888fe4d50458d..7ec8dea94a9f97f0938f57743a35e8de09efb8c9 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -10226,25 +10226,13 @@ void WebContentsImpl::RendererUnresponsive(
|
@@ -10220,25 +10220,13 @@ void WebContentsImpl::RendererUnresponsive(
|
||||||
base::RepeatingClosure hang_monitor_restarter) {
|
base::RepeatingClosure hang_monitor_restarter) {
|
||||||
OPTIONAL_TRACE_EVENT1("content", "WebContentsImpl::RendererUnresponsive",
|
OPTIONAL_TRACE_EVENT1("content", "WebContentsImpl::RendererUnresponsive",
|
||||||
"render_widget_host", render_widget_host);
|
"render_widget_host", render_widget_host);
|
||||||
|
|
|
@ -8,7 +8,7 @@ respond to the first mouse click in their window, which is desirable for some
|
||||||
kinds of utility windows. Similarly for `disableAutoHideCursor`.
|
kinds of utility windows. Similarly for `disableAutoHideCursor`.
|
||||||
|
|
||||||
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
diff --git a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
index 4c2223346b3db6d12585cf8ca9f0fb55dfc327f0..437b47fd3a1a43fd52980ea550db953ba47990eb 100644
|
index b1064aff3a47ee475ccd449bbf89bf419a7d59cc..e5b59a9d364dd5a8f847d9543b19fdc068098754 100644
|
||||||
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
--- a/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
+++ b/content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm
|
||||||
@@ -167,6 +167,15 @@ void ExtractUnderlines(NSAttributedString* string,
|
@@ -167,6 +167,15 @@ void ExtractUnderlines(NSAttributedString* string,
|
||||||
|
|
|
@ -233,7 +233,7 @@ index d8167e854a3264b19a07544039fd01aba45e27a1..2e5a4ae715529e3b7b5c8fbb7195c7ce
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/content/common/features.cc b/content/common/features.cc
|
diff --git a/content/common/features.cc b/content/common/features.cc
|
||||||
index c0723c13069f570206ea6b536b1a41a1200e3d48..fe5b95303d6cf06b99889307930252effdea6e0f 100644
|
index 1ff501a5ea3aa1591957ba6d13b7a264542f5ff9..5cc21f1b1a58df0892491feee5c7042f6ab79951 100644
|
||||||
--- a/content/common/features.cc
|
--- a/content/common/features.cc
|
||||||
+++ b/content/common/features.cc
|
+++ b/content/common/features.cc
|
||||||
@@ -324,6 +324,14 @@ BASE_FEATURE(kIOSurfaceCapturer,
|
@@ -324,6 +324,14 @@ BASE_FEATURE(kIOSurfaceCapturer,
|
||||||
|
@ -252,7 +252,7 @@ index c0723c13069f570206ea6b536b1a41a1200e3d48..fe5b95303d6cf06b99889307930252ef
|
||||||
BASE_FEATURE(kKeepChildProcessAfterIPCReset,
|
BASE_FEATURE(kKeepChildProcessAfterIPCReset,
|
||||||
"KeepChildProcessAfterIPCReset",
|
"KeepChildProcessAfterIPCReset",
|
||||||
diff --git a/content/common/features.h b/content/common/features.h
|
diff --git a/content/common/features.h b/content/common/features.h
|
||||||
index 93017367d5ef77b00a73d849608a7af16fe44527..394ee07b58a9b6021143b2168b1065350420cfca 100644
|
index 5ad549904c7797e770e0ac08c02e60595f387fe9..5dbe417669d8c267c7b7dbcaa7784147bc756e08 100644
|
||||||
--- a/content/common/features.h
|
--- a/content/common/features.h
|
||||||
+++ b/content/common/features.h
|
+++ b/content/common/features.h
|
||||||
@@ -101,6 +101,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan);
|
@@ -101,6 +101,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan);
|
||||||
|
|
|
@ -0,0 +1,119 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Mon, 1 Sep 2025 23:31:49 +0900
|
||||||
|
Subject: Revert: partial "Remove unused PreHandleMouseEvent"
|
||||||
|
|
||||||
|
Refs https://chromium-review.googlesource.com/c/chromium/src/+/6880411
|
||||||
|
|
||||||
|
diff --git a/content/browser/renderer_host/render_widget_host_delegate.cc b/content/browser/renderer_host/render_widget_host_delegate.cc
|
||||||
|
index 74fea36ea7f9a345b3474ea18be00704831a685e..c75785d5a26fa52a39d1a3552da9a7621e4c8430 100644
|
||||||
|
--- a/content/browser/renderer_host/render_widget_host_delegate.cc
|
||||||
|
+++ b/content/browser/renderer_host/render_widget_host_delegate.cc
|
||||||
|
@@ -13,6 +13,11 @@
|
||||||
|
|
||||||
|
namespace content {
|
||||||
|
|
||||||
|
+bool RenderWidgetHostDelegate::PreHandleMouseEvent(
|
||||||
|
+ const blink::WebMouseEvent& event) {
|
||||||
|
+ return false;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
KeyboardEventProcessingResult RenderWidgetHostDelegate::PreHandleKeyboardEvent(
|
||||||
|
const input::NativeWebKeyboardEvent& event) {
|
||||||
|
return KeyboardEventProcessingResult::NOT_HANDLED;
|
||||||
|
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
|
index 7db3a07ff9e0f52f1232c25f8e4e72d3c299e623..af763ad4e441e54556854cd40c4cb9098f84bb58 100644
|
||||||
|
--- a/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
|
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
||||||
|
@@ -103,6 +103,12 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
||||||
|
virtual void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
|
||||||
|
const gfx::Size& new_size) {}
|
||||||
|
|
||||||
|
+ // Callback to give the browser a chance to handle the specified mouse
|
||||||
|
+ // event before sending it to the renderer. Returns true if the event was
|
||||||
|
+ // handled, false otherwise. A true value means no more processing should
|
||||||
|
+ // happen on the event. The default return value is false.
|
||||||
|
+ virtual bool PreHandleMouseEvent(const blink::WebMouseEvent& event);
|
||||||
|
+
|
||||||
|
// Callback to give the browser a chance to handle the specified keyboard
|
||||||
|
// event before sending it to the renderer. See enum for details on return
|
||||||
|
// value.
|
||||||
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
|
index 349d591b0b35421f91e70dde257a726341e94ad9..6b0bbda767d547cf8365a240692904b3c0e50985 100644
|
||||||
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
|
@@ -1595,6 +1595,10 @@ void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo(
|
||||||
|
CHECK_GE(mouse_event.GetType(), WebInputEvent::Type::kMouseTypeFirst);
|
||||||
|
CHECK_LE(mouse_event.GetType(), WebInputEvent::Type::kMouseTypeLast);
|
||||||
|
|
||||||
|
+ if (delegate_ && delegate_->PreHandleMouseEvent(mouse_event)) {
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
for (auto& mouse_event_callback : mouse_event_callbacks_) {
|
||||||
|
if (mouse_event_callback.Run(mouse_event)) {
|
||||||
|
return;
|
||||||
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
|
index 7ec8dea94a9f97f0938f57743a35e8de09efb8c9..81eabc6be87037a54a8c9b000ce374cc2d87794f 100644
|
||||||
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
|
@@ -4426,6 +4426,12 @@ void WebContentsImpl::RenderWidgetWasResized(
|
||||||
|
width_changed);
|
||||||
|
}
|
||||||
|
|
||||||
|
+bool WebContentsImpl::PreHandleMouseEvent(const blink::WebMouseEvent& event) {
|
||||||
|
+ OPTIONAL_TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("content.verbose"),
|
||||||
|
+ "WebContentsImpl::PreHandleMouseEvent");
|
||||||
|
+ return delegate_ ? delegate_->PreHandleMouseEvent(this, event) : false;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
void WebContentsImpl::PreHandleDragUpdate(const DropData& drop_data,
|
||||||
|
const gfx::PointF& client_pt) {
|
||||||
|
if (delegate_) {
|
||||||
|
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
||||||
|
index 9dfd229af26127dee8e21c77fcedef5285f3aafa..63a38ac602ae00e6df40e4c883937bc57d513ead 100644
|
||||||
|
--- a/content/browser/web_contents/web_contents_impl.h
|
||||||
|
+++ b/content/browser/web_contents/web_contents_impl.h
|
||||||
|
@@ -1109,6 +1109,7 @@ class CONTENT_EXPORT WebContentsImpl
|
||||||
|
|
||||||
|
double GetPendingZoomLevel(RenderWidgetHostImpl* rwh) override;
|
||||||
|
|
||||||
|
+ bool PreHandleMouseEvent(const blink::WebMouseEvent& event) override;
|
||||||
|
void PreHandleDragUpdate(const DropData& drop_data,
|
||||||
|
const gfx::PointF& client_pt);
|
||||||
|
void PreHandleDragExit();
|
||||||
|
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
|
||||||
|
index ea179bdf3e702fb1d5be55affe3958f77901cd08..4b99edf823034115387c19cf1a8df9284e674d9b 100644
|
||||||
|
--- a/content/public/browser/web_contents_delegate.cc
|
||||||
|
+++ b/content/public/browser/web_contents_delegate.cc
|
||||||
|
@@ -121,6 +121,12 @@ bool WebContentsDelegate::HandleContextMenu(RenderFrameHost& render_frame_host,
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
+bool WebContentsDelegate::PreHandleMouseEvent(
|
||||||
|
+ WebContents* source,
|
||||||
|
+ const blink::WebMouseEvent& event) {
|
||||||
|
+ return false;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
KeyboardEventProcessingResult WebContentsDelegate::PreHandleKeyboardEvent(
|
||||||
|
WebContents* source,
|
||||||
|
const input::NativeWebKeyboardEvent& event) {
|
||||||
|
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
|
||||||
|
index 97def739ec2418286b76c0039c61b501293c8f5d..23acbc47f2c2e5b56b674a675e5ea92a643c4715 100644
|
||||||
|
--- a/content/public/browser/web_contents_delegate.h
|
||||||
|
+++ b/content/public/browser/web_contents_delegate.h
|
||||||
|
@@ -306,6 +306,13 @@ class CONTENT_EXPORT WebContentsDelegate {
|
||||||
|
virtual bool HandleContextMenu(RenderFrameHost& render_frame_host,
|
||||||
|
const ContextMenuParams& params);
|
||||||
|
|
||||||
|
+ // Allows delegates to handle mouse events before sending to the renderer.
|
||||||
|
+ // Returns true if the event was handled, false otherwise. A true value means
|
||||||
|
+ // no more processing should happen on the event. The default return value is
|
||||||
|
+ // false.
|
||||||
|
+ virtual bool PreHandleMouseEvent(WebContents* source,
|
||||||
|
+ const blink::WebMouseEvent& event);
|
||||||
|
+
|
||||||
|
// Allows delegates to handle mouse drag events before sending to the
|
||||||
|
// renderer. Returns true if the event was handled, false otherwise. A true
|
||||||
|
// value means no more processing should happen on the event. The default
|
|
@ -6,7 +6,7 @@ Subject: Revert "Remove the AllowAggressiveThrottlingWithWebSocket feature."
|
||||||
This reverts commit 615c1810a187840ffeb04096087efff86edb37de.
|
This reverts commit 615c1810a187840ffeb04096087efff86edb37de.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc b/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
diff --git a/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc b/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
||||||
index b5dde9f0b46663db5c7cf072cc58e271f83995eb..88a503e23ea4fa787a91a2a7934dc1783264a700 100644
|
index 6c3d01cfba017bee1dc7bc96f2707f80358923e9..d771cd323529f2e80d71ca20ef37c71c1f356b7c 100644
|
||||||
--- a/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
--- a/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
||||||
+++ b/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
+++ b/third_party/blink/renderer/modules/websockets/websocket_channel_impl.cc
|
||||||
@@ -101,6 +101,17 @@ enum WebSocketOpCode {
|
@@ -101,6 +101,17 @@ enum WebSocketOpCode {
|
||||||
|
|
|
@ -10,10 +10,10 @@ on Windows. We should refactor our code so that this patch isn't
|
||||||
necessary.
|
necessary.
|
||||||
|
|
||||||
diff --git a/testing/variations/fieldtrial_testing_config.json b/testing/variations/fieldtrial_testing_config.json
|
diff --git a/testing/variations/fieldtrial_testing_config.json b/testing/variations/fieldtrial_testing_config.json
|
||||||
index 85f5e8902836f91994e9dd4018d1db4d126ffc69..f17308098e72c0087203a18ddd2967cb50b424c1 100644
|
index 64da47969f25d5ba71f850e85cdb96eb0d66a5d7..056991b98af53190f0229e3ce84a22b2aa0f55f7 100644
|
||||||
--- a/testing/variations/fieldtrial_testing_config.json
|
--- a/testing/variations/fieldtrial_testing_config.json
|
||||||
+++ b/testing/variations/fieldtrial_testing_config.json
|
+++ b/testing/variations/fieldtrial_testing_config.json
|
||||||
@@ -25240,6 +25240,21 @@
|
@@ -25306,6 +25306,21 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -67,7 +67,7 @@ index 58063f2452dc484a97c79b382067d9b34875e344..d586436498263c595a17454f54644d2d
|
||||||
|
|
||||||
} // namespace views::features
|
} // namespace views::features
|
||||||
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
index 54a94e1348fa196eaee8314076c47286c9ab0bcc..ed4d2c4d849085c0e7830c5d52d47daf2700ce34 100644
|
index 4c626e026e5b19db737533607957d0ff2fbeae28..7d899eef72721c6f3e27c9892ba963fd6b5aaeef 100644
|
||||||
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||||
@@ -84,6 +84,23 @@ namespace {
|
@@ -84,6 +84,23 @@ namespace {
|
||||||
|
|
|
@ -6,10 +6,10 @@ Subject: scroll_bounce_flag.patch
|
||||||
Patch to make scrollBounce option work.
|
Patch to make scrollBounce option work.
|
||||||
|
|
||||||
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
||||||
index 69e4b789138ae4de83d93e177e1e5ef02d3246bc..038980cc833e17ee1b0383e92d190c4d92d880c8 100644
|
index dbc0224b59409d6a602f3af6d8378d86181b57d9..0d0857f801be22dfffd937e02865b1a90f75917c 100644
|
||||||
--- a/content/renderer/render_thread_impl.cc
|
--- a/content/renderer/render_thread_impl.cc
|
||||||
+++ b/content/renderer/render_thread_impl.cc
|
+++ b/content/renderer/render_thread_impl.cc
|
||||||
@@ -1261,7 +1261,7 @@ bool RenderThreadImpl::IsLcdTextEnabled() {
|
@@ -1231,7 +1231,7 @@ bool RenderThreadImpl::IsLcdTextEnabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
|
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
|
||||||
|
|
|
@ -15,7 +15,7 @@ short-circuit all the permissions checks in MSDC for now to allow us to
|
||||||
unduplicate this code.
|
unduplicate this code.
|
||||||
|
|
||||||
diff --git a/components/webrtc/media_stream_devices_controller.cc b/components/webrtc/media_stream_devices_controller.cc
|
diff --git a/components/webrtc/media_stream_devices_controller.cc b/components/webrtc/media_stream_devices_controller.cc
|
||||||
index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce88a6e58d 100644
|
index d98c6fb6870df8ab29234d4f7d1f3ca4ac903089..9933b5b5965ee74666cfe11554f0ccd56fae37c5 100644
|
||||||
--- a/components/webrtc/media_stream_devices_controller.cc
|
--- a/components/webrtc/media_stream_devices_controller.cc
|
||||||
+++ b/components/webrtc/media_stream_devices_controller.cc
|
+++ b/components/webrtc/media_stream_devices_controller.cc
|
||||||
@@ -57,7 +57,8 @@ bool PermissionIsRequested(blink::PermissionType permission,
|
@@ -57,7 +57,8 @@ bool PermissionIsRequested(blink::PermissionType permission,
|
||||||
|
@ -37,7 +37,7 @@ index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce
|
||||||
content::PermissionController* permission_controller =
|
content::PermissionController* permission_controller =
|
||||||
web_contents->GetBrowserContext()->GetPermissionController();
|
web_contents->GetBrowserContext()->GetPermissionController();
|
||||||
|
|
||||||
@@ -174,19 +175,26 @@ void MediaStreamDevicesController::RequestPermissions(
|
@@ -174,19 +175,31 @@ void MediaStreamDevicesController::RequestPermissions(
|
||||||
requested_audio_capture_device_ids;
|
requested_audio_capture_device_ids;
|
||||||
permission_request_description.requested_video_capture_device_ids =
|
permission_request_description.requested_video_capture_device_ids =
|
||||||
requested_video_capture_device_ids;
|
requested_video_capture_device_ids;
|
||||||
|
@ -56,8 +56,13 @@ index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce
|
||||||
- &MediaStreamDevicesController::PromptAnsweredGroupedRequest,
|
- &MediaStreamDevicesController::PromptAnsweredGroupedRequest,
|
||||||
- std::move(controller)));
|
- std::move(controller)));
|
||||||
+ if (previously_approved) {
|
+ if (previously_approved) {
|
||||||
+ controller->PromptAnsweredGroupedRequest({blink::mojom::PermissionStatus::GRANTED /*audio*/,
|
+ controller->PromptAnsweredGroupedRequest(
|
||||||
+ blink::mojom::PermissionStatus::GRANTED /*video*/});
|
+ {content::PermissionResult(
|
||||||
|
+ content::PermissionStatus::GRANTED /*audio*/,
|
||||||
|
+ content::PermissionStatusSource::UNSPECIFIED),
|
||||||
|
+ content::PermissionResult(
|
||||||
|
+ content::PermissionStatus::GRANTED /*video*/,
|
||||||
|
+ content::PermissionStatusSource::UNSPECIFIED)});
|
||||||
+ } else {
|
+ } else {
|
||||||
+ rfh->GetBrowserContext()
|
+ rfh->GetBrowserContext()
|
||||||
+ ->GetPermissionController()
|
+ ->GetPermissionController()
|
||||||
|
@ -72,7 +77,7 @@ index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaStreamDevicesController::~MediaStreamDevicesController() {
|
MediaStreamDevicesController::~MediaStreamDevicesController() {
|
||||||
@@ -436,6 +444,7 @@ bool MediaStreamDevicesController::PermissionIsBlockedForReason(
|
@@ -436,6 +449,7 @@ bool MediaStreamDevicesController::PermissionIsBlockedForReason(
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +85,7 @@ index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce
|
||||||
// TODO(raymes): This function wouldn't be needed if
|
// TODO(raymes): This function wouldn't be needed if
|
||||||
// PermissionManager::RequestPermissions returned a denial reason.
|
// PermissionManager::RequestPermissions returned a denial reason.
|
||||||
content::PermissionResult result =
|
content::PermissionResult result =
|
||||||
@@ -449,6 +458,7 @@ bool MediaStreamDevicesController::PermissionIsBlockedForReason(
|
@@ -449,6 +463,7 @@ bool MediaStreamDevicesController::PermissionIsBlockedForReason(
|
||||||
DCHECK_EQ(blink::mojom::PermissionStatus::DENIED, result.status);
|
DCHECK_EQ(blink::mojom::PermissionStatus::DENIED, result.status);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -89,10 +94,10 @@ index 50b665fea15c81326ea7610c66ecad970bc5b261..99c34a259786176c24c67cf91aa528ce
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/components/webrtc/media_stream_devices_controller.h b/components/webrtc/media_stream_devices_controller.h
|
diff --git a/components/webrtc/media_stream_devices_controller.h b/components/webrtc/media_stream_devices_controller.h
|
||||||
index a976526aedc2107dd43242199b04142ca4d34eda..0410c8818d6ffdd55c49f1bef27ddb4ea16d8ab9 100644
|
index 5e46e66f51994d3eef3b19ee57b37e6cf32658e8..d01403717a0df2c18b3d88495d9a4f85f242693a 100644
|
||||||
--- a/components/webrtc/media_stream_devices_controller.h
|
--- a/components/webrtc/media_stream_devices_controller.h
|
||||||
+++ b/components/webrtc/media_stream_devices_controller.h
|
+++ b/components/webrtc/media_stream_devices_controller.h
|
||||||
@@ -49,7 +49,8 @@ class MediaStreamDevicesController {
|
@@ -50,7 +50,8 @@ class MediaStreamDevicesController {
|
||||||
// synchronously or asynchronously returned via |callback|.
|
// synchronously or asynchronously returned via |callback|.
|
||||||
static void RequestPermissions(const content::MediaStreamRequest& request,
|
static void RequestPermissions(const content::MediaStreamRequest& request,
|
||||||
MediaStreamDeviceEnumerator* enumerator,
|
MediaStreamDeviceEnumerator* enumerator,
|
||||||
|
|
|
@ -22,10 +22,10 @@ However, the patch would need to be reviewed by the security team, as it
|
||||||
does touch a security-sensitive class.
|
does touch a security-sensitive class.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
index c20d6b898f517856efb01e9f504a9dfa967fa3c3..95b4a649055e03ef7822a33347ed904ac7d64695 100644
|
index 9d5c6428a0f35d678f8723dd0b959fa34e8fc32c..26a8f384897c2a60f60f441decc3f4f895c9c049 100644
|
||||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||||
@@ -1833,6 +1833,10 @@ bool RenderProcessHostImpl::Init() {
|
@@ -1864,6 +1864,10 @@ bool RenderProcessHostImpl::Init() {
|
||||||
std::unique_ptr<SandboxedProcessLauncherDelegate> sandbox_delegate =
|
std::unique_ptr<SandboxedProcessLauncherDelegate> sandbox_delegate =
|
||||||
std::make_unique<RendererSandboxedProcessLauncherDelegateWin>(
|
std::make_unique<RendererSandboxedProcessLauncherDelegateWin>(
|
||||||
*cmd_line, IsPdf(), IsJitDisabled());
|
*cmd_line, IsPdf(), IsJitDisabled());
|
||||||
|
|
|
@ -9,7 +9,7 @@ is needed for OSR.
|
||||||
Originally landed in https://github.com/electron/libchromiumcontent/pull/226.
|
Originally landed in https://github.com/electron/libchromiumcontent/pull/226.
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index c9472325e55052ead090c55704b590bb6722c429..fbf58cc058ee37aab227a632c5f4caf8c4cd6620 100644
|
index b7967a4ab1c9d2c7b2a49a610af10190bcd6e0f0..d6b188a6fd5f3a591b4651db40ca258bb03e7a17 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -4160,6 +4160,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
@@ -4160,6 +4160,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
||||||
|
@ -35,10 +35,10 @@ index c9472325e55052ead090c55704b590bb6722c429..fbf58cc058ee37aab227a632c5f4caf8
|
||||||
CHECK(view_.get());
|
CHECK(view_.get());
|
||||||
|
|
||||||
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
|
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
|
||||||
index f196deb55065a6016ceabbdb8d165eb9f15add74..53bf8f0368f33926a4d2e7f945db7f871558647f 100644
|
index 37c2351c8a286327e2f6f352e7255e09a5a484dd..780a2d8e05665a6deea26a5e29a392bc058d4202 100644
|
||||||
--- a/content/public/browser/web_contents.h
|
--- a/content/public/browser/web_contents.h
|
||||||
+++ b/content/public/browser/web_contents.h
|
+++ b/content/public/browser/web_contents.h
|
||||||
@@ -125,11 +125,14 @@ class PrerenderHandle;
|
@@ -128,11 +128,14 @@ class PrerenderHandle;
|
||||||
class RenderFrameHost;
|
class RenderFrameHost;
|
||||||
class RenderViewHost;
|
class RenderViewHost;
|
||||||
class RenderWidgetHost;
|
class RenderWidgetHost;
|
||||||
|
@ -53,7 +53,7 @@ index f196deb55065a6016ceabbdb8d165eb9f15add74..53bf8f0368f33926a4d2e7f945db7f87
|
||||||
class WebUI;
|
class WebUI;
|
||||||
struct DropData;
|
struct DropData;
|
||||||
struct MHTMLGenerationParams;
|
struct MHTMLGenerationParams;
|
||||||
@@ -283,6 +286,10 @@ class WebContents : public PageNavigator, public base::SupportsUserData {
|
@@ -289,6 +292,10 @@ class WebContents : public PageNavigator, public base::SupportsUserData {
|
||||||
network::mojom::WebSandboxFlags starting_sandbox_flags =
|
network::mojom::WebSandboxFlags starting_sandbox_flags =
|
||||||
network::mojom::WebSandboxFlags::kNone;
|
network::mojom::WebSandboxFlags::kNone;
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,10 @@ Note that we also need to manually update embedder's
|
||||||
`api::WebContents::IsFullscreenForTabOrPending` value.
|
`api::WebContents::IsFullscreenForTabOrPending` value.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_frame_host_impl.cc b/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
index 4f8e3a08890ed7498b29a900ccf4bbda5f9cb494..bfce01f531d30cabe5fc33d258652597922a1de8 100644
|
index 73f730ff05a22938a834921d4842bf1f9faaca67..dbd436cafbb0c1d49e76bcd569bca5e04ed89b44 100644
|
||||||
--- a/content/browser/renderer_host/render_frame_host_impl.cc
|
--- a/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
|
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
|
||||||
@@ -8925,6 +8925,17 @@ void RenderFrameHostImpl::EnterFullscreen(
|
@@ -8929,6 +8929,17 @@ void RenderFrameHostImpl::EnterFullscreen(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,10 +37,10 @@ index 4f8e3a08890ed7498b29a900ccf4bbda5f9cb494..bfce01f531d30cabe5fc33d258652597
|
||||||
if (had_fullscreen_token && !GetView()->HasFocus())
|
if (had_fullscreen_token && !GetView()->HasFocus())
|
||||||
GetView()->Focus();
|
GetView()->Focus();
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index fbf58cc058ee37aab227a632c5f4caf8c4cd6620..0a6a205f49d7bc853879ac4919868aadd6fdd42f 100644
|
index d6b188a6fd5f3a591b4651db40ca258bb03e7a17..7f49174c2e0121ddde50250a38b4ac4fcc43d125 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -4449,21 +4449,25 @@ KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent(
|
@@ -4443,21 +4443,25 @@ KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent(
|
||||||
const input::NativeWebKeyboardEvent& event) {
|
const input::NativeWebKeyboardEvent& event) {
|
||||||
OPTIONAL_TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("content.verbose"),
|
OPTIONAL_TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("content.verbose"),
|
||||||
"WebContentsImpl::PreHandleKeyboardEvent");
|
"WebContentsImpl::PreHandleKeyboardEvent");
|
||||||
|
@ -80,7 +80,7 @@ index fbf58cc058ee37aab227a632c5f4caf8c4cd6620..0a6a205f49d7bc853879ac4919868aad
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContentsImpl::HandleMouseEvent(const blink::WebMouseEvent& event) {
|
bool WebContentsImpl::HandleMouseEvent(const blink::WebMouseEvent& event) {
|
||||||
@@ -4622,7 +4626,7 @@ void WebContentsImpl::EnterFullscreenMode(
|
@@ -4616,7 +4620,7 @@ void WebContentsImpl::EnterFullscreenMode(
|
||||||
OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::EnterFullscreenMode");
|
OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::EnterFullscreenMode");
|
||||||
DCHECK(CanEnterFullscreenMode(requesting_frame));
|
DCHECK(CanEnterFullscreenMode(requesting_frame));
|
||||||
DCHECK(requesting_frame->IsActive());
|
DCHECK(requesting_frame->IsActive());
|
||||||
|
|
|
@ -26,10 +26,10 @@ index d794a461eedde1003c72f47af0517249ab20806d..6d2033d2023a7c4c936933a050d2372c
|
||||||
// An empty URL is returned if the URL is not overriden.
|
// An empty URL is returned if the URL is not overriden.
|
||||||
virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
|
virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
index 74ae1472a2134efcab4f3b258911b39a8e8ed27a..c74f99805cea8c939a5278d120fd348df7a94d32 100644
|
index b3fe9e1bfa0976b438ddf8ab0cec6394faca98fd..10c50e675f50025da7dee5f992458605c2b944e6 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.cc
|
--- a/content/renderer/renderer_blink_platform_impl.cc
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
@@ -903,6 +903,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() {
|
@@ -926,6 +926,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() {
|
||||||
WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread();
|
WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,10 +43,10 @@ index 74ae1472a2134efcab4f3b258911b39a8e8ed27a..c74f99805cea8c939a5278d120fd348d
|
||||||
const v8::Local<v8::Context>& worker) {
|
const v8::Local<v8::Context>& worker) {
|
||||||
GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
|
GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
||||||
index c2c2b533e42cfcc8c3ecdde1ab6ed9bc2a353b5e..b2238f512b30e64399a901a3c9f430e5be54c27c 100644
|
index 8b684e0e2a43bed314822a4107820aa29eacfae3..8666fbfed28d4138d2c16baebe97912b68481803 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.h
|
--- a/content/renderer/renderer_blink_platform_impl.h
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.h
|
+++ b/content/renderer/renderer_blink_platform_impl.h
|
||||||
@@ -200,6 +200,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
@@ -205,6 +205,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||||
void DidStartWorkerThread() override;
|
void DidStartWorkerThread() override;
|
||||||
void WillStopWorkerThread() override;
|
void WillStopWorkerThread() override;
|
||||||
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
||||||
|
@ -55,10 +55,10 @@ index c2c2b533e42cfcc8c3ecdde1ab6ed9bc2a353b5e..b2238f512b30e64399a901a3c9f430e5
|
||||||
const blink::WebSecurityOrigin& script_origin) override;
|
const blink::WebSecurityOrigin& script_origin) override;
|
||||||
blink::ProtocolHandlerSecurityLevel GetProtocolHandlerSecurityLevel(
|
blink::ProtocolHandlerSecurityLevel GetProtocolHandlerSecurityLevel(
|
||||||
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
||||||
index 87aebe19abd4690ace9d524364ef32a34afd3592..e33318c3e673741a05083cf064152e24ff39ca02 100644
|
index 2462293cb1099c0edd47134bd835641820cf34b4..d3baf3f488179d82e91d012043d6ccc517a858f5 100644
|
||||||
--- a/third_party/blink/public/platform/platform.h
|
--- a/third_party/blink/public/platform/platform.h
|
||||||
+++ b/third_party/blink/public/platform/platform.h
|
+++ b/third_party/blink/public/platform/platform.h
|
||||||
@@ -673,6 +673,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
@@ -664,6 +664,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||||
virtual void DidStartWorkerThread() {}
|
virtual void DidStartWorkerThread() {}
|
||||||
virtual void WillStopWorkerThread() {}
|
virtual void WillStopWorkerThread() {}
|
||||||
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
||||||
|
@ -67,10 +67,10 @@ index 87aebe19abd4690ace9d524364ef32a34afd3592..e33318c3e673741a05083cf064152e24
|
||||||
const WebSecurityOrigin& script_origin) {
|
const WebSecurityOrigin& script_origin) {
|
||||||
return false;
|
return false;
|
||||||
diff --git a/third_party/blink/renderer/core/workers/worker_thread.cc b/third_party/blink/renderer/core/workers/worker_thread.cc
|
diff --git a/third_party/blink/renderer/core/workers/worker_thread.cc b/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
index 8aaf3c12144273bb35bba3e77e0fd505282213df..a6eab67460b49b4594440be2f6e41f852b201e12 100644
|
index 0660054931e295abafb420ce567f6b45d9af39d6..bea00fa0a9faaa0c0e7fa5b444c1e485d1e883d1 100644
|
||||||
--- a/third_party/blink/renderer/core/workers/worker_thread.cc
|
--- a/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
+++ b/third_party/blink/renderer/core/workers/worker_thread.cc
|
+++ b/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
@@ -823,6 +823,12 @@ void WorkerThread::PrepareForShutdownOnWorkerThread() {
|
@@ -824,6 +824,12 @@ void WorkerThread::PrepareForShutdownOnWorkerThread() {
|
||||||
}
|
}
|
||||||
pause_handle_.reset();
|
pause_handle_.reset();
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,10 @@ index 6d2033d2023a7c4c936933a050d2372cf490eb44..79d59c3f4d3d2d5ff39bd65ded489183
|
||||||
// from the worker thread.
|
// from the worker thread.
|
||||||
virtual void WillDestroyWorkerContextOnWorkerThread(
|
virtual void WillDestroyWorkerContextOnWorkerThread(
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
index c74f99805cea8c939a5278d120fd348df7a94d32..a1e92922c11cb995e8814ca693332a9c075ca012 100644
|
index 10c50e675f50025da7dee5f992458605c2b944e6..bdba9ca63b81485e21aa1d2bb048c721c7895e47 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.cc
|
--- a/content/renderer/renderer_blink_platform_impl.cc
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
@@ -915,6 +915,12 @@ void RendererBlinkPlatformImpl::WorkerContextCreated(
|
@@ -938,6 +938,12 @@ void RendererBlinkPlatformImpl::WorkerContextCreated(
|
||||||
worker);
|
worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,10 +52,10 @@ index c74f99805cea8c939a5278d120fd348df7a94d32..a1e92922c11cb995e8814ca693332a9c
|
||||||
const blink::WebSecurityOrigin& script_origin) {
|
const blink::WebSecurityOrigin& script_origin) {
|
||||||
return GetContentClient()->renderer()->AllowScriptExtensionForServiceWorker(
|
return GetContentClient()->renderer()->AllowScriptExtensionForServiceWorker(
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
||||||
index b2238f512b30e64399a901a3c9f430e5be54c27c..6231d97d52de2245c6f9396d9769554fd590c128 100644
|
index 8666fbfed28d4138d2c16baebe97912b68481803..7f639364ecff5506d414aedf0537d87e54d5fef1 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.h
|
--- a/content/renderer/renderer_blink_platform_impl.h
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.h
|
+++ b/content/renderer/renderer_blink_platform_impl.h
|
||||||
@@ -200,6 +200,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
@@ -205,6 +205,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||||
void DidStartWorkerThread() override;
|
void DidStartWorkerThread() override;
|
||||||
void WillStopWorkerThread() override;
|
void WillStopWorkerThread() override;
|
||||||
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
||||||
|
@ -65,10 +65,10 @@ index b2238f512b30e64399a901a3c9f430e5be54c27c..6231d97d52de2245c6f9396d9769554f
|
||||||
bool AllowScriptExtensionForServiceWorker(
|
bool AllowScriptExtensionForServiceWorker(
|
||||||
const blink::WebSecurityOrigin& script_origin) override;
|
const blink::WebSecurityOrigin& script_origin) override;
|
||||||
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
||||||
index e33318c3e673741a05083cf064152e24ff39ca02..a5a13ad4724aec8b5c471fd81995cf19c3ff7086 100644
|
index d3baf3f488179d82e91d012043d6ccc517a858f5..a3288c6229116ed71f16f9f9cde3a8121a603580 100644
|
||||||
--- a/third_party/blink/public/platform/platform.h
|
--- a/third_party/blink/public/platform/platform.h
|
||||||
+++ b/third_party/blink/public/platform/platform.h
|
+++ b/third_party/blink/public/platform/platform.h
|
||||||
@@ -673,6 +673,8 @@ class BLINK_PLATFORM_EXPORT Platform {
|
@@ -664,6 +664,8 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||||
virtual void DidStartWorkerThread() {}
|
virtual void DidStartWorkerThread() {}
|
||||||
virtual void WillStopWorkerThread() {}
|
virtual void WillStopWorkerThread() {}
|
||||||
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
||||||
|
|
|
@ -10,10 +10,10 @@ to handle this without patching, but this is fairly clean for now and no longer
|
||||||
patching legacy devtools code.
|
patching legacy devtools code.
|
||||||
|
|
||||||
diff --git a/front_end/entrypoints/main/MainImpl.ts b/front_end/entrypoints/main/MainImpl.ts
|
diff --git a/front_end/entrypoints/main/MainImpl.ts b/front_end/entrypoints/main/MainImpl.ts
|
||||||
index d3d9a5f373d324eb3cb234c43915476716912cdb..b0ed5173e52abd4eeed4f069d6960c6b01e5e076 100644
|
index c1880f1d379d4999f595f34bdb34695010919a0a..42196f67953736db9e005c041ddf7e65bd98e2ed 100644
|
||||||
--- a/front_end/entrypoints/main/MainImpl.ts
|
--- a/front_end/entrypoints/main/MainImpl.ts
|
||||||
+++ b/front_end/entrypoints/main/MainImpl.ts
|
+++ b/front_end/entrypoints/main/MainImpl.ts
|
||||||
@@ -733,6 +733,8 @@ export class MainImpl {
|
@@ -736,6 +736,8 @@ export class MainImpl {
|
||||||
globalThis.Main = globalThis.Main || {};
|
globalThis.Main = globalThis.Main || {};
|
||||||
// @ts-expect-error Exported for Tests.js
|
// @ts-expect-error Exported for Tests.js
|
||||||
globalThis.Main.Main = MainImpl;
|
globalThis.Main.Main = MainImpl;
|
||||||
|
|
|
@ -48,3 +48,5 @@ fix_expose_readfilesync_override_for_modules.patch
|
||||||
fix_array_out-of-bounds_read_in_boyer-moore_search.patch
|
fix_array_out-of-bounds_read_in_boyer-moore_search.patch
|
||||||
chore_add_missing_include_of_iterator.patch
|
chore_add_missing_include_of_iterator.patch
|
||||||
test_accomodate_v8_thenable_stack_trace_change_in_snapshot.patch
|
test_accomodate_v8_thenable_stack_trace_change_in_snapshot.patch
|
||||||
|
chore_exclude_electron_node_folder_from_exit-time-destructors.patch
|
||||||
|
reland_api_advance_deprecation_of_getisolate.patch
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Mon, 1 Sep 2025 03:12:06 +0900
|
||||||
|
Subject: chore: exclude electron_node folder from exit-time-destructors
|
||||||
|
|
||||||
|
Refs https://issues.chromium.org/issues/430332953
|
||||||
|
It contains multiple third_party dependencies that doesn't
|
||||||
|
align with the chromium style guide.
|
||||||
|
|
||||||
|
diff --git a/deps/ada/unofficial.gni b/deps/ada/unofficial.gni
|
||||||
|
index ab7dc27de3e304f6d912d5834da47e3b4eb25495..b6c0fd4ceee989dac55c7d54e52fef183ab4621c 100644
|
||||||
|
--- a/deps/ada/unofficial.gni
|
||||||
|
+++ b/deps/ada/unofficial.gni
|
||||||
|
@@ -20,6 +20,7 @@ template("ada_gn_build") {
|
||||||
|
source_set(target_name) {
|
||||||
|
forward_variables_from(invoker, "*")
|
||||||
|
public_configs = [ ":ada_config" ]
|
||||||
|
+ configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
||||||
|
sources = gypi_values.ada_sources
|
||||||
|
}
|
||||||
|
}
|
||||||
|
diff --git a/unofficial.gni b/unofficial.gni
|
||||||
|
index 8886f2a79ae77614789d6ae0defd4f18fc756456..a64d2e4ac475abc049fff7ea62ec76de565a747d 100644
|
||||||
|
--- a/unofficial.gni
|
||||||
|
+++ b/unofficial.gni
|
||||||
|
@@ -143,7 +143,10 @@ template("node_gn_build") {
|
||||||
|
[ "node.gyp" ])
|
||||||
|
|
||||||
|
source_set("libnode") {
|
||||||
|
- configs += [ ":node_internal_config" ]
|
||||||
|
+ configs += [
|
||||||
|
+ ":node_internal_config",
|
||||||
|
+ "//build/config/compiler:no_exit_time_destructors"
|
||||||
|
+ ]
|
||||||
|
public_configs = [
|
||||||
|
":node_external_config",
|
||||||
|
"deps/googletest:googletest_config",
|
||||||
|
@@ -345,6 +348,7 @@ template("node_gn_build") {
|
||||||
|
"src/embedded_data.h",
|
||||||
|
]
|
||||||
|
include_dirs = [ "src", "tools" ]
|
||||||
|
+ configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
||||||
|
|
||||||
|
if (!is_win) {
|
||||||
|
defines += [ "NODE_JS2C_USE_STRING_LITERALS" ]
|
|
@ -0,0 +1,82 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Mon, 1 Sep 2025 03:13:53 +0900
|
||||||
|
Subject: Reland "[api] Advance deprecation of GetIsolate"
|
||||||
|
|
||||||
|
https://chromium-review.googlesource.com/c/v8/v8/+/6875273
|
||||||
|
|
||||||
|
diff --git a/src/util-inl.h b/src/util-inl.h
|
||||||
|
index b21f7a8260ca6a4701f8904b9cb641428db80772..16fe55f3054fd20544babd63ff204330cb47c1a7 100644
|
||||||
|
--- a/src/util-inl.h
|
||||||
|
+++ b/src/util-inl.h
|
||||||
|
@@ -326,14 +326,14 @@ v8::Maybe<void> FromV8Array(v8::Local<v8::Context> context,
|
||||||
|
std::vector<v8::Global<v8::Value>>* out) {
|
||||||
|
uint32_t count = js_array->Length();
|
||||||
|
out->reserve(count);
|
||||||
|
- ArrayIterationData data{out, context->GetIsolate()};
|
||||||
|
+ ArrayIterationData data{out, v8::Isolate::GetCurrent()};
|
||||||
|
return js_array->Iterate(context, PushItemToVector, &data);
|
||||||
|
}
|
||||||
|
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
std::string_view str,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
if (str.size() >= static_cast<size_t>(v8::String::kMaxLength)) [[unlikely]] {
|
||||||
|
// V8 only has a TODO comment about adding an exception when the maximum
|
||||||
|
// string size is exceeded.
|
||||||
|
@@ -349,7 +349,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
v8_inspector::StringView str,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
if (str.length() >= static_cast<size_t>(v8::String::kMaxLength))
|
||||||
|
[[unlikely]] {
|
||||||
|
// V8 only has a TODO comment about adding an exception when the maximum
|
||||||
|
@@ -376,7 +376,7 @@ template <typename T>
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
const std::vector<T>& vec,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
v8::EscapableHandleScope handle_scope(isolate);
|
||||||
|
|
||||||
|
MaybeStackBuffer<v8::Local<v8::Value>, 128> arr(vec.size());
|
||||||
|
@@ -393,7 +393,7 @@ template <typename T>
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
const std::set<T>& set,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
v8::Local<v8::Set> set_js = v8::Set::New(isolate);
|
||||||
|
v8::HandleScope handle_scope(isolate);
|
||||||
|
|
||||||
|
@@ -412,7 +412,7 @@ template <typename T, typename U>
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
const std::unordered_map<T, U>& map,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
v8::EscapableHandleScope handle_scope(isolate);
|
||||||
|
|
||||||
|
v8::Local<v8::Map> ret = v8::Map::New(isolate);
|
||||||
|
@@ -455,7 +455,7 @@ template <typename T, typename>
|
||||||
|
v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context,
|
||||||
|
const T& number,
|
||||||
|
v8::Isolate* isolate) {
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
return ConvertNumberToV8Value(isolate, number);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -468,7 +468,7 @@ v8::Local<v8::Array> ToV8ValuePrimitiveArray(v8::Local<v8::Context> context,
|
||||||
|
std::is_floating_point_v<T>,
|
||||||
|
"Only primitive types (bool, integral, floating-point) are supported.");
|
||||||
|
|
||||||
|
- if (isolate == nullptr) isolate = context->GetIsolate();
|
||||||
|
+ if (isolate == nullptr) isolate = v8::Isolate::GetCurrent();
|
||||||
|
v8::EscapableHandleScope handle_scope(isolate);
|
||||||
|
|
||||||
|
v8::LocalVector<v8::Value> elements(isolate);
|
|
@ -10,13 +10,13 @@ the exported symbols in SQLite to avoid conflicts with Node.js.
|
||||||
This should be upstreamed to SQLite.
|
This should be upstreamed to SQLite.
|
||||||
|
|
||||||
diff --git a/amalgamation/rename_exports.h b/amalgamation/rename_exports.h
|
diff --git a/amalgamation/rename_exports.h b/amalgamation/rename_exports.h
|
||||||
index 1d45c732431e1031b7431ade967f0cfb66e500ea..be03b5b7e09108ba1e8ad4ff408b013c3ece90e3 100644
|
index f61b7c38dcfa3a69ccc392c3e808fc8c2622773f..f4d5bb88a176ccb28c37420d30ac88c690486f96 100644
|
||||||
--- a/amalgamation/rename_exports.h
|
--- a/amalgamation/rename_exports.h
|
||||||
+++ b/amalgamation/rename_exports.h
|
+++ b/amalgamation/rename_exports.h
|
||||||
@@ -367,6 +367,15 @@
|
@@ -367,6 +367,15 @@
|
||||||
#define sqlite3session_patchset chrome_sqlite3session_patchset // Lines 11680-11684
|
#define sqlite3session_patchset chrome_sqlite3session_patchset // Lines 11682-11686
|
||||||
#define sqlite3session_patchset_strm chrome_sqlite3session_patchset_strm // Lines 12946-12950
|
#define sqlite3session_patchset_strm chrome_sqlite3session_patchset_strm // Lines 12948-12952
|
||||||
#define sqlite3session_table_filter chrome_sqlite3session_table_filter // Lines 11448-11455
|
#define sqlite3session_table_filter chrome_sqlite3session_table_filter // Lines 11450-11457
|
||||||
+#define sqlite3_win32_write_debug chrome_sqlite3_win32_write_debug
|
+#define sqlite3_win32_write_debug chrome_sqlite3_win32_write_debug
|
||||||
+#define sqlite3_win32_sleep chrome_sqlite3_win32_sleep
|
+#define sqlite3_win32_sleep chrome_sqlite3_win32_sleep
|
||||||
+#define sqlite3_win32_is_nt chrome_sqlite3_win32_is_nt
|
+#define sqlite3_win32_is_nt chrome_sqlite3_win32_is_nt
|
||||||
|
|
|
@ -369,9 +369,6 @@ namespace electron::api {
|
||||||
gin::WrapperInfo App::kWrapperInfo = {{gin::kEmbedderNativeGin},
|
gin::WrapperInfo App::kWrapperInfo = {{gin::kEmbedderNativeGin},
|
||||||
gin::kElectronApp};
|
gin::kElectronApp};
|
||||||
|
|
||||||
// static
|
|
||||||
cppgc::Persistent<App> App::instance_;
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
IconLoader::IconSize GetIconSizeByString(const std::string& size) {
|
IconLoader::IconSize GetIconSizeByString(const std::string& size) {
|
||||||
|
@ -1701,17 +1698,15 @@ void ConfigureHostResolver(v8::Isolate* isolate,
|
||||||
|
|
||||||
// static
|
// static
|
||||||
App* App::Get() {
|
App* App::Get() {
|
||||||
CHECK_NE(instance_, nullptr);
|
return Create(nullptr);
|
||||||
return instance_.Get();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
App* App::Create(v8::Isolate* isolate) {
|
App* App::Create(v8::Isolate* isolate) {
|
||||||
if (!instance_) {
|
static base::NoDestructor<cppgc::Persistent<App>> instance(
|
||||||
instance_ = cppgc::MakeGarbageCollected<App>(
|
cppgc::MakeGarbageCollected<App>(
|
||||||
isolate->GetCppHeap()->GetAllocationHandle());
|
isolate->GetCppHeap()->GetAllocationHandle()));
|
||||||
}
|
return instance->Get();
|
||||||
return instance_.Get();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const gin::WrapperInfo* App::wrapper_info() const {
|
const gin::WrapperInfo* App::wrapper_info() const {
|
||||||
|
|
|
@ -282,8 +282,6 @@ class App final : public gin::Wrappable<App>,
|
||||||
bool watch_singleton_socket_on_ready_ = false;
|
bool watch_singleton_socket_on_ready_ = false;
|
||||||
|
|
||||||
std::unique_ptr<content::ScopedAccessibilityMode> scoped_accessibility_mode_;
|
std::unique_ptr<content::ScopedAccessibilityMode> scoped_accessibility_mode_;
|
||||||
|
|
||||||
static cppgc::Persistent<App> instance_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace api
|
} // namespace api
|
||||||
|
|
|
@ -25,6 +25,12 @@ NativeTheme::NativeTheme(v8::Isolate* isolate,
|
||||||
ui::NativeTheme* web_theme)
|
ui::NativeTheme* web_theme)
|
||||||
: ui_theme_(ui_theme), web_theme_(web_theme) {
|
: ui_theme_(ui_theme), web_theme_(web_theme) {
|
||||||
ui_theme_->AddObserver(this);
|
ui_theme_->AddObserver(this);
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
std::ignore = hkcu_themes_regkey_.Open(HKEY_CURRENT_USER,
|
||||||
|
L"Software\\Microsoft\\Windows\\"
|
||||||
|
L"CurrentVersion\\Themes\\Personalize",
|
||||||
|
KEY_READ);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeTheme::~NativeTheme() {
|
NativeTheme::~NativeTheme() {
|
||||||
|
@ -32,6 +38,16 @@ NativeTheme::~NativeTheme() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeTheme::OnNativeThemeUpdatedOnUI() {
|
void NativeTheme::OnNativeThemeUpdatedOnUI() {
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
if (hkcu_themes_regkey_.Valid()) {
|
||||||
|
DWORD system_uses_light_theme = 1;
|
||||||
|
hkcu_themes_regkey_.ReadValueDW(L"SystemUsesLightTheme",
|
||||||
|
&system_uses_light_theme);
|
||||||
|
bool system_dark_mode_enabled = (system_uses_light_theme == 0);
|
||||||
|
should_use_dark_colors_for_system_integrated_ui_ =
|
||||||
|
std::make_optional<bool>(system_dark_mode_enabled);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
Emit("updated");
|
Emit("updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +81,8 @@ bool NativeTheme::ShouldUseHighContrastColors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeTheme::ShouldUseDarkColorsForSystemIntegratedUI() {
|
bool NativeTheme::ShouldUseDarkColorsForSystemIntegratedUI() {
|
||||||
return ui_theme_->ShouldUseDarkColorsForSystemIntegratedUI();
|
return should_use_dark_colors_for_system_integrated_ui_.value_or(
|
||||||
|
ShouldUseDarkColors());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeTheme::InForcedColorsMode() {
|
bool NativeTheme::InForcedColorsMode() {
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
#include "ui/native_theme/native_theme.h"
|
#include "ui/native_theme/native_theme.h"
|
||||||
#include "ui/native_theme/native_theme_observer.h"
|
#include "ui/native_theme/native_theme_observer.h"
|
||||||
|
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
#include "base/win/registry.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace gin_helper {
|
namespace gin_helper {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class Handle;
|
class Handle;
|
||||||
|
@ -58,6 +62,11 @@ class NativeTheme final : public gin_helper::DeprecatedWrappable<NativeTheme>,
|
||||||
void OnNativeThemeUpdatedOnUI();
|
void OnNativeThemeUpdatedOnUI();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
base::win::RegKey hkcu_themes_regkey_;
|
||||||
|
#endif
|
||||||
|
std::optional<bool> should_use_dark_colors_for_system_integrated_ui_ =
|
||||||
|
std::nullopt;
|
||||||
raw_ptr<ui::NativeTheme> ui_theme_;
|
raw_ptr<ui::NativeTheme> ui_theme_;
|
||||||
raw_ptr<ui::NativeTheme> web_theme_;
|
raw_ptr<ui::NativeTheme> web_theme_;
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include "base/command_line.h"
|
#include "base/command_line.h"
|
||||||
#include "base/containers/contains.h"
|
#include "base/containers/contains.h"
|
||||||
|
#include "base/no_destructor.h"
|
||||||
#include "content/common/url_schemes.h"
|
#include "content/common/url_schemes.h"
|
||||||
#include "content/public/browser/child_process_security_policy.h"
|
#include "content/public/browser/child_process_security_policy.h"
|
||||||
#include "gin/object_template_builder.h"
|
#include "gin/object_template_builder.h"
|
||||||
|
@ -28,15 +29,6 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// List of registered custom standard schemes.
|
|
||||||
std::vector<std::string> g_standard_schemes;
|
|
||||||
|
|
||||||
// List of registered custom streaming schemes.
|
|
||||||
std::vector<std::string> g_streaming_schemes;
|
|
||||||
|
|
||||||
// Schemes that support V8 code cache.
|
|
||||||
std::vector<std::string> g_code_cache_schemes;
|
|
||||||
|
|
||||||
struct SchemeOptions {
|
struct SchemeOptions {
|
||||||
bool standard = false;
|
bool standard = false;
|
||||||
bool secure = false;
|
bool secure = false;
|
||||||
|
@ -89,12 +81,19 @@ namespace electron::api {
|
||||||
|
|
||||||
gin::DeprecatedWrapperInfo Protocol::kWrapperInfo = {gin::kEmbedderNativeGin};
|
gin::DeprecatedWrapperInfo Protocol::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||||
|
|
||||||
const std::vector<std::string>& GetStandardSchemes() {
|
std::vector<std::string>& GetStandardSchemes() {
|
||||||
return g_standard_schemes;
|
static base::NoDestructor<std::vector<std::string>> g_standard_schemes;
|
||||||
|
return *g_standard_schemes;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<std::string>& GetCodeCacheSchemes() {
|
std::vector<std::string>& GetCodeCacheSchemes() {
|
||||||
return g_code_cache_schemes;
|
static base::NoDestructor<std::vector<std::string>> g_code_cache_schemes;
|
||||||
|
return *g_code_cache_schemes;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string>& GetStreamingSchemes() {
|
||||||
|
static base::NoDestructor<std::vector<std::string>> g_streaming_schemes;
|
||||||
|
return *g_streaming_schemes;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddServiceWorkerScheme(const std::string& scheme) {
|
void AddServiceWorkerScheme(const std::string& scheme) {
|
||||||
|
@ -132,7 +131,7 @@ void RegisterSchemesAsPrivileged(gin_helper::ErrorThrower thrower,
|
||||||
auto* policy = content::ChildProcessSecurityPolicy::GetInstance();
|
auto* policy = content::ChildProcessSecurityPolicy::GetInstance();
|
||||||
url::AddStandardScheme(custom_scheme.scheme.c_str(),
|
url::AddStandardScheme(custom_scheme.scheme.c_str(),
|
||||||
url::SCHEME_WITH_HOST);
|
url::SCHEME_WITH_HOST);
|
||||||
g_standard_schemes.push_back(custom_scheme.scheme);
|
GetStandardSchemes().push_back(custom_scheme.scheme);
|
||||||
policy->RegisterWebSafeScheme(custom_scheme.scheme);
|
policy->RegisterWebSafeScheme(custom_scheme.scheme);
|
||||||
}
|
}
|
||||||
if (custom_scheme.options.secure) {
|
if (custom_scheme.options.secure) {
|
||||||
|
@ -155,10 +154,10 @@ void RegisterSchemesAsPrivileged(gin_helper::ErrorThrower thrower,
|
||||||
AddServiceWorkerScheme(custom_scheme.scheme);
|
AddServiceWorkerScheme(custom_scheme.scheme);
|
||||||
}
|
}
|
||||||
if (custom_scheme.options.stream) {
|
if (custom_scheme.options.stream) {
|
||||||
g_streaming_schemes.push_back(custom_scheme.scheme);
|
GetStreamingSchemes().push_back(custom_scheme.scheme);
|
||||||
}
|
}
|
||||||
if (custom_scheme.options.codeCache) {
|
if (custom_scheme.options.codeCache) {
|
||||||
g_code_cache_schemes.push_back(custom_scheme.scheme);
|
GetCodeCacheSchemes().push_back(custom_scheme.scheme);
|
||||||
url::AddCodeCacheScheme(custom_scheme.scheme.c_str());
|
url::AddCodeCacheScheme(custom_scheme.scheme.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -181,11 +180,11 @@ void RegisterSchemesAsPrivileged(gin_helper::ErrorThrower thrower,
|
||||||
AppendSchemesToCmdLine(electron::switches::kServiceWorkerSchemes,
|
AppendSchemesToCmdLine(electron::switches::kServiceWorkerSchemes,
|
||||||
service_worker_schemes);
|
service_worker_schemes);
|
||||||
AppendSchemesToCmdLine(electron::switches::kStandardSchemes,
|
AppendSchemesToCmdLine(electron::switches::kStandardSchemes,
|
||||||
g_standard_schemes);
|
GetStandardSchemes());
|
||||||
AppendSchemesToCmdLine(electron::switches::kStreamingSchemes,
|
AppendSchemesToCmdLine(electron::switches::kStreamingSchemes,
|
||||||
g_streaming_schemes);
|
GetStreamingSchemes());
|
||||||
AppendSchemesToCmdLine(electron::switches::kCodeCacheSchemes,
|
AppendSchemesToCmdLine(electron::switches::kCodeCacheSchemes,
|
||||||
g_code_cache_schemes);
|
GetCodeCacheSchemes());
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
@ -29,8 +29,8 @@ class ProtocolRegistry;
|
||||||
|
|
||||||
namespace api {
|
namespace api {
|
||||||
|
|
||||||
const std::vector<std::string>& GetStandardSchemes();
|
std::vector<std::string>& GetStandardSchemes();
|
||||||
const std::vector<std::string>& GetCodeCacheSchemes();
|
std::vector<std::string>& GetCodeCacheSchemes();
|
||||||
|
|
||||||
void AddServiceWorkerScheme(const std::string& scheme);
|
void AddServiceWorkerScheme(const std::string& scheme);
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "base/functional/bind.h"
|
||||||
#include "base/values.h"
|
#include "base/values.h"
|
||||||
#include "shell/browser/event_emitter_mixin.h"
|
#include "shell/browser/event_emitter_mixin.h"
|
||||||
#include "shell/common/gin_helper/wrappable.h"
|
#include "shell/common/gin_helper/wrappable.h"
|
||||||
|
@ -15,7 +16,7 @@
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
#include "shell/browser/browser.h"
|
#include "shell/browser/browser.h"
|
||||||
#include "shell/browser/browser_observer.h"
|
#include "shell/browser/browser_observer.h"
|
||||||
#include "ui/gfx/sys_color_change_listener.h"
|
#include "ui/gfx/win/singleton_hwnd_observer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace gin_helper {
|
namespace gin_helper {
|
||||||
|
@ -42,8 +43,7 @@ class SystemPreferences final
|
||||||
public gin_helper::EventEmitterMixin<SystemPreferences>
|
public gin_helper::EventEmitterMixin<SystemPreferences>
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
,
|
,
|
||||||
public BrowserObserver,
|
public BrowserObserver
|
||||||
public gfx::SysColorChangeListener
|
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -65,8 +65,8 @@ class SystemPreferences final
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
void InitializeWindow();
|
void InitializeWindow();
|
||||||
|
|
||||||
// gfx::SysColorChangeListener:
|
// Called by `singleton_hwnd_observer_`.
|
||||||
void OnSysColorChange() override;
|
void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|
||||||
|
|
||||||
// BrowserObserver:
|
// BrowserObserver:
|
||||||
void OnFinishLaunching(base::Value::Dict launch_info) override;
|
void OnFinishLaunching(base::Value::Dict launch_info) override;
|
||||||
|
@ -159,7 +159,8 @@ class SystemPreferences final
|
||||||
|
|
||||||
std::string current_color_;
|
std::string current_color_;
|
||||||
|
|
||||||
std::unique_ptr<gfx::ScopedSysColorChangeListener> color_change_listener_;
|
// Color/high contrast mode change observer.
|
||||||
|
std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include "base/apple/scoped_cftyperef.h"
|
#include "base/apple/scoped_cftyperef.h"
|
||||||
#include "base/containers/flat_map.h"
|
#include "base/containers/flat_map.h"
|
||||||
|
#include "base/no_destructor.h"
|
||||||
#include "base/strings/sys_string_conversions.h"
|
#include "base/strings/sys_string_conversions.h"
|
||||||
#include "base/task/sequenced_task_runner.h"
|
#include "base/task/sequenced_task_runner.h"
|
||||||
#include "base/values.h"
|
#include "base/values.h"
|
||||||
|
@ -80,7 +81,10 @@ namespace {
|
||||||
int g_next_id = 0;
|
int g_next_id = 0;
|
||||||
|
|
||||||
// The map to convert |id| to |int|.
|
// The map to convert |id| to |int|.
|
||||||
base::flat_map<int, id> g_id_map;
|
auto& GetIdMap() {
|
||||||
|
static base::NoDestructor<base::flat_map<int, id>> g_id_map;
|
||||||
|
return *g_id_map;
|
||||||
|
}
|
||||||
|
|
||||||
AVMediaType ParseMediaType(const std::string& media_type) {
|
AVMediaType ParseMediaType(const std::string& media_type) {
|
||||||
if (media_type == "camera") {
|
if (media_type == "camera") {
|
||||||
|
@ -214,7 +218,7 @@ int SystemPreferences::DoSubscribeNotification(
|
||||||
|
|
||||||
auto* name = maybe_name->IsNull() ? nil : base::SysUTF8ToNSString(name_str);
|
auto* name = maybe_name->IsNull() ? nil : base::SysUTF8ToNSString(name_str);
|
||||||
|
|
||||||
g_id_map[request_id] = [GetNotificationCenter(kind)
|
GetIdMap()[request_id] = [GetNotificationCenter(kind)
|
||||||
addObserverForName:name
|
addObserverForName:name
|
||||||
object:nil
|
object:nil
|
||||||
queue:nil
|
queue:nil
|
||||||
|
@ -240,11 +244,11 @@ int SystemPreferences::DoSubscribeNotification(
|
||||||
|
|
||||||
void SystemPreferences::DoUnsubscribeNotification(int request_id,
|
void SystemPreferences::DoUnsubscribeNotification(int request_id,
|
||||||
NotificationCenterKind kind) {
|
NotificationCenterKind kind) {
|
||||||
auto iter = g_id_map.find(request_id);
|
auto iter = GetIdMap().find(request_id);
|
||||||
if (iter != g_id_map.end()) {
|
if (iter != GetIdMap().end()) {
|
||||||
id observer = iter->second;
|
id observer = iter->second;
|
||||||
[GetNotificationCenter(kind) removeObserver:observer];
|
[GetNotificationCenter(kind) removeObserver:observer];
|
||||||
g_id_map.erase(iter);
|
GetIdMap().erase(iter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue