chore: bump chromium to 138.0.7178.0 (37-x-y) (#47106)
* chore: bump chromium in DEPS to 138.0.7178.0 Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> * 6351556: [source-phase-imports] Support Wasm Source Phase Imports Refs https://chromium-review.googlesource.com/c/chromium/src/+/6351556 Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * chore: update patches Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * 6509682: extensions: Use ChromeExtensionsBrowserClient on desktop Android, part 2 Refs https://chromium-review.googlesource.com/c/chromium/src/+/6509682 Co-authored-by: David Sanders <dsanders11@ucsbalum.com> --------- 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: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
a3d19d7a99
commit
7db9671420
30 changed files with 141 additions and 111 deletions
2
DEPS
2
DEPS
|
@ -2,7 +2,7 @@ gclient_gn_args_from = 'src'
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
'chromium_version':
|
'chromium_version':
|
||||||
'138.0.7177.0',
|
'138.0.7178.0',
|
||||||
'node_version':
|
'node_version':
|
||||||
'v22.15.0',
|
'v22.15.0',
|
||||||
'nan_version':
|
'nan_version':
|
||||||
|
|
|
@ -51,7 +51,7 @@ index 6eade0d29bc266a6a8928e768c923687bd12e656..53465bc76a22ae97ba4602d02a41f52e
|
||||||
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 d719b546b8c3c59003698b26dead065da7d76341..95a52f1cc2024e4a9cd694429d5304a5860a1c1e 100644
|
index a13dd521b7263c66c94dac3d3caf6ebbed92d229..ce9295ee37ad58aab9f18f80daa72f91d5e0c27e 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
|
||||||
@@ -579,8 +579,8 @@ void RenderWidgetHostViewAura::ShowImpl(PageVisibilityState page_visibility) {
|
@@ -579,8 +579,8 @@ void RenderWidgetHostViewAura::ShowImpl(PageVisibilityState page_visibility) {
|
||||||
|
|
|
@ -49,7 +49,7 @@ 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 9cb436569b94eec3e72ef3d1c018127b65a04314..e567f331968b1b1b9d6b85e31397b6a4f7ea7a84 100644
|
index 6a80292d0c9d7130c762a0a84ca77f62c4c75168..574f947602f8cf9d5abebf6180dc3fb67dc85496 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
|
||||||
@@ -727,10 +727,6 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
@@ -727,10 +727,6 @@ bool LocalFrame::DetachImpl(FrameDetachType type) {
|
||||||
|
|
|
@ -33,10 +33,10 @@ index 84fab7fcdb1a7ded880c0ff4867e09c740e7a5d2..f03f0e67c083880dc13f8f90d9375ff6
|
||||||
"//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 3d58b24d9a835274ef1128b0a55bdf4c33a7f35c..11adb84bd02dfa2c54d9eba9562043575b53afc3 100644
|
index 186cbeb02aa7b4e5b22800ece7cbc4791777356a..7137860ba1423a5ff36b85952790c5b25d6adf9d 100644
|
||||||
--- a/chrome/browser/BUILD.gn
|
--- a/chrome/browser/BUILD.gn
|
||||||
+++ b/chrome/browser/BUILD.gn
|
+++ b/chrome/browser/BUILD.gn
|
||||||
@@ -4653,7 +4653,7 @@ static_library("browser") {
|
@@ -4674,7 +4674,7 @@ static_library("browser") {
|
||||||
[ "//chrome/browser/ui/webui/signin:profile_impl" ]
|
[ "//chrome/browser/ui/webui/signin:profile_impl" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,10 +46,10 @@ index 3d58b24d9a835274ef1128b0a55bdf4c33a7f35c..11adb84bd02dfa2c54d9eba956204357
|
||||||
# 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 028d1e517e434e8bb4152ebe8b5d4ee478d2abba..664d051317f1655f5ea03d8e3f1323e670973319 100644
|
index 4a299a91dccd83f5e9595bdab2317c6ed9b26920..16f2e321030d61ee2cbab91c15fc93da3cf735b5 100644
|
||||||
--- a/chrome/test/BUILD.gn
|
--- a/chrome/test/BUILD.gn
|
||||||
+++ b/chrome/test/BUILD.gn
|
+++ b/chrome/test/BUILD.gn
|
||||||
@@ -7196,9 +7196,12 @@ test("unit_tests") {
|
@@ -7209,9 +7209,12 @@ test("unit_tests") {
|
||||||
"//chrome/notification_helper",
|
"//chrome/notification_helper",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ index 028d1e517e434e8bb4152ebe8b5d4ee478d2abba..664d051317f1655f5ea03d8e3f1323e6
|
||||||
"//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",
|
||||||
@@ -8167,6 +8170,10 @@ test("unit_tests") {
|
@@ -8180,6 +8183,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 028d1e517e434e8bb4152ebe8b5d4ee478d2abba..664d051317f1655f5ea03d8e3f1323e6
|
||||||
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",
|
||||||
@@ -8222,7 +8229,6 @@ test("unit_tests") {
|
@@ -8235,7 +8242,6 @@ test("unit_tests") {
|
||||||
# Non-android deps for "unit_tests" target.
|
# Non-android deps for "unit_tests" target.
|
||||||
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 66a885e5bc6145f8358b8c76feb3ec27c95964bd..6c9316c40c9ab11c48876d00bf55191e33b133ff 100644
|
index c3a3bf4970783804bc76ee4e71bb8233b5f215a8..78c72710b411e05ca0b6f01811076599fa66fc15 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 == "") {
|
||||||
|
|
|
@ -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 c66512a270828be3b436c1e880917f0638771cfd..f4231fa2549083e8132affa6e424ac18f28b4f41 100644
|
index db20a849f0e093a940587f94d777b7941882443d..e87536a31d03d8030b26781b9345fa7478d24afd 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
|
||||||
@@ -9703,6 +9703,7 @@ void RenderFrameHostImpl::CreateNewWindow(
|
@@ -9711,6 +9711,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 c66512a270828be3b436c1e880917f0638771cfd..f4231fa2549083e8132affa6e424ac18
|
||||||
&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 8a0128a57c6398c56e520522503ba54e03d176b3..43ca2bbe1611cbc2b533435319111dd9458de471 100644
|
index af97a08179fd92e71daff17ca75cf4c6c06be1cc..65a3b57c38419c15b071e67852789b48533fe53a 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
|
||||||
@@ -5163,6 +5163,12 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5155,6 +5155,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;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ index 8a0128a57c6398c56e520522503ba54e03d176b3..43ca2bbe1611cbc2b533435319111dd9
|
||||||
// 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
|
||||||
@@ -5204,12 +5210,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5196,12 +5202,6 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
||||||
AddWebContentsDestructionObserver(new_contents_impl);
|
AddWebContentsDestructionObserver(new_contents_impl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,10 +66,10 @@ index 09f1899c9b044a05b2e40c291f17fdf1f9f2fcac..89643bf7059d4fc0d6de6116ffe0fdac
|
||||||
|
|
||||||
// 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 4aa669a0f869359e8d8304cab6cca0a89e1e3ff3..e8701e20e5d339edc1d9089d2b236f2cf8fe6c34 100644
|
index e8a1b16cbe8aeb9c185de622250b73c402d56228..38a9b7ae1548f86ae700acc41565f340ed4dbff5 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
|
||||||
@@ -828,6 +828,8 @@ bool ContentBrowserClient::CanCreateWindow(
|
@@ -842,6 +842,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,
|
||||||
|
@ -79,7 +79,7 @@ index 4aa669a0f869359e8d8304cab6cca0a89e1e3ff3..e8701e20e5d339edc1d9089d2b236f2c
|
||||||
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 3e363b85b57478ca7228379ed089746a6eb52f2d..17b11b2a4e70f419721649568179c31228612c73 100644
|
index 9061895e64ce94700692b0b990f22a32b5e0e353..bd3cccc408c61f4c4e408fd5d093d6aa1ef0e201 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
|
||||||
@@ -200,6 +200,7 @@ class NetworkService;
|
@@ -200,6 +200,7 @@ class NetworkService;
|
||||||
|
@ -90,7 +90,7 @@ index 3e363b85b57478ca7228379ed089746a6eb52f2d..17b11b2a4e70f419721649568179c312
|
||||||
} // namespace network
|
} // namespace network
|
||||||
|
|
||||||
namespace sandbox {
|
namespace sandbox {
|
||||||
@@ -1386,6 +1387,8 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -1404,6 +1405,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,
|
||||||
|
|
|
@ -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 46d4c5e8c4f0d91d00ef51cc410ef54ebadb8eef..6d5ed56518116ce534fac98a994b7b7d9f1c6d11 100644
|
index acb6b6257ccb13aae284d9b02baada14fe9ee0cc..9269ef00d1c0ce0606a39533b839e061ba448d7e 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
|
||||||
@@ -5079,7 +5079,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5071,7 +5071,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,7 +14,7 @@ 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 4007e92316a6ac59145fa9bc021904fd1b3b0136..afedeaea7fd419f3374ffeebb7ee931219a90f93 100644
|
index 8db7e1a1ac6947a630cdf6993bf9cef772252cd9..4a4f5bb2fa0e26b921b2e40fade705e83c0bc573 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(
|
@@ -226,7 +226,7 @@ scoped_refptr<SiteInstanceImpl> SiteInstanceImpl::CreateForGuest(
|
||||||
|
|
|
@ -80,10 +80,10 @@ 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 75c32a1af7011cb8a5bcf96f5c92f66ec86609c0..ac87e2f219fb79a69ab1afb68f29525b09ab8538 100644
|
index 1bea3ad5b3c9960a7b1193e232b0c1f5c847e79d..0f416f0eeadca6bc7cc559d8879c694b7ccf62e6 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
|
||||||
@@ -2413,8 +2413,7 @@ bool Browser::IsWebContentsCreationOverridden(
|
@@ -2406,8 +2406,7 @@ bool Browser::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,
|
||||||
|
@ -93,7 +93,7 @@ index 75c32a1af7011cb8a5bcf96f5c92f66ec86609c0..ac87e2f219fb79a69ab1afb68f29525b
|
||||||
if (IsActorCoordinatorActingOnTab(
|
if (IsActorCoordinatorActingOnTab(
|
||||||
profile(), content::WebContents::FromRenderFrameHost(opener))) {
|
profile(), content::WebContents::FromRenderFrameHost(opener))) {
|
||||||
// If an ActorCoordinator is acting on the opener, prevent it from creating
|
// If an ActorCoordinator is acting on the opener, prevent it from creating
|
||||||
@@ -2426,7 +2425,7 @@ bool Browser::IsWebContentsCreationOverridden(
|
@@ -2419,7 +2418,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 75c32a1af7011cb8a5bcf96f5c92f66ec86609c0..ac87e2f219fb79a69ab1afb68f29525b
|
||||||
|
|
||||||
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 8cb8eb633a7b90ee8ad5d39b01d02d0785e97980..a90ff9bc0361a78ca12cae930d604e8834beddc8 100644
|
index 5d3ab970d01b20bef2c715ab8bc65187814b0008..6efef3f3e9c7005fae59a404929d80bebe965f02 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
|
||||||
@@ -1047,8 +1047,7 @@ class Browser : public TabStripModelObserver,
|
@@ -1041,8 +1041,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,
|
||||||
|
@ -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 27dfdfaa258312b3e096cfe784e085376026d9ef..420879681bab99129e314b8717c4edf075037d35 100644
|
index fcb7a38577a7b597be09b73cea9308b7112fee2a..3435a1d0ce5c8025b5a2005ebb4066e306579a69 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
|
||||||
@@ -5042,8 +5042,7 @@ FrameTree* WebContentsImpl::CreateNewWindow(
|
@@ -5034,8 +5034,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,
|
||||||
|
|
|
@ -6,7 +6,7 @@ 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 88a6090a49da6071fded348a901c7c62b647b503..cf6f80bd3c9af0be5065e75e09a1b4150aeab0c8 100644
|
index dc1dc1c15db217c4b8640b9c6ec6c051c0abb12b..52d8e830a68a6dfa3e3065548df3b69a5756ede2 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
|
||||||
@@ -560,7 +560,11 @@
|
@@ -560,7 +560,11 @@
|
||||||
|
|
|
@ -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 00583269d16f4b8eacb4875b12a3e69155839d12..23d5baa267333e18551d449317f3e3a6520f34a6 100644
|
index 43174a968fa1394d8c995adda338c15cace4e7be..a1cec61f882c38efa611401da69de123c99c9e7f 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
|
||||||
@@ -834,6 +834,10 @@ void RenderWidgetHostImpl::WasHidden() {
|
@@ -834,6 +834,10 @@ void RenderWidgetHostImpl::WasHidden() {
|
||||||
|
@ -21,10 +21,10 @@ index 00583269d16f4b8eacb4875b12a3e69155839d12..23d5baa267333e18551d449317f3e3a6
|
||||||
// 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 70acc7b54d862e9aac9ec8a0867893e22512f77c..03ee050653c48a22d68881151cdf8f787161a32b 100644
|
index 0bc94f2246a9357915423d1954cb240fad602a22..4663f18c832c12e8704fbb99a5aea824cd44aa5b 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
|
||||||
@@ -1016,6 +1016,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
@@ -1017,6 +1017,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
||||||
// Requests a commit and forced redraw in the renderer compositor.
|
// Requests a commit and forced redraw in the renderer compositor.
|
||||||
void ForceRedrawForTesting();
|
void ForceRedrawForTesting();
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ index 70acc7b54d862e9aac9ec8a0867893e22512f77c..03ee050653c48a22d68881151cdf8f78
|
||||||
// |routing_id| must not be MSG_ROUTING_NONE.
|
// |routing_id| must not be MSG_ROUTING_NONE.
|
||||||
// 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 5867fc3e77326991f30d835d08d3cfafe2b6687c..d719b546b8c3c59003698b26dead065da7d76341 100644
|
index e6235611a2ae643f4c968fcc0dcd5b47baa0a081..a13dd521b7263c66c94dac3d3caf6ebbed92d229 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
|
||||||
@@ -643,7 +643,7 @@ void RenderWidgetHostViewAura::HideImpl() {
|
@@ -643,7 +643,7 @@ void RenderWidgetHostViewAura::HideImpl() {
|
||||||
|
|
|
@ -112,7 +112,7 @@ index 99bf736ebe303d46ab1ced924ba929a0cd258909..e10c8782d2704ff9cff8062d201a4339
|
||||||
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 565d77c76805898c7dccc472daf2853cdafd9fbb..fd62b19ef22e162f3f4ea6ac510996bccec8fe2f 100644
|
index 77569bb055bf2dde5370b05c814ff793f1cf4b19..bc361afc2b2fb5045f43fc49471cfc7f51b4cd74 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
|
||||||
@@ -388,6 +388,9 @@ URLLoader::URLLoader(
|
@@ -388,6 +388,9 @@ URLLoader::URLLoader(
|
||||||
|
|
|
@ -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 e5776378633dba0b60a79a9044991ceaafe86e72..2beccf1bb05e8695e3e2191683e0a9bc1184544a 100644
|
index e35fc05100fd582669a021574fcd0a01e72d2302..fec6fb5ff81b362fc299b36b447c1141911ccb56 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
|
||||||
@@ -11076,6 +11076,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() {
|
@@ -11080,6 +11080,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() {
|
||||||
target_rph_id);
|
target_rph_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@ 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 70cf60c1e6afd16995cf3446d5ed9a87ce29e998..f886b4e9446c23f6b83d6d89165d09c6ab7f5d97 100644
|
index d770a26ca3e49c0aced95dc362802187d7d81269..788afc7ff05bf622d9e495988034ab9ca2207bfb 100644
|
||||||
--- a/ui/compositor/compositor.cc
|
--- a/ui/compositor/compositor.cc
|
||||||
+++ b/ui/compositor/compositor.cc
|
+++ b/ui/compositor/compositor.cc
|
||||||
@@ -362,7 +362,8 @@ void Compositor::SetLayerTreeFrameSink(
|
@@ -359,7 +359,8 @@ void Compositor::SetLayerTreeFrameSink(
|
||||||
if (display_private_) {
|
if (display_private_) {
|
||||||
disabled_swap_until_resize_ = false;
|
disabled_swap_until_resize_ = false;
|
||||||
display_private_->Resize(size());
|
display_private_->Resize(size());
|
||||||
|
@ -25,7 +25,7 @@ index 70cf60c1e6afd16995cf3446d5ed9a87ce29e998..f886b4e9446c23f6b83d6d89165d09c6
|
||||||
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_));
|
||||||
@@ -613,7 +614,9 @@ void Compositor::SetVisible(bool visible) {
|
@@ -610,7 +611,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 70cf60c1e6afd16995cf3446d5ed9a87ce29e998..f886b4e9446c23f6b83d6d89165d09c6
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
observer_list_.Notify(&CompositorObserver::OnCompositorVisibilityChanged,
|
observer_list_.Notify(&CompositorObserver::OnCompositorVisibilityChanged,
|
||||||
@@ -1077,6 +1080,15 @@ void Compositor::MaybeUpdateObserveBeginFrame() {
|
@@ -1074,6 +1077,15 @@ void Compositor::MaybeUpdateObserveBeginFrame() {
|
||||||
host_begin_frame_observer_->GetBoundRemote());
|
host_begin_frame_observer_->GetBoundRemote());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ 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 95a52f1cc2024e4a9cd694429d5304a5860a1c1e..3e096f196b9514fec5738f29e7c63bcbb9b2f640 100644
|
index ce9295ee37ad58aab9f18f80daa72f91d5e0c27e..6315906ba311111ac4bed3fdff545c84c8b4b409 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
|
||||||
@@ -3241,6 +3241,12 @@ void RenderWidgetHostViewAura::OnTextSelectionChanged(
|
@@ -3241,6 +3241,12 @@ void RenderWidgetHostViewAura::OnTextSelectionChanged(
|
||||||
|
@ -26,7 +26,7 @@ index 95a52f1cc2024e4a9cd694429d5304a5860a1c1e..3e096f196b9514fec5738f29e7c63bcb
|
||||||
RenderWidgetHostViewAura* popup_child_host_view) {
|
RenderWidgetHostViewAura* popup_child_host_view) {
|
||||||
popup_child_host_view_ = popup_child_host_view;
|
popup_child_host_view_ = popup_child_host_view;
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
|
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
|
||||||
index 6f96b83c36ee026bd37b54de55da72cc802ed699..c54ed7d8f5d4d371626865c6ae63ef2efbef1dba 100644
|
index 33d9c06d52f0ec72caad1866ef97c5fdced1b55b..f9ccdd9ef95db2ecc0976c6ed58ff8ba9a9fb2d2 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
|
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
|
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
|
||||||
@@ -654,6 +654,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
|
@@ -654,6 +654,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
|
||||||
|
@ -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 0169ccad6ae4430d5c5a05a46ad21c2421ae3631..46d4c5e8c4f0d91d00ef51cc410ef54ebadb8eef 100644
|
index fc4af3a293fd807780f39b0cddc7605031620879..acb6b6257ccb13aae284d9b02baada14fe9ee0cc 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
|
||||||
@@ -10017,7 +10017,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame(
|
@@ -10009,7 +10009,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame(
|
||||||
"WebContentsImpl::OnFocusedElementChangedInFrame",
|
"WebContentsImpl::OnFocusedElementChangedInFrame",
|
||||||
"render_frame_host", frame);
|
"render_frame_host", frame);
|
||||||
RenderWidgetHostViewBase* root_view =
|
RenderWidgetHostViewBase* root_view =
|
||||||
|
|
|
@ -11,7 +11,7 @@ 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 2551b4a2b9dfca9767c39e2e9bd79ed19c439db4..81844d36b86d5590b59d3b87f3f2d5bef3a7b24d 100644
|
index 583b7cf8c0e484d53a0b93b86e65f28ba5359906..31cedc79b9763bee5cc69066f5d4afa6f4ec7e39 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
|
||||||
@@ -2135,9 +2135,8 @@ RenderWidgetHostImpl::GetWidgetInputHandler() {
|
@@ -2135,9 +2135,8 @@ RenderWidgetHostImpl::GetWidgetInputHandler() {
|
||||||
|
|
|
@ -59,7 +59,7 @@ 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 e567f331968b1b1b9d6b85e31397b6a4f7ea7a84..9650e99108cefb8b2963913fb39049f69496a65e 100644
|
index 574f947602f8cf9d5abebf6180dc3fb67dc85496..235742d9ac2787c290c123403160d095609e8c16 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
|
||||||
@@ -3085,6 +3085,7 @@ void LocalFrame::RequestExecuteScript(
|
@@ -3085,6 +3085,7 @@ void LocalFrame::RequestExecuteScript(
|
||||||
|
|
|
@ -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 a8eea524f693c4f15c08e1c2f48b13c97d28ce75..47e0b121ced6ea129ccffe6364c5a91f826036eb 100644
|
index 39eae72b5f9f05fc9dda3b6b3a51b4d1d2bf7fcf..cd95bbd34218cb3181b887832a84893cd90c67a5 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
|
||||||
@@ -4714,6 +4714,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
@@ -4752,6 +4752,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
||||||
request->ResetStateForSiteInstanceChange();
|
request->ResetStateForSiteInstanceChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ index a8eea524f693c4f15c08e1c2f48b13c97d28ce75..47e0b121ced6ea129ccffe6364c5a91f
|
||||||
}
|
}
|
||||||
|
|
||||||
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 17b11b2a4e70f419721649568179c31228612c73..e094c512f71eef3714ed0dd6090fd6c5efab3063 100644
|
index bd3cccc408c61f4c4e408fd5d093d6aa1ef0e201..4f65dbc23f3039a0144745cd3cdefeff657b6b3e 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
|
||||||
@@ -342,6 +342,11 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -342,6 +342,11 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||||
|
|
|
@ -35,7 +35,7 @@ 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 7860ff639da1116f007fda4ecf3010d065203f8c..c61bc8d60d69d348da992c980c6222c7c21623af 100644
|
index 01c19144731d186d857dda72c3ac002a9ae2e911..14faff7dd8f32437f849011df222a37744f379d5 100644
|
||||||
--- a/base/BUILD.gn
|
--- a/base/BUILD.gn
|
||||||
+++ b/base/BUILD.gn
|
+++ b/base/BUILD.gn
|
||||||
@@ -1046,6 +1046,7 @@ component("base") {
|
@@ -1046,6 +1046,7 @@ component("base") {
|
||||||
|
@ -582,7 +582,7 @@ index d83f420d25e2c108ad400ebecae02b1ac327c058..77852c5c315ac09dddb7227adf3b840e
|
||||||
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 4c02b0aef40b31a0dd55859c718842e25652fe74..0ad5b87248ac7c15774a870d5a4268c60a2c36c0 100644
|
index 1006244a7ed861fdd58bfb3af926a69af2061322..4074a0429ce78963d4406f957c96382333d760ed 100644
|
||||||
--- a/content/browser/BUILD.gn
|
--- a/content/browser/BUILD.gn
|
||||||
+++ b/content/browser/BUILD.gn
|
+++ b/content/browser/BUILD.gn
|
||||||
@@ -342,6 +342,7 @@ source_set("browser") {
|
@@ -342,6 +342,7 @@ source_set("browser") {
|
||||||
|
@ -594,7 +594,7 @@ index 4c02b0aef40b31a0dd55859c718842e25652fe74..0ad5b87248ac7c15774a870d5a4268c6
|
||||||
|
|
||||||
public_deps = [
|
public_deps = [
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.h b/content/browser/renderer_host/render_widget_host_view_mac.h
|
||||||
index 1b923f0e0dc6d7dc9e67d278b8da00b35745241e..6f7ee79df9b9e3026663e2a4637007de5b5da902 100644
|
index c8f64d6c7a7a790659a05fd626e582608c46a8a7..21f26e2c619c632d6ccb331ddd7a6870340f644e 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.h
|
||||||
@@ -24,6 +24,7 @@
|
@@ -24,6 +24,7 @@
|
||||||
|
@ -628,7 +628,7 @@ index 1b923f0e0dc6d7dc9e67d278b8da00b35745241e..6f7ee79df9b9e3026663e2a4637007de
|
||||||
// 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 27f481c6a31cdd59684eb38ea8b2ffdcb5849ddf..88a6090a49da6071fded348a901c7c62b647b503 100644
|
index 8b32428734dbc038b52f2d2b7e738cc508216820..dc1dc1c15db217c4b8640b9c6ec6c051c0abb12b 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
|
||||||
@@ -50,6 +50,7 @@
|
@@ -50,6 +50,7 @@
|
||||||
|
@ -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 4df384721ee529863d35ae7afe8249e3989697b0..2369ebc00ff008a94409d68404d3017f85592f74 100644
|
index 5544ddc8faae9cc4a75c812227a94df4ad4f5e53..d6fa2a588fec9895101dc4c308eb84b015a908aa 100644
|
||||||
--- a/content/test/BUILD.gn
|
--- a/content/test/BUILD.gn
|
||||||
+++ b/content/test/BUILD.gn
|
+++ b/content/test/BUILD.gn
|
||||||
@@ -664,6 +664,7 @@ static_library("test_support") {
|
@@ -664,6 +664,7 @@ static_library("test_support") {
|
||||||
|
@ -816,7 +816,7 @@ index 4df384721ee529863d35ae7afe8249e3989697b0..2369ebc00ff008a94409d68404d3017f
|
||||||
}
|
}
|
||||||
|
|
||||||
mojom("content_test_mojo_bindings") {
|
mojom("content_test_mojo_bindings") {
|
||||||
@@ -1962,6 +1964,7 @@ test("content_browsertests") {
|
@@ -1963,6 +1965,7 @@ test("content_browsertests") {
|
||||||
"//ui/shell_dialogs",
|
"//ui/shell_dialogs",
|
||||||
"//ui/snapshot",
|
"//ui/snapshot",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
|
@ -824,7 +824,7 @@ index 4df384721ee529863d35ae7afe8249e3989697b0..2369ebc00ff008a94409d68404d3017f
|
||||||
]
|
]
|
||||||
|
|
||||||
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) {
|
||||||
@@ -3292,6 +3295,7 @@ test("content_unittests") {
|
@@ -3293,6 +3296,7 @@ test("content_unittests") {
|
||||||
"//ui/shell_dialogs:shell_dialogs",
|
"//ui/shell_dialogs:shell_dialogs",
|
||||||
"//ui/webui:test_support",
|
"//ui/webui:test_support",
|
||||||
"//url",
|
"//url",
|
||||||
|
@ -1584,10 +1584,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 30440d1b5ba071c8cf2076e7e7acb24681f78a2f..ca18e61ff2eb743fabeb10af06c208f84b526dd8 100644
|
index 349a50ce687d5594296ce3c302938424be2e739b..0c5313b8f31a97747ae28f2c188e0fb591e5cc36 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
|
||||||
@@ -295,6 +295,7 @@ component("platform") {
|
@@ -296,6 +296,7 @@ component("platform") {
|
||||||
"AppKit.framework",
|
"AppKit.framework",
|
||||||
"Foundation.framework",
|
"Foundation.framework",
|
||||||
]
|
]
|
||||||
|
|
|
@ -881,10 +881,10 @@ index 97cb6458bc9eec767db89b56abfc5f4b4136ff7b..d9a0b343158b8464b5c9aa8e0e655c0b
|
||||||
ScriptingThrottler scripting_throttler_;
|
ScriptingThrottler scripting_throttler_;
|
||||||
|
|
||||||
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 0ad5b87248ac7c15774a870d5a4268c60a2c36c0..2d18faace5c0021e0bf04b8e089a8db1593d1fc1 100644
|
index 4074a0429ce78963d4406f957c96382333d760ed..c8f1114cb5cd892c80500da5ec4828cf5ad77dc9 100644
|
||||||
--- a/content/browser/BUILD.gn
|
--- a/content/browser/BUILD.gn
|
||||||
+++ b/content/browser/BUILD.gn
|
+++ b/content/browser/BUILD.gn
|
||||||
@@ -3163,8 +3163,9 @@ source_set("browser") {
|
@@ -3161,8 +3161,9 @@ source_set("browser") {
|
||||||
"//ppapi/shared_impl",
|
"//ppapi/shared_impl",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ index a54a0dedf8ef1cfffa4e80a4707debed0e83d277..e66e71fdbabb40a5307b12cd8965e773
|
||||||
// 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 23d5baa267333e18551d449317f3e3a6520f34a6..2551b4a2b9dfca9767c39e2e9bd79ed19c439db4 100644
|
index a1cec61f882c38efa611401da69de123c99c9e7f..583b7cf8c0e484d53a0b93b86e65f28ba5359906 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
|
||||||
@@ -2069,6 +2069,9 @@ void RenderWidgetHostImpl::SetCursor(const ui::Cursor& cursor) {
|
@@ -2069,6 +2069,9 @@ void RenderWidgetHostImpl::SetCursor(const ui::Cursor& cursor) {
|
||||||
|
@ -44,10 +44,10 @@ index 23d5baa267333e18551d449317f3e3a6520f34a6..2551b4a2b9dfca9767c39e2e9bd79ed1
|
||||||
|
|
||||||
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 43ca2bbe1611cbc2b533435319111dd9458de471..27dfdfaa258312b3e096cfe784e085376026d9ef 100644
|
index 65a3b57c38419c15b071e67852789b48533fe53a..fcb7a38577a7b597be09b73cea9308b7112fee2a 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
|
||||||
@@ -5915,6 +5915,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() {
|
@@ -5907,6 +5907,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() {
|
||||||
return text_input_manager_.get();
|
return text_input_manager_.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,10 +60,10 @@ index 43ca2bbe1611cbc2b533435319111dd9458de471..27dfdfaa258312b3e096cfe784e08537
|
||||||
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 05a401f48ba5a784c547c3fe1f4fb5252af3014d..3e556e807577123599f957d5f9d24b084014e150 100644
|
index de9650b781ccb250fd5f59aaea8dc6e09d7816ef..09ae0904e236336058bbf1fe9c4d211ddbe146a4 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
|
||||||
@@ -1188,6 +1188,7 @@ class CONTENT_EXPORT WebContentsImpl
|
@@ -1186,6 +1186,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;
|
||||||
|
|
|
@ -7,21 +7,28 @@ 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 9ab0efff477274bb08a99a64c2b78226aae1939e..8fbc3cd5328a74b2d65d534d60b0042bf986e2ad 100644
|
index a7cfbeed265f3fa5caa8f0dd8002a42cd6f88d7d..5ce930e4a11dee51d291f22b09daf4f805da0d39 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
|
||||||
@@ -638,7 +638,9 @@ bool WasmJSPromiseIntegrationEnabledCallback(v8::Local<v8::Context> context) {
|
@@ -638,7 +638,9 @@ bool WasmJSPromiseIntegrationEnabledCallback(v8::Local<v8::Context> context) {
|
||||||
execution_context);
|
execution_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
-v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
-v8::MaybeLocal<v8::Promise> HostImportModuleWithPhaseDynamically(
|
||||||
+}
|
+} // namespace
|
||||||
+
|
+
|
||||||
+v8::MaybeLocal<v8::Promise> V8Initializer::HostImportModuleDynamically(
|
+v8::MaybeLocal<v8::Promise> V8Initializer::HostImportModuleWithPhaseDynamically(
|
||||||
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,
|
||||||
@@ -716,7 +718,7 @@ v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
@@ -723,13 +725,13 @@ v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
||||||
|
v8::Local<v8::Value> v8_referrer_resource_url,
|
||||||
|
v8::Local<v8::String> v8_specifier,
|
||||||
|
v8::Local<v8::FixedArray> v8_import_attributes) {
|
||||||
|
- return HostImportModuleWithPhaseDynamically(
|
||||||
|
+ return V8Initializer::HostImportModuleWithPhaseDynamically(
|
||||||
|
context, v8_host_defined_options, v8_referrer_resource_url, v8_specifier,
|
||||||
|
v8::ModuleImportPhase::kEvaluation, v8_import_attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/C/#hostgetimportmetaproperties
|
// https://html.spec.whatwg.org/C/#hostgetimportmetaproperties
|
||||||
|
@ -30,7 +37,7 @@ index 9ab0efff477274bb08a99a64c2b78226aae1939e..8fbc3cd5328a74b2d65d534d60b0042b
|
||||||
v8::Local<v8::Module> module,
|
v8::Local<v8::Module> module,
|
||||||
v8::Local<v8::Object> meta) {
|
v8::Local<v8::Object> meta) {
|
||||||
v8::Isolate* isolate = context->GetIsolate();
|
v8::Isolate* isolate = context->GetIsolate();
|
||||||
@@ -763,9 +765,6 @@ std::ostream& operator<<(std::ostream& os, const PrintV8OOM& oom_details) {
|
@@ -776,9 +778,6 @@ std::ostream& operator<<(std::ostream& os, const PrintV8OOM& oom_details) {
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,12 +47,12 @@ index 9ab0efff477274bb08a99a64c2b78226aae1939e..8fbc3cd5328a74b2d65d534d60b0042b
|
||||||
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.
|
||||||
@@ -785,9 +784,9 @@ void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
@@ -800,9 +799,9 @@ void V8Initializer::InitializeV8Common(v8::Isolate* isolate) {
|
||||||
isolate->SetWasmJSPIEnabledCallback(WasmJSPromiseIntegrationEnabledCallback);
|
|
||||||
isolate->SetSharedArrayBufferConstructorEnabledCallback(
|
|
||||||
SharedArrayBufferConstructorEnabledCallback);
|
SharedArrayBufferConstructorEnabledCallback);
|
||||||
- isolate->SetHostImportModuleDynamicallyCallback(HostImportModuleDynamically);
|
isolate->SetHostImportModuleDynamicallyCallback(HostImportModuleDynamically);
|
||||||
+ isolate->SetHostImportModuleDynamicallyCallback(V8Initializer::HostImportModuleDynamically);
|
isolate->SetHostImportModuleWithPhaseDynamicallyCallback(
|
||||||
|
- HostImportModuleWithPhaseDynamically);
|
||||||
|
+ V8Initializer::HostImportModuleWithPhaseDynamically);
|
||||||
isolate->SetHostInitializeImportMetaObjectCallback(
|
isolate->SetHostInitializeImportMetaObjectCallback(
|
||||||
- HostGetImportMetaProperties);
|
- HostGetImportMetaProperties);
|
||||||
+ V8Initializer::HostGetImportMetaProperties);
|
+ V8Initializer::HostGetImportMetaProperties);
|
||||||
|
@ -53,18 +60,19 @@ index 9ab0efff477274bb08a99a64c2b78226aae1939e..8fbc3cd5328a74b2d65d534d60b0042b
|
||||||
isolate->SetMetricsRecorder(std::make_shared<V8MetricsRecorder>(isolate));
|
isolate->SetMetricsRecorder(std::make_shared<V8MetricsRecorder>(isolate));
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.h b/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.h b/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
||||||
index be5df8f98c3f7e308d79d43c1811a16c644b6158..5c25a3bb7f04ea74ee8587b158e125f4aa651912 100644
|
index be5df8f98c3f7e308d79d43c1811a16c644b6158..599121e3dabecf1a8192ba410ff447dcb540376c 100644
|
||||||
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
||||||
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.h
|
||||||
@@ -85,6 +85,17 @@ class CORE_EXPORT V8Initializer {
|
@@ -85,6 +85,18 @@ class CORE_EXPORT V8Initializer {
|
||||||
static void PromiseRejectHandlerInMainThread(v8::PromiseRejectMessage data);
|
static void PromiseRejectHandlerInMainThread(v8::PromiseRejectMessage data);
|
||||||
static void ExceptionPropagationCallback(v8::ExceptionPropagationMessage);
|
static void ExceptionPropagationCallback(v8::ExceptionPropagationMessage);
|
||||||
|
|
||||||
+ static v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
+ static v8::MaybeLocal<v8::Promise> HostImportModuleWithPhaseDynamically(
|
||||||
+ 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,
|
||||||
+ v8::Local<v8::String> v8_specifier,
|
+ v8::Local<v8::String> v8_specifier,
|
||||||
|
+ v8::ModuleImportPhase import_phase,
|
||||||
+ v8::Local<v8::FixedArray> v8_import_assertions);
|
+ v8::Local<v8::FixedArray> v8_import_assertions);
|
||||||
+
|
+
|
||||||
+ static void HostGetImportMetaProperties(v8::Local<v8::Context> context,
|
+ static void HostGetImportMetaProperties(v8::Local<v8::Context> context,
|
||||||
|
|
|
@ -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 6d5ed56518116ce534fac98a994b7b7d9f1c6d11..91b66c472ba0398efad3a0a3cfe0d39eee529eaa 100644
|
index 9269ef00d1c0ce0606a39533b839e061ba448d7e..7c4851fb5f9e28ab77837755993d375e91a0dcac 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
|
||||||
@@ -10154,25 +10154,13 @@ void WebContentsImpl::RendererUnresponsive(
|
@@ -10146,25 +10146,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);
|
||||||
|
|
|
@ -233,10 +233,10 @@ index 7c99a9512e6f65713fe8483cef7b7c9b494b4491..8fb6cf252961c9773d1a6a09d47bec6a
|
||||||
}
|
}
|
||||||
|
|
||||||
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 201f17f35a4657f43c70b7b44871a7dfea681635..2ec678b805c8c8eda47c3dbf88f567a061cc63dc 100644
|
index 8dcb54b4c48cde0d11e682cc23dacbec9c4814df..c55f4d02691ec3b2255c47e89491fa76d8b996ea 100644
|
||||||
--- a/content/common/features.cc
|
--- a/content/common/features.cc
|
||||||
+++ b/content/common/features.cc
|
+++ b/content/common/features.cc
|
||||||
@@ -301,6 +301,14 @@ BASE_FEATURE(kIOSurfaceCapturer,
|
@@ -308,6 +308,14 @@ BASE_FEATURE(kIOSurfaceCapturer,
|
||||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -252,10 +252,10 @@ index 201f17f35a4657f43c70b7b44871a7dfea681635..2ec678b805c8c8eda47c3dbf88f567a0
|
||||||
// invalidated upon notifications sent by base::SystemMonitor. If disabled, the
|
// invalidated upon notifications sent by base::SystemMonitor. If disabled, the
|
||||||
// cache is considered invalid on every enumeration request.
|
// cache is considered invalid on every enumeration request.
|
||||||
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 4dc19d79152a1f4cf29e8c484d0acdf7d42ed61e..dbe555a29e96f83d7b8122b3d05578ac83863888 100644
|
index 6ffc0e6c10c190b410c9f7269a6146447a38c800..bba9eb2e3291539a4565b306f4c2c687b7d27541 100644
|
||||||
--- a/content/common/features.h
|
--- a/content/common/features.h
|
||||||
+++ b/content/common/features.h
|
+++ b/content/common/features.h
|
||||||
@@ -100,6 +100,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan);
|
@@ -101,6 +101,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan);
|
||||||
#if BUILDFLAG(IS_MAC)
|
#if BUILDFLAG(IS_MAC)
|
||||||
CONTENT_EXPORT BASE_DECLARE_FEATURE(kIOSurfaceCapturer);
|
CONTENT_EXPORT BASE_DECLARE_FEATURE(kIOSurfaceCapturer);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -9,10 +9,10 @@ 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 420879681bab99129e314b8717c4edf075037d35..602e2f8049a673d4ccfaaf6891fa1b5a8140781f 100644
|
index 3435a1d0ce5c8025b5a2005ebb4066e306579a69..3d37f389e0d9685119a5776832e0e005f8bcc6ca 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
|
||||||
@@ -3966,6 +3966,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
@@ -3941,6 +3941,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
||||||
params.main_frame_name, GetOpener(), primary_main_frame_policy,
|
params.main_frame_name, GetOpener(), primary_main_frame_policy,
|
||||||
base::UnguessableToken::Create());
|
base::UnguessableToken::Create());
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ index 420879681bab99129e314b8717c4edf075037d35..602e2f8049a673d4ccfaaf6891fa1b5a
|
||||||
std::unique_ptr<WebContentsViewDelegate> delegate =
|
std::unique_ptr<WebContentsViewDelegate> delegate =
|
||||||
GetContentClient()->browser()->GetWebContentsViewDelegate(this);
|
GetContentClient()->browser()->GetWebContentsViewDelegate(this);
|
||||||
|
|
||||||
@@ -3976,6 +3983,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
@@ -3951,6 +3958,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params,
|
||||||
view_ = CreateWebContentsView(this, std::move(delegate),
|
view_ = CreateWebContentsView(this, std::move(delegate),
|
||||||
&render_view_host_delegate_view_);
|
&render_view_host_delegate_view_);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 f4231fa2549083e8132affa6e424ac18f28b4f41..32d4d22f4d0106c8f598e8e44545788c32665947 100644
|
index e87536a31d03d8030b26781b9345fa7478d24afd..6182d198b65fd26e594ff04bbf4dc483299d19ed 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
|
||||||
@@ -8809,6 +8809,17 @@ void RenderFrameHostImpl::EnterFullscreen(
|
@@ -8817,6 +8817,17 @@ void RenderFrameHostImpl::EnterFullscreen(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,10 +37,10 @@ index f4231fa2549083e8132affa6e424ac18f28b4f41..32d4d22f4d0106c8f598e8e44545788c
|
||||||
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 602e2f8049a673d4ccfaaf6891fa1b5a8140781f..0169ccad6ae4430d5c5a05a46ad21c2421ae3631 100644
|
index 3d37f389e0d9685119a5776832e0e005f8bcc6ca..fc4af3a293fd807780f39b0cddc7605031620879 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
|
||||||
@@ -4255,21 +4255,25 @@ KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent(
|
@@ -4231,21 +4231,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");
|
||||||
|
@ -78,7 +78,7 @@ index 602e2f8049a673d4ccfaaf6891fa1b5a8140781f..0169ccad6ae4430d5c5a05a46ad21c24
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebContentsImpl::HandleMouseEvent(const blink::WebMouseEvent& event) {
|
bool WebContentsImpl::HandleMouseEvent(const blink::WebMouseEvent& event) {
|
||||||
@@ -4428,7 +4432,7 @@ void WebContentsImpl::EnterFullscreenMode(
|
@@ -4404,7 +4408,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());
|
||||||
|
|
|
@ -438,6 +438,7 @@ int ElectronBrowserMainParts::PreMainMessageLoopRun() {
|
||||||
// BrowserContextKeyedAPIServiceFactories require an ExtensionsBrowserClient.
|
// BrowserContextKeyedAPIServiceFactories require an ExtensionsBrowserClient.
|
||||||
extensions_browser_client_ =
|
extensions_browser_client_ =
|
||||||
std::make_unique<ElectronExtensionsBrowserClient>();
|
std::make_unique<ElectronExtensionsBrowserClient>();
|
||||||
|
extensions_browser_client_->Init();
|
||||||
extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get());
|
extensions::ExtensionsBrowserClient::Set(extensions_browser_client_.get());
|
||||||
|
|
||||||
extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt();
|
extensions::EnsureBrowserContextKeyedServiceFactoriesBuilt();
|
||||||
|
|
|
@ -55,24 +55,27 @@ using extensions::ExtensionsBrowserClient;
|
||||||
namespace electron {
|
namespace electron {
|
||||||
|
|
||||||
ElectronExtensionsBrowserClient::ElectronExtensionsBrowserClient()
|
ElectronExtensionsBrowserClient::ElectronExtensionsBrowserClient()
|
||||||
: api_client_(std::make_unique<extensions::ElectronExtensionsAPIClient>()),
|
: extension_cache_(std::make_unique<extensions::NullExtensionCache>()) {
|
||||||
process_manager_delegate_(
|
|
||||||
std::make_unique<extensions::ElectronProcessManagerDelegate>()),
|
|
||||||
extension_cache_(std::make_unique<extensions::NullExtensionCache>()) {
|
|
||||||
// Electron does not have a concept of channel, so leave UNKNOWN to
|
|
||||||
// enable all channel-dependent extension APIs.
|
|
||||||
extensions::SetCurrentChannel(version_info::Channel::UNKNOWN);
|
|
||||||
resource_manager_ =
|
|
||||||
std::make_unique<extensions::ElectronComponentExtensionResourceManager>();
|
|
||||||
|
|
||||||
AddAPIProvider(
|
AddAPIProvider(
|
||||||
std::make_unique<extensions::CoreExtensionsBrowserAPIProvider>());
|
std::make_unique<extensions::CoreExtensionsBrowserAPIProvider>());
|
||||||
AddAPIProvider(
|
AddAPIProvider(
|
||||||
std::make_unique<extensions::ElectronExtensionsBrowserAPIProvider>());
|
std::make_unique<extensions::ElectronExtensionsBrowserAPIProvider>());
|
||||||
|
|
||||||
|
// Electron does not have a concept of channel, so leave UNKNOWN to
|
||||||
|
// enable all channel-dependent extension APIs.
|
||||||
|
extensions::SetCurrentChannel(version_info::Channel::UNKNOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
ElectronExtensionsBrowserClient::~ElectronExtensionsBrowserClient() = default;
|
ElectronExtensionsBrowserClient::~ElectronExtensionsBrowserClient() = default;
|
||||||
|
|
||||||
|
void ElectronExtensionsBrowserClient::Init() {
|
||||||
|
process_manager_delegate_ =
|
||||||
|
std::make_unique<extensions::ElectronProcessManagerDelegate>();
|
||||||
|
api_client_ = std::make_unique<extensions::ElectronExtensionsAPIClient>();
|
||||||
|
resource_manager_ =
|
||||||
|
std::make_unique<extensions::ElectronComponentExtensionResourceManager>();
|
||||||
|
}
|
||||||
|
|
||||||
bool ElectronExtensionsBrowserClient::IsShuttingDown() {
|
bool ElectronExtensionsBrowserClient::IsShuttingDown() {
|
||||||
return electron::Browser::Get()->is_shutting_down();
|
return electron::Browser::Get()->is_shutting_down();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ class ElectronExtensionsBrowserClient
|
||||||
const ElectronExtensionsBrowserClient&) = delete;
|
const ElectronExtensionsBrowserClient&) = delete;
|
||||||
|
|
||||||
// ExtensionsBrowserClient overrides:
|
// ExtensionsBrowserClient overrides:
|
||||||
|
void Init() override;
|
||||||
bool IsShuttingDown() override;
|
bool IsShuttingDown() override;
|
||||||
bool AreExtensionsDisabled(const base::CommandLine& command_line,
|
bool AreExtensionsDisabled(const base::CommandLine& command_line,
|
||||||
content::BrowserContext* context) override;
|
content::BrowserContext* context) override;
|
||||||
|
|
|
@ -212,18 +212,19 @@ bool AllowWasmCodeGenerationCallback(v8::Local<v8::Context> context,
|
||||||
return node::AllowWasmCodeGenerationCallback(context, source);
|
return node::AllowWasmCodeGenerationCallback(context, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
v8::MaybeLocal<v8::Promise> HostImportModuleWithPhaseDynamically(
|
||||||
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,
|
||||||
v8::Local<v8::String> v8_specifier,
|
v8::Local<v8::String> v8_specifier,
|
||||||
v8::Local<v8::FixedArray> v8_import_assertions) {
|
v8::ModuleImportPhase import_phase,
|
||||||
|
v8::Local<v8::FixedArray> v8_import_attributes) {
|
||||||
if (node::Environment::GetCurrent(context) == nullptr) {
|
if (node::Environment::GetCurrent(context) == nullptr) {
|
||||||
if (electron::IsBrowserProcess() || electron::IsUtilityProcess())
|
if (electron::IsBrowserProcess() || electron::IsUtilityProcess())
|
||||||
return {};
|
return {};
|
||||||
return blink::V8Initializer::HostImportModuleDynamically(
|
return blink::V8Initializer::HostImportModuleWithPhaseDynamically(
|
||||||
context, v8_host_defined_options, v8_referrer_resource_url,
|
context, v8_host_defined_options, v8_referrer_resource_url,
|
||||||
v8_specifier, v8_import_assertions);
|
v8_specifier, import_phase, v8_import_attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're running with contextIsolation enabled in the renderer process,
|
// If we're running with contextIsolation enabled in the renderer process,
|
||||||
|
@ -233,15 +234,29 @@ v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
||||||
blink::WebLocalFrame::FrameForContext(context);
|
blink::WebLocalFrame::FrameForContext(context);
|
||||||
if (!frame || frame->GetScriptContextWorldId(context) !=
|
if (!frame || frame->GetScriptContextWorldId(context) !=
|
||||||
electron::WorldIDs::ISOLATED_WORLD_ID) {
|
electron::WorldIDs::ISOLATED_WORLD_ID) {
|
||||||
return blink::V8Initializer::HostImportModuleDynamically(
|
return blink::V8Initializer::HostImportModuleWithPhaseDynamically(
|
||||||
context, v8_host_defined_options, v8_referrer_resource_url,
|
context, v8_host_defined_options, v8_referrer_resource_url,
|
||||||
v8_specifier, v8_import_assertions);
|
v8_specifier, import_phase, v8_import_attributes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Switch to node::loader::ImportModuleDynamicallyWithPhase
|
||||||
|
// once we land the Node.js version that has it in upstream.
|
||||||
|
CHECK(import_phase == v8::ModuleImportPhase::kEvaluation);
|
||||||
return node::loader::ImportModuleDynamically(
|
return node::loader::ImportModuleDynamically(
|
||||||
context, v8_host_defined_options, v8_referrer_resource_url, v8_specifier,
|
context, v8_host_defined_options, v8_referrer_resource_url, v8_specifier,
|
||||||
v8_import_assertions);
|
v8_import_attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
v8::MaybeLocal<v8::Promise> HostImportModuleDynamically(
|
||||||
|
v8::Local<v8::Context> context,
|
||||||
|
v8::Local<v8::Data> v8_host_defined_options,
|
||||||
|
v8::Local<v8::Value> v8_referrer_resource_url,
|
||||||
|
v8::Local<v8::String> v8_specifier,
|
||||||
|
v8::Local<v8::FixedArray> v8_import_attributes) {
|
||||||
|
return HostImportModuleWithPhaseDynamically(
|
||||||
|
context, v8_host_defined_options, v8_referrer_resource_url, v8_specifier,
|
||||||
|
v8::ModuleImportPhase::kEvaluation, v8_import_attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HostInitializeImportMetaObject(v8::Local<v8::Context> context,
|
void HostInitializeImportMetaObject(v8::Local<v8::Context> context,
|
||||||
|
@ -780,6 +795,8 @@ std::shared_ptr<node::Environment> NodeBindings::CreateEnvironment(
|
||||||
node::SetIsolateUpForNode(context->GetIsolate(), is);
|
node::SetIsolateUpForNode(context->GetIsolate(), is);
|
||||||
context->GetIsolate()->SetHostImportModuleDynamicallyCallback(
|
context->GetIsolate()->SetHostImportModuleDynamicallyCallback(
|
||||||
HostImportModuleDynamically);
|
HostImportModuleDynamically);
|
||||||
|
context->GetIsolate()->SetHostImportModuleWithPhaseDynamicallyCallback(
|
||||||
|
HostImportModuleWithPhaseDynamically);
|
||||||
context->GetIsolate()->SetHostInitializeImportMetaObjectCallback(
|
context->GetIsolate()->SetHostInitializeImportMetaObjectCallback(
|
||||||
HostInitializeImportMetaObject);
|
HostInitializeImportMetaObject);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue