diff --git a/DEPS b/DEPS index fd7a5b27a3..0b63a1984f 100644 --- a/DEPS +++ b/DEPS @@ -2,7 +2,7 @@ gclient_gn_args_from = 'src' vars = { 'chromium_version': - '138.0.7178.0', + '138.0.7190.0', 'node_version': 'v22.16.0', 'nan_version': diff --git a/patches/chromium/.patches b/patches/chromium/.patches index 6fb48c37eb..8cfe4f1c44 100644 --- a/patches/chromium/.patches +++ b/patches/chromium/.patches @@ -134,3 +134,4 @@ fix_win32_synchronous_spellcheck.patch fix_enable_wrap_iter_in_string_view_and_array.patch chore_grandfather_in_electron_views_and_delegates.patch refactor_patch_electron_permissiontypes_into_blink.patch +revert_webgl_add_stub_webgl_2_renderingcontextwebgpu.patch diff --git a/patches/chromium/adjust_accessibility_ui_for_electron.patch b/patches/chromium/adjust_accessibility_ui_for_electron.patch index 13cd0e0b16..894fd5344d 100644 --- a/patches/chromium/adjust_accessibility_ui_for_electron.patch +++ b/patches/chromium/adjust_accessibility_ui_for_electron.patch @@ -10,7 +10,7 @@ usage of BrowserList and Browser as we subclass related methods and use our WindowList. diff --git a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc -index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49c4515aa4 100644 +index afd58dd8c32582c17a3a9508f0755ac894022a40..7034cb00d27e2c6ca06d89ae59365934762a402b 100644 --- a/chrome/browser/ui/webui/accessibility/accessibility_ui.cc +++ b/chrome/browser/ui/webui/accessibility/accessibility_ui.cc @@ -48,6 +48,7 @@ @@ -20,8 +20,8 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 +#include "electron/shell/browser/electron_browser_context.h" #include "ui/accessibility/accessibility_features.h" #include "ui/accessibility/ax_updates_and_events.h" - #include "ui/accessibility/platform/ax_platform_node.h" -@@ -169,7 +170,7 @@ base::Value::Dict BuildTargetDescriptor(content::RenderViewHost* rvh) { + #include "ui/accessibility/platform/ax_platform.h" +@@ -174,7 +175,7 @@ base::Value::Dict BuildTargetDescriptor(content::RenderViewHost* rvh) { rvh->GetRoutingID(), accessibility_mode); } @@ -30,7 +30,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 base::Value::Dict BuildTargetDescriptor(Browser* browser) { base::Value::Dict target_data; target_data.Set(kSessionIdField, browser->session_id().id()); -@@ -193,7 +194,7 @@ void HandleAccessibilityRequestCallback( +@@ -198,7 +199,7 @@ void HandleAccessibilityRequestCallback( auto& browser_accessibility_state = *content::BrowserAccessibilityState::GetInstance(); base::Value::Dict data; @@ -39,8 +39,8 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 ui::AXMode mode = browser_accessibility_state.GetAccessibilityMode(); bool native = mode.has_mode(ui::AXMode::kNativeAPIs); bool web = mode.has_mode(ui::AXMode::kWebContents); -@@ -246,7 +247,7 @@ void HandleAccessibilityRequestCallback( - initial_process_mode.has_mode(ui::AXMode::kHTML))); +@@ -259,7 +260,7 @@ void HandleAccessibilityRequestCallback( + data.Set(kIsScreenReaderActive, is_screen_reader_active); std::string pref_api_type = - pref->GetString(prefs::kShownAccessibilityApiType); @@ -48,7 +48,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 bool pref_api_type_supported = false; std::vector supported_api_types = -@@ -314,11 +315,11 @@ void HandleAccessibilityRequestCallback( +@@ -327,11 +328,11 @@ void HandleAccessibilityRequestCallback( data.Set(kPagesField, std::move(page_list)); base::Value::List browser_list; @@ -62,7 +62,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 data.Set(kBrowsersField, std::move(browser_list)); std::string json_string; -@@ -792,7 +793,8 @@ void AccessibilityUIMessageHandler::SetGlobalString( +@@ -805,7 +806,8 @@ void AccessibilityUIMessageHandler::SetGlobalString( const std::string value = CheckJSValue(data.FindString(kValueField)); if (string_name == kApiTypeField) { @@ -72,7 +72,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 pref->SetString(prefs::kShownAccessibilityApiType, value); } } -@@ -846,7 +848,8 @@ void AccessibilityUIMessageHandler::RequestWebContentsTree( +@@ -859,7 +861,8 @@ void AccessibilityUIMessageHandler::RequestWebContentsTree( AXPropertyFilter::ALLOW_EMPTY); AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY); @@ -82,7 +82,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 ui::AXApiType::Type api_type = ui::AXApiType::From(pref->GetString(prefs::kShownAccessibilityApiType)); std::string accessibility_contents = -@@ -873,6 +876,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree( +@@ -886,6 +889,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree( AXPropertyFilter::ALLOW_EMPTY); AddPropertyFilters(property_filters, deny, AXPropertyFilter::DENY); @@ -90,7 +90,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 for (Browser* browser : *BrowserList::GetInstance()) { if (browser->session_id().id() == session_id) { base::Value::Dict result = BuildTargetDescriptor(browser); -@@ -885,6 +889,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree( +@@ -898,6 +902,7 @@ void AccessibilityUIMessageHandler::RequestNativeUITree( return; } } @@ -98,7 +98,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 #endif // !BUILDFLAG(IS_ANDROID) // No browser with the specified |session_id| was found. base::Value::Dict result; -@@ -928,11 +933,13 @@ void AccessibilityUIMessageHandler::StopRecording( +@@ -941,11 +946,13 @@ void AccessibilityUIMessageHandler::StopRecording( } ui::AXApiType::Type AccessibilityUIMessageHandler::GetRecordingApiType() { @@ -115,7 +115,7 @@ index 476b993aa130a1e7d2bc61993b27044d674425bc..3c5dfca61be10f2fd4126a8ba5bcfa49 // Check to see if it is in the supported types list. if (std::find(supported_types.begin(), supported_types.end(), api_type) == supported_types.end()) { -@@ -1002,8 +1009,11 @@ void AccessibilityUIMessageHandler::RequestAccessibilityEvents( +@@ -1015,8 +1022,11 @@ void AccessibilityUIMessageHandler::RequestAccessibilityEvents( // static void AccessibilityUIMessageHandler::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { diff --git a/patches/chromium/allow_in-process_windows_to_have_different_web_prefs.patch b/patches/chromium/allow_in-process_windows_to_have_different_web_prefs.patch index 426dc24c4e..912663a418 100644 --- a/patches/chromium/allow_in-process_windows_to_have_different_web_prefs.patch +++ b/patches/chromium/allow_in-process_windows_to_have_different_web_prefs.patch @@ -8,7 +8,7 @@ WebPreferences of in-process child windows, rather than relying on process-level command line switches, as before. diff --git a/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc b/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc -index 9fe216ae76191985751c5aff735cb38ba747a5cb..274dbe4fe45f5ca03e4f93fa1ef94f22ca3559ed 100644 +index b3e72c9d198a350a164d4abc37fcb19024f43c57..909ac417f24c0e104cba286b6420d8c820784d31 100644 --- a/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc +++ b/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc @@ -149,6 +149,19 @@ bool StructTraitsaccelerated_video_decode_enabled = data.accelerated_video_decode_enabled(); diff --git a/third_party/blink/public/common/web_preferences/web_preferences.h b/third_party/blink/public/common/web_preferences/web_preferences.h -index 2d9ef567d7aba3d78ecb0637fc7a31cbaaba564b..9c6c5e3b2668bdfa3ec1f5f0482bc1294bfed9b0 100644 +index 1ee685e777e27a56da50d38ae7710abb240699a1..7f0ed7e9b0c4c0077eaa733e81ebc421f0ddd02a 100644 --- a/third_party/blink/public/common/web_preferences/web_preferences.h +++ b/third_party/blink/public/common/web_preferences/web_preferences.h @@ -9,6 +9,7 @@ @@ -65,7 +65,7 @@ index 2d9ef567d7aba3d78ecb0637fc7a31cbaaba564b..9c6c5e3b2668bdfa3ec1f5f0482bc129 // chrome, except for the cases where it would require lots of extra work for // the embedder to use the same default value. diff --git a/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h b/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h -index 86e4152b85d85ed3c620458567509e0eaa2ad5d8..6f39bf14c42278dc8ada95902868608bd6a6f171 100644 +index 36a5fb0b42be57e9602c0709b6abb55385f48666..306838bbf7c6d5cddd95e09d703e41d1deac21ab 100644 --- a/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h +++ b/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h @@ -8,6 +8,7 @@ @@ -130,7 +130,7 @@ index 86e4152b85d85ed3c620458567509e0eaa2ad5d8..6f39bf14c42278dc8ada95902868608b return r.cookie_enabled; } diff --git a/third_party/blink/public/mojom/webpreferences/web_preferences.mojom b/third_party/blink/public/mojom/webpreferences/web_preferences.mojom -index 41d33c9ecebf615162dc8a9fa1653d32bdaa8d66..6891f25242b83c113a26c2919663a33da8a9b2d7 100644 +index 9de5f6dafc754b6ee8d894ccd9747a18b8c8efde..dbdf9f48beaa7b5dcc528906d7bfec66c2ebb89f 100644 --- a/third_party/blink/public/mojom/webpreferences/web_preferences.mojom +++ b/third_party/blink/public/mojom/webpreferences/web_preferences.mojom @@ -8,9 +8,11 @@ import "third_party/blink/public/mojom/css/preferred_color_scheme.mojom"; diff --git a/patches/chromium/build_add_electron_tracing_category.patch b/patches/chromium/build_add_electron_tracing_category.patch index c8b228545b..374dbbf156 100644 --- a/patches/chromium/build_add_electron_tracing_category.patch +++ b/patches/chromium/build_add_electron_tracing_category.patch @@ -8,7 +8,7 @@ categories in use are known / declared. This patch is required for us 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 -index d4c70f285fa6798798558974d7d79604dd388909..31f396bb437b7089930c05e6b1067bc156155be1 100644 +index e149fca0c6c38eb3898735cb38e41443af61b6d8..24ab0a9b37299e62176167507215351ecc54092b 100644 --- a/base/trace_event/builtin_categories.h +++ b/base/trace_event/builtin_categories.h @@ -102,6 +102,7 @@ PERFETTO_DEFINE_CATEGORIES_IN_NAMESPACE_WITH_ATTRS( diff --git a/patches/chromium/build_do_not_depend_on_packed_resource_integrity.patch b/patches/chromium/build_do_not_depend_on_packed_resource_integrity.patch index d82d630d01..000d9a91df 100644 --- a/patches/chromium/build_do_not_depend_on_packed_resource_integrity.patch +++ b/patches/chromium/build_do_not_depend_on_packed_resource_integrity.patch @@ -33,10 +33,10 @@ index 84fab7fcdb1a7ded880c0ff4867e09c740e7a5d2..f03f0e67c083880dc13f8f90d9375ff6 "//base", "//build:branding_buildflags", diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn -index 186cbeb02aa7b4e5b22800ece7cbc4791777356a..7137860ba1423a5ff36b85952790c5b25d6adf9d 100644 +index 74d78554a4816e76cbf800762386444520c32906..c89251393bdd9439aa768e3d516516dfc4b18824 100644 --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -4674,7 +4674,7 @@ static_library("browser") { +@@ -4681,7 +4681,7 @@ static_library("browser") { [ "//chrome/browser/ui/webui/signin:profile_impl" ] } @@ -46,10 +46,10 @@ index 186cbeb02aa7b4e5b22800ece7cbc4791777356a..7137860ba1423a5ff36b85952790c5b2 # than here in :chrome_dll. deps += [ "//chrome:packed_resources_integrity_header" ] diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn -index 4a299a91dccd83f5e9595bdab2317c6ed9b26920..16f2e321030d61ee2cbab91c15fc93da3cf735b5 100644 +index 9dc89f62b8cc049955d8faa4dcbd4904776580ee..cd3b00e4c2a22819e8bd4844cfa5048403f9a70a 100644 --- a/chrome/test/BUILD.gn +++ b/chrome/test/BUILD.gn -@@ -7209,9 +7209,12 @@ test("unit_tests") { +@@ -7216,9 +7216,12 @@ test("unit_tests") { "//chrome/notification_helper", ] @@ -63,7 +63,7 @@ index 4a299a91dccd83f5e9595bdab2317c6ed9b26920..16f2e321030d61ee2cbab91c15fc93da "//chrome//services/util_win:unit_tests", "//chrome/app:chrome_dll_resources", "//chrome/app:win_unit_tests", -@@ -8180,6 +8183,10 @@ test("unit_tests") { +@@ -8182,6 +8185,10 @@ test("unit_tests") { "../browser/performance_manager/policies/background_tab_loading_policy_unittest.cc", ] @@ -74,8 +74,8 @@ index 4a299a91dccd83f5e9595bdab2317c6ed9b26920..16f2e321030d61ee2cbab91c15fc93da sources += [ # The importer code is not used on Android. "../common/importer/firefox_importer_utils_unittest.cc", -@@ -8235,7 +8242,6 @@ test("unit_tests") { - # Non-android deps for "unit_tests" target. +@@ -8239,7 +8246,6 @@ test("unit_tests") { + # TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above? deps += [ "../browser/screen_ai:screen_ai_install_state", - "//chrome:packed_resources_integrity_header", diff --git a/patches/chromium/build_gn.patch b/patches/chromium/build_gn.patch index 2a059f803d..fd519adbff 100644 --- a/patches/chromium/build_gn.patch +++ b/patches/chromium/build_gn.patch @@ -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"). diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn -index c3a3bf4970783804bc76ee4e71bb8233b5f215a8..78c72710b411e05ca0b6f01811076599fa66fc15 100644 +index 32cbfa5cfee7f9a2f2d9e696fb54ee753dda4f6c..cc9d083a598aa1e07bf60bc961c5ddcd730921bf 100644 --- a/build/config/BUILDCONFIG.gn +++ b/build/config/BUILDCONFIG.gn @@ -123,6 +123,9 @@ if (current_os == "") { diff --git a/patches/chromium/build_libc_as_static_library.patch b/patches/chromium/build_libc_as_static_library.patch index 1b7d654c50..1851ebc615 100644 --- a/patches/chromium/build_libc_as_static_library.patch +++ b/patches/chromium/build_libc_as_static_library.patch @@ -7,7 +7,7 @@ Build libc++ as static library to compile and pass nan tests diff --git a/buildtools/third_party/libc++/BUILD.gn b/buildtools/third_party/libc++/BUILD.gn -index 2b4c153a67fda5effaac8d2932a985d87539fe69..c0c310ecbf74b8c1649bcd23ebe1c142c088fc9f 100644 +index 73c197f3cecd7ff34e97326cbf615e7c78919a54..1e93e7ce444cd5c31ddeac86fb1549c648a9a5c0 100644 --- a/buildtools/third_party/libc++/BUILD.gn +++ b/buildtools/third_party/libc++/BUILD.gn @@ -298,6 +298,7 @@ target(libcxx_target_type, "libc++") { diff --git a/patches/chromium/can_create_window.patch b/patches/chromium/can_create_window.patch index c808d727ab..97d4048b61 100644 --- a/patches/chromium/can_create_window.patch +++ b/patches/chromium/can_create_window.patch @@ -9,10 +9,10 @@ potentially prevent a window from being created. 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 -index db20a849f0e093a940587f94d777b7941882443d..e87536a31d03d8030b26781b9345fa7478d24afd 100644 +index 4c1785b8b7dcc2e0543b12bc4c765c8f0c833451..be73611db5328c76982ecca3caf5eccc30aac45e 100644 --- a/content/browser/renderer_host/render_frame_host_impl.cc +++ b/content/browser/renderer_host/render_frame_host_impl.cc -@@ -9711,6 +9711,7 @@ void RenderFrameHostImpl::CreateNewWindow( +@@ -9718,6 +9718,7 @@ void RenderFrameHostImpl::CreateNewWindow( last_committed_origin_, params->window_container_type, params->target_url, params->referrer.To(), params->frame_name, params->disposition, *params->features, @@ -21,10 +21,10 @@ index db20a849f0e093a940587f94d777b7941882443d..e87536a31d03d8030b26781b9345fa74 &no_javascript_access); diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc -index af97a08179fd92e71daff17ca75cf4c6c06be1cc..65a3b57c38419c15b071e67852789b48533fe53a 100644 +index 8bd0e1d60f6f1af48b106f25d8e8951423eb05ed..c0ef22f3872e96be15867428aff1006b8a14a1df 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -5155,6 +5155,12 @@ FrameTree* WebContentsImpl::CreateNewWindow( +@@ -5308,6 +5308,12 @@ FrameTree* WebContentsImpl::CreateNewWindow( // Sets the newly created WebContents WindowOpenDisposition. new_contents_impl->original_window_open_disposition_ = params.disposition; @@ -37,7 +37,7 @@ index af97a08179fd92e71daff17ca75cf4c6c06be1cc..65a3b57c38419c15b071e67852789b48 // 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 // SetSessionStorageNamespace, since this calls CreateRenderView, which uses -@@ -5196,12 +5202,6 @@ FrameTree* WebContentsImpl::CreateNewWindow( +@@ -5349,12 +5355,6 @@ FrameTree* WebContentsImpl::CreateNewWindow( AddWebContentsDestructionObserver(new_contents_impl); } @@ -66,7 +66,7 @@ index 09f1899c9b044a05b2e40c291f17fdf1f9f2fcac..89643bf7059d4fc0d6de6116ffe0fdac // 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 -index e8a1b16cbe8aeb9c185de622250b73c402d56228..38a9b7ae1548f86ae700acc41565f340ed4dbff5 100644 +index eb036b92b42d794cabd71f4c6314962df8988bbb..0ec4e4f41d261f60cb8e963ca1d715b765e7c47d 100644 --- a/content/public/browser/content_browser_client.cc +++ b/content/public/browser/content_browser_client.cc @@ -842,6 +842,8 @@ bool ContentBrowserClient::CanCreateWindow( @@ -79,7 +79,7 @@ index e8a1b16cbe8aeb9c185de622250b73c402d56228..38a9b7ae1548f86ae700acc41565f340 bool opener_suppressed, bool* no_javascript_access) { diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h -index 9061895e64ce94700692b0b990f22a32b5e0e353..bd3cccc408c61f4c4e408fd5d093d6aa1ef0e201 100644 +index 8c53f1aab26cf78ae0526ae51c1738019f1c0b90..0a74c5a3bee425c5c1af33ef27791a6d852baa6e 100644 --- a/content/public/browser/content_browser_client.h +++ b/content/public/browser/content_browser_client.h @@ -200,6 +200,7 @@ class NetworkService; @@ -90,7 +90,7 @@ index 9061895e64ce94700692b0b990f22a32b5e0e353..bd3cccc408c61f4c4e408fd5d093d6aa } // namespace network namespace sandbox { -@@ -1404,6 +1405,8 @@ class CONTENT_EXPORT ContentBrowserClient { +@@ -1403,6 +1404,8 @@ class CONTENT_EXPORT ContentBrowserClient { const std::string& frame_name, WindowOpenDisposition disposition, const blink::mojom::WindowFeatures& features, @@ -210,10 +210,10 @@ index 82e9d3dfb5f7da76d89fe15ae61d379fa46e177d..fd035512099a54dff6cc951a2226c23a } // 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 -index 6de4ad918b8c1d2a3dfb977ed80ea232dbbee9c1..f983903112efd76c8bd73656a0de5e54026e6d1b 100644 +index 382daacf9b2ea77c4d8814fa375ecbbd830cce50..4728a4b7c064fc902317115637b6e64f068b25a8 100644 --- a/third_party/blink/renderer/core/frame/local_dom_window.cc +++ b/third_party/blink/renderer/core/frame/local_dom_window.cc -@@ -2280,6 +2280,8 @@ DOMWindow* LocalDOMWindow::open(v8::Isolate* isolate, +@@ -2293,6 +2293,8 @@ DOMWindow* LocalDOMWindow::open(v8::Isolate* isolate, WebWindowFeatures window_features = GetWindowFeaturesFromString(features, entered_window); diff --git a/patches/chromium/chore_add_electron_deps_to_gitignores.patch b/patches/chromium/chore_add_electron_deps_to_gitignores.patch index 029afcacac..495a6c703f 100644 --- a/patches/chromium/chore_add_electron_deps_to_gitignores.patch +++ b/patches/chromium/chore_add_electron_deps_to_gitignores.patch @@ -6,10 +6,10 @@ Subject: chore: add electron deps to gitignores Makes things like "git status" quicker when developing electron locally diff --git a/.gitignore b/.gitignore -index 0a0f0118d5c1a5a2f3ad28b068bebb849eba7246..5ca6d03b709ef119ccd6482b2f305f8a3aeb7438 100644 +index 469572522566fa57f04bc66ade675eea2048b0df..852d842df3801564cfe8dd7c4ffb84a7b3af8fc1 100644 --- a/.gitignore +++ b/.gitignore -@@ -217,6 +217,7 @@ vs-chromium-project.txt +@@ -220,6 +220,7 @@ vs-chromium-project.txt /data /delegate_execute /device/serial/device_serial_mojo.xml diff --git a/patches/chromium/chore_grandfather_in_electron_views_and_delegates.patch b/patches/chromium/chore_grandfather_in_electron_views_and_delegates.patch index 393e2d4ba0..598f8cdb6a 100644 --- a/patches/chromium/chore_grandfather_in_electron_views_and_delegates.patch +++ b/patches/chromium/chore_grandfather_in_electron_views_and_delegates.patch @@ -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 diff --git a/ui/views/view.h b/ui/views/view.h -index ae7eab37f12ba80ec423d229cf048021e9ba6765..507a75dc7947295db221b01356fa57baf3cf03e4 100644 +index 0dbbd7979ad79a7a74681222fcf36a315f0634ce..b04e77440c1273c5b866ea329e62ac07fdcf5404 100644 --- a/ui/views/view.h +++ b/ui/views/view.h @@ -82,6 +82,19 @@ class ArcNotificationContentView; diff --git a/patches/chromium/chore_introduce_blocking_api_for_electron.patch b/patches/chromium/chore_introduce_blocking_api_for_electron.patch index 0fbdb80214..cb012a2a81 100644 --- a/patches/chromium/chore_introduce_blocking_api_for_electron.patch +++ b/patches/chromium/chore_introduce_blocking_api_for_electron.patch @@ -7,7 +7,7 @@ This patch comes after Chromium removed the ScopedAllowIO API in favor of explicitly adding ScopedAllowBlocking calls as friends. diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h -index b1abcfaab58df4555d3a26481915d64ef5458e17..f2f43454c1c124da9983998564837ebf3589aefd 100644 +index 20d867b5d56cd6d961004b19bd3e69ee306dd816..07db0c05df4ce028017e70e6f593235516aa556e 100644 --- a/base/threading/thread_restrictions.h +++ b/base/threading/thread_restrictions.h @@ -132,6 +132,7 @@ class KeyStorageLinux; @@ -28,7 +28,7 @@ index b1abcfaab58df4555d3a26481915d64ef5458e17..f2f43454c1c124da9983998564837ebf namespace enterprise_connectors { class LinuxKeyRotationCommand; } // namespace enterprise_connectors -@@ -577,6 +581,7 @@ class BASE_EXPORT ScopedAllowBlocking { +@@ -578,6 +582,7 @@ class BASE_EXPORT ScopedAllowBlocking { friend class ::DesktopNotificationBalloon; friend class ::FirefoxProfileLock; friend class ::GaiaConfig; @@ -36,7 +36,7 @@ index b1abcfaab58df4555d3a26481915d64ef5458e17..f2f43454c1c124da9983998564837ebf friend class ::ProfileImpl; friend class ::ScopedAllowBlockingForProfile; friend class ::StartupTabProviderImpl; -@@ -615,6 +620,7 @@ class BASE_EXPORT ScopedAllowBlocking { +@@ -616,6 +621,7 @@ class BASE_EXPORT ScopedAllowBlocking { friend class cronet::CronetPrefsManager; friend class crypto::ScopedAllowBlockingForNSS; // http://crbug.com/59847 friend class drive::FakeDriveService; diff --git a/patches/chromium/chore_modify_chromium_handling_of_mouse_events.patch b/patches/chromium/chore_modify_chromium_handling_of_mouse_events.patch index afe116bc3e..8dc23c774a 100644 --- a/patches/chromium/chore_modify_chromium_handling_of_mouse_events.patch +++ b/patches/chromium/chore_modify_chromium_handling_of_mouse_events.patch @@ -34,10 +34,10 @@ index 39b5a8fdd165efd74b00256552b51b5413107958..bfc4ef4f50efff4a77f2aef64335bb7e 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 -index 5f9612ff000c1544f572bab0cbc9982dc4e647ce..2ce65548dd1283adb4c095e37198e08a8a13635c 100644 +index 3c273b08e3a0cb1a249334b06244bb6b89fde27f..20fcbe09d9fe9104cbe791e03b02f8e2e5064c2d 100644 --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc -@@ -1415,6 +1415,10 @@ void DesktopWindowTreeHostWin::HandleHeadlessWindowBoundsChanged( +@@ -1382,6 +1382,10 @@ void DesktopWindowTreeHostWin::HandleHeadlessWindowBoundsChanged( window()->SetProperty(aura::client::kHeadlessBoundsKey, bounds); } @@ -61,10 +61,10 @@ index dab595aacaeca4f6f735fd04004c27a4949278d2..177134d439866db9dbbde657ff358a76 Widget* GetWidget(); const Widget* GetWidget() const; diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc -index 9747e945b2ebfc113ffd12839c28a98fcccf2872..6f2e2702d3b982fe7e8d258f303c8055d3d37df8 100644 +index 418dc47b6d4df097e8f0cfd61de8485af2a8d2c2..8c13b9db078e690240eca0a48a7c546dcdac3c11 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc -@@ -3167,15 +3167,19 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, +@@ -3171,15 +3171,19 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, } // We must let Windows handle the caption buttons if it's drawing them, or // they won't work. @@ -86,7 +86,7 @@ index 9747e945b2ebfc113ffd12839c28a98fcccf2872..6f2e2702d3b982fe7e8d258f303c8055 return 0; } } -@@ -3198,6 +3202,7 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, +@@ -3202,6 +3206,7 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, // handle alt-space, or in the frame itself. is_right_mouse_pressed_on_caption_ = false; ReleaseCapture(); @@ -94,7 +94,7 @@ index 9747e945b2ebfc113ffd12839c28a98fcccf2872..6f2e2702d3b982fe7e8d258f303c8055 // |point| is in window coordinates, but WM_NCHITTEST and TrackPopupMenu() // expect screen coordinates. POINT screen_point = CR_POINT_INITIALIZER_FROM_LPARAM(l_param); -@@ -3205,7 +3210,17 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, +@@ -3209,7 +3214,17 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, w_param = static_cast(SendMessage( hwnd(), WM_NCHITTEST, 0, MAKELPARAM(screen_point.x, screen_point.y))); if (w_param == HTCAPTION || w_param == HTSYSMENU) { diff --git a/patches/chromium/chore_partial_revert_of.patch b/patches/chromium/chore_partial_revert_of.patch index 28fd072806..290f57a3ca 100644 --- a/patches/chromium/chore_partial_revert_of.patch +++ b/patches/chromium/chore_partial_revert_of.patch @@ -14,10 +14,10 @@ track down the source of this problem & figure out if we can fix it 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 -index acb6b6257ccb13aae284d9b02baada14fe9ee0cc..9269ef00d1c0ce0606a39533b839e061ba448d7e 100644 +index 29185fc4c426652d192870c8a11aaa981a08ebf8..de2e8163c6ae5a1a01a79413d3d44b7c11ede311 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -5071,7 +5071,7 @@ FrameTree* WebContentsImpl::CreateNewWindow( +@@ -5224,7 +5224,7 @@ FrameTree* WebContentsImpl::CreateNewWindow( : IsGuest(); // While some guest types do not have a guest SiteInstance, the ones that // don't all override WebContents creation above. diff --git a/patches/chromium/chore_provide_iswebcontentscreationoverridden_with_full_params.patch b/patches/chromium/chore_provide_iswebcontentscreationoverridden_with_full_params.patch index 21d7bbf36b..2014d114c1 100644 --- a/patches/chromium/chore_provide_iswebcontentscreationoverridden_with_full_params.patch +++ b/patches/chromium/chore_provide_iswebcontentscreationoverridden_with_full_params.patch @@ -80,10 +80,10 @@ index b6582b4013d9682d32bd524b4053b443a4df00f8..afcbce72e0f247b4d5a637b27c9f25d9 content::WebContents* source, const content::OpenURLParams& params, diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc -index 1bea3ad5b3c9960a7b1193e232b0c1f5c847e79d..0f416f0eeadca6bc7cc559d8879c694b7ccf62e6 100644 +index 875c7a37c48ce50b5439a51df5e505e1bbcd5155..035432c70a6b65a2520f130e0db8a91f20e92770 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc -@@ -2406,8 +2406,7 @@ bool Browser::IsWebContentsCreationOverridden( +@@ -2392,8 +2392,7 @@ bool Browser::IsWebContentsCreationOverridden( content::SiteInstance* source_site_instance, content::mojom::WindowContainerType window_container_type, const GURL& opener_url, @@ -93,7 +93,7 @@ index 1bea3ad5b3c9960a7b1193e232b0c1f5c847e79d..0f416f0eeadca6bc7cc559d8879c694b if (IsActorCoordinatorActingOnTab( profile(), content::WebContents::FromRenderFrameHost(opener))) { // If an ActorCoordinator is acting on the opener, prevent it from creating -@@ -2419,7 +2418,7 @@ bool Browser::IsWebContentsCreationOverridden( +@@ -2405,7 +2404,7 @@ bool Browser::IsWebContentsCreationOverridden( return (window_container_type == content::mojom::WindowContainerType::BACKGROUND && ShouldCreateBackgroundContents(source_site_instance, opener_url, @@ -103,10 +103,10 @@ index 1bea3ad5b3c9960a7b1193e232b0c1f5c847e79d..0f416f0eeadca6bc7cc559d8879c694b WebContents* Browser::CreateCustomWebContents( diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h -index 5d3ab970d01b20bef2c715ab8bc65187814b0008..6efef3f3e9c7005fae59a404929d80bebe965f02 100644 +index 9dfba94b0aaa3f27f363bd50b489cae9e0e3cda6..3867e5d5741103ee0b65533dae4b80906b393f59 100644 --- a/chrome/browser/ui/browser.h +++ b/chrome/browser/ui/browser.h -@@ -1041,8 +1041,7 @@ class Browser : public TabStripModelObserver, +@@ -1037,8 +1037,7 @@ class Browser : public TabStripModelObserver, content::SiteInstance* source_site_instance, content::mojom::WindowContainerType window_container_type, const GURL& opener_url, @@ -159,10 +159,10 @@ index 1c30afe192809d85ced6af595347353ec3cb5364..af48bb2755c33f6c372be6b51048b3cf } 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 -index 37260552fcc42edcac08422bdf6cb9f0f4b09c39..461fb20c1093cf2de06f9bb6f41f80ab0017b6a1 100644 +index 807f43c164015e9372623b6ca9db1293640a530f..5e1875cde93f27e3d0324c84b94f076b33123495 100644 --- a/components/embedder_support/android/delegate/web_contents_delegate_android.cc +++ b/components/embedder_support/android/delegate/web_contents_delegate_android.cc -@@ -190,14 +190,13 @@ bool WebContentsDelegateAndroid::IsWebContentsCreationOverridden( +@@ -199,14 +199,13 @@ bool WebContentsDelegateAndroid::IsWebContentsCreationOverridden( content::SiteInstance* source_site_instance, content::mojom::WindowContainerType window_container_type, const GURL& opener_url, @@ -180,10 +180,10 @@ index 37260552fcc42edcac08422bdf6cb9f0f4b09c39..461fb20c1093cf2de06f9bb6f41f80ab 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 -index 996b3d453b375fec2a823a0dd0d3122ba626b5f2..5a5c6ed67f698fdd914e79df528e2ca391e056b7 100644 +index 7a8cdc28f87399e494a58490cdc4ac0dd4b06520..0c2a83b44f6909b5b3a6303715e1611d039711bb 100644 --- a/components/embedder_support/android/delegate/web_contents_delegate_android.h +++ b/components/embedder_support/android/delegate/web_contents_delegate_android.h -@@ -83,8 +83,7 @@ class WebContentsDelegateAndroid : public content::WebContentsDelegate { +@@ -84,8 +84,7 @@ class WebContentsDelegateAndroid : public content::WebContentsDelegate { content::SiteInstance* source_site_instance, content::mojom::WindowContainerType window_container_type, const GURL& opener_url, @@ -222,10 +222,10 @@ index b969f1d97b7e3396119b579cfbe61e19ff7d2dd4..b8d6169652da28266a514938b45b39c5 content::WebContents* AddNewContents( content::WebContents* source, diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc -index fcb7a38577a7b597be09b73cea9308b7112fee2a..3435a1d0ce5c8025b5a2005ebb4066e306579a69 100644 +index 6eaa7d566058fdcc9ebfa10f0420c3a234cb0483..bbbc07e36e6de11169f8317c64558b8c4d1699d5 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -5034,8 +5034,7 @@ FrameTree* WebContentsImpl::CreateNewWindow( +@@ -5187,8 +5187,7 @@ FrameTree* WebContentsImpl::CreateNewWindow( if (delegate_ && delegate_->IsWebContentsCreationOverridden( opener, source_site_instance, params.window_container_type, @@ -356,10 +356,10 @@ index 7eeffdfbda9611806c6f260f0c68f6d84689cb7e..5d8f6d132068d7fabaa52bc61354c71a content::RenderFrameHost* opener, content::SiteInstance* source_site_instance, diff --git a/fuchsia_web/webengine/browser/frame_impl.cc b/fuchsia_web/webengine/browser/frame_impl.cc -index c61784e1d0717063e5aefd05d7c09358bae5b8c5..b987c5660942e94f89ff19cc55e032e4cb693863 100644 +index bd09d0f34a1610d64a1438b618ef5b3786315e91..4b2a979db1e00bc0d7f3b1b54570c305070acccc 100644 --- a/fuchsia_web/webengine/browser/frame_impl.cc +++ b/fuchsia_web/webengine/browser/frame_impl.cc -@@ -579,8 +579,7 @@ bool FrameImpl::IsWebContentsCreationOverridden( +@@ -581,8 +581,7 @@ bool FrameImpl::IsWebContentsCreationOverridden( content::SiteInstance* source_site_instance, content::mojom::WindowContainerType window_container_type, const GURL& opener_url, diff --git a/patches/chromium/chore_remove_check_is_test_on_script_injection_tracker.patch b/patches/chromium/chore_remove_check_is_test_on_script_injection_tracker.patch index 31dfe317fe..b1832a7542 100644 --- a/patches/chromium/chore_remove_check_is_test_on_script_injection_tracker.patch +++ b/patches/chromium/chore_remove_check_is_test_on_script_injection_tracker.patch @@ -9,15 +9,14 @@ Electron when a session is non persistent we do not initialize the ExtensionSystem, so this check is not relevant for Electron. diff --git a/extensions/browser/script_injection_tracker.cc b/extensions/browser/script_injection_tracker.cc -index 172f02dbe9bb22425f8d45119b6d8466c949ba36..063015e14053f75544e6700c9251d6ecae95389c 100644 +index 8f590b9ebd02969f0c5d9f617852954a69f51afd..91c4a61525173d2cd95a8c2c626c1be5a84b003f 100644 --- a/extensions/browser/script_injection_tracker.cc +++ b/extensions/browser/script_injection_tracker.cc -@@ -178,7 +178,7 @@ std::vector GetLoadedDynamicScripts( +@@ -176,7 +176,6 @@ std::vector GetLoadedDynamicScripts( + UserScriptManager* manager = + ExtensionSystem::Get(process.GetBrowserContext())->user_script_manager(); if (!manager) { - // TODO(crbug.com/412829476): Remove this guard once we enable - // UserScriptManager on desktop Android. --#if BUILDFLAG(ENABLE_EXTENSIONS) -+#if 0 - CHECK_IS_TEST(); - #endif +- CHECK_IS_TEST(); return std::vector(); + } + diff --git a/patches/chromium/disable_hidden.patch b/patches/chromium/disable_hidden.patch index b5aff92503..7c6ef540c4 100644 --- a/patches/chromium/disable_hidden.patch +++ b/patches/chromium/disable_hidden.patch @@ -6,10 +6,10 @@ Subject: disable_hidden.patch 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 -index 43174a968fa1394d8c995adda338c15cace4e7be..a1cec61f882c38efa611401da69de123c99c9e7f 100644 +index 8173547224997a68c2878d6dfb26b1cb436353c6..6a60a4b0275e1832216b092c29bc867f4727ca22 100644 --- a/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() { +@@ -833,6 +833,10 @@ void RenderWidgetHostImpl::WasHidden() { return; } diff --git a/patches/chromium/enable_reset_aspect_ratio.patch b/patches/chromium/enable_reset_aspect_ratio.patch index 5954ee9082..e62d786bec 100644 --- a/patches/chromium/enable_reset_aspect_ratio.patch +++ b/patches/chromium/enable_reset_aspect_ratio.patch @@ -6,10 +6,10 @@ Subject: feat: enable setting aspect ratio to 0 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 -index 6240e33c74a0a487affb3ec7e01d6a662d3950b7..5f9612ff000c1544f572bab0cbc9982dc4e647ce 100644 +index f754ca0c3bc3ba9e7ff2f3f883b29c15be2b410a..3c273b08e3a0cb1a249334b06244bb6b89fde27f 100644 --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc -@@ -664,7 +664,7 @@ void DesktopWindowTreeHostWin::SetOpacity(float opacity) { +@@ -631,7 +631,7 @@ void DesktopWindowTreeHostWin::SetOpacity(float opacity) { void DesktopWindowTreeHostWin::SetAspectRatio( const gfx::SizeF& aspect_ratio, const gfx::Size& excluded_margin) { @@ -19,10 +19,10 @@ index 6240e33c74a0a487affb3ec7e01d6a662d3950b7..5f9612ff000c1544f572bab0cbc9982d excluded_margin); } diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc -index 9a42a64f52ccbab2cab6119c91b69ab44eeeb9e5..2cd46f4692c84cffff0775bbb67d3585f24e900d 100644 +index cb66f6e84abd95080a2051b39d86b1838a6df9bb..c38b58ed16b14ff765f24d0bb8bdf34b8de3a901 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc -@@ -992,8 +992,11 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen, +@@ -993,8 +993,11 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen, void HWNDMessageHandler::SetAspectRatio(float aspect_ratio, const gfx::Size& excluded_margin) { diff --git a/patches/chromium/expose_setuseragent_on_networkcontext.patch b/patches/chromium/expose_setuseragent_on_networkcontext.patch index 53dc349f59..d0e5af5f54 100644 --- a/patches/chromium/expose_setuseragent_on_networkcontext.patch +++ b/patches/chromium/expose_setuseragent_on_networkcontext.patch @@ -33,10 +33,10 @@ index 0ab8187b0db8ae6db46d81738f653a2bc4c566f6..de3d55e85c22317f7f9375eb94d0d5d4 } // namespace net diff --git a/services/network/network_context.cc b/services/network/network_context.cc -index 7d65c373ac4f1f538085a44ca0b11ddce89b1e62..8d3a7ca4c955a0e5004e3e2a8435591cfbfe2f16 100644 +index 02853bf6552d49986b782785d3ab5a61ec0d3734..5934676556e25e51d580e063aeb0afde2a3f2a97 100644 --- a/services/network/network_context.cc +++ b/services/network/network_context.cc -@@ -1838,6 +1838,13 @@ void NetworkContext::SetNetworkConditions( +@@ -1837,6 +1837,13 @@ void NetworkContext::SetNetworkConditions( std::move(network_conditions)); } diff --git a/patches/chromium/feat_add_data_parameter_to_processsingleton.patch b/patches/chromium/feat_add_data_parameter_to_processsingleton.patch index cd0f620c67..738ddbf939 100644 --- a/patches/chromium/feat_add_data_parameter_to_processsingleton.patch +++ b/patches/chromium/feat_add_data_parameter_to_processsingleton.patch @@ -13,19 +13,20 @@ app.requestSingleInstanceLock API so that users can pass in a JSON object for the second instance to send to the first instance. diff --git a/chrome/browser/process_singleton.h b/chrome/browser/process_singleton.h -index 085b00fbb3ff95cdcde2a46760ab449808b4c1a9..22d5c994a6944ce7ea725ee045d9801126c32dd4 100644 +index 2748dd196fe1f56357348a204e24f0b8a28b97dd..5800dd00b47c657d9e6766f3fc5a30654cffffa6 100644 --- a/chrome/browser/process_singleton.h +++ b/chrome/browser/process_singleton.h -@@ -18,6 +18,8 @@ +@@ -18,7 +18,8 @@ #include "base/functional/callback.h" #include "base/memory/scoped_refptr.h" #include "base/process/process.h" +- +#include "base/containers/span.h" +#include "base/memory/raw_span.h" - #include "ui/gfx/native_widget_types.h" - #if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_ANDROID) -@@ -100,21 +102,24 @@ class ProcessSingleton { + #include "base/files/scoped_temp_dir.h" + #endif +@@ -99,21 +100,24 @@ class ProcessSingleton { // should handle it (i.e., because the current process is shutting down). using NotificationCallback = base::RepeatingCallback results); -+ -+ // Common function for OnSelectSingleFolderDialogResponse and -+ // OnSelectMultiFileDialogResponse. -+ void SelectMultiFileDialogHelper( -+ bool allow_folder, -+ gfx::AcceleratedWidget parent, -+ std::unique_ptr results); -+ - void OnSelectSingleFolderDialogResponse( - gfx::AcceleratedWidget parent, - std::unique_ptr results); -+ void OnSelectMultiFolderDialogResponse( -+ gfx::AcceleratedWidget parent, -+ std::unique_ptr results); - - // Should be either DESKTOP_ENVIRONMENT_KDE3, KDE4, KDE5, or KDE6. - base::nix::DesktopEnvironment desktop_; -@@ -468,6 +479,7 @@ void SelectFileDialogLinuxKde::CreateSelectFolderDialog( - int title_message_id = (type == SELECT_UPLOAD_FOLDER) - ? IDS_SELECT_UPLOAD_FOLDER_DIALOG_TITLE - : IDS_SELECT_FOLDER_DIALOG_TITLE; -+ bool multiple_selection = allow_multiple_selection(); - pipe_task_runner_->PostTaskAndReplyWithResult( - FROM_HERE, - base::BindOnce( -@@ -475,10 +487,12 @@ void SelectFileDialogLinuxKde::CreateSelectFolderDialog( - KDialogParams( - "--getexistingdirectory", GetTitle(title, title_message_id), - default_path.empty() ? *last_opened_path() : default_path, parent, -- false, false)), -+ false, multiple_selection)), - base::BindOnce( -- &SelectFileDialogLinuxKde::OnSelectSingleFolderDialogResponse, this, -- parent)); -+ multiple_selection -+ ? &SelectFileDialogLinuxKde::OnSelectMultiFolderDialogResponse -+ : &SelectFileDialogLinuxKde::OnSelectSingleFolderDialogResponse, -+ this, parent)); - } - - void SelectFileDialogLinuxKde::CreateFileOpenDialog( -@@ -568,7 +582,8 @@ void SelectFileDialogLinuxKde::OnSelectSingleFolderDialogResponse( - SelectSingleFileHelper(true, std::move(results)); - } - --void SelectFileDialogLinuxKde::OnSelectMultiFileDialogResponse( -+void SelectFileDialogLinuxKde::SelectMultiFileDialogHelper( -+ bool allow_folder, - gfx::AcceleratedWidget parent, - std::unique_ptr results) { - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -586,7 +601,7 @@ void SelectFileDialogLinuxKde::OnSelectMultiFileDialogResponse( - base::SplitStringPiece(results->output, "\n", base::KEEP_WHITESPACE, - base::SPLIT_WANT_NONEMPTY)) { - base::FilePath path(line); -- if (CallDirectoryExistsOnUIThread(path)) -+ if (!allow_folder && CallDirectoryExistsOnUIThread(path)) - continue; - filenames_fp.push_back(path); - } -@@ -598,4 +613,16 @@ void SelectFileDialogLinuxKde::OnSelectMultiFileDialogResponse( - MultiFilesSelected(filenames_fp); - } - -+void SelectFileDialogLinuxKde::OnSelectMultiFolderDialogResponse( -+ gfx::AcceleratedWidget parent, -+ std::unique_ptr results) { -+ SelectMultiFileDialogHelper(true, parent, std::move(results)); -+} -+ -+void SelectFileDialogLinuxKde::OnSelectMultiFileDialogResponse( -+ gfx::AcceleratedWidget parent, -+ std::unique_ptr results) { -+ SelectMultiFileDialogHelper(false, parent, std::move(results)); -+} -+ } // namespace ui diff --git a/ui/shell_dialogs/select_file_dialog_linux_portal.cc b/ui/shell_dialogs/select_file_dialog_linux_portal.cc index b23d357d4e21f10be82f0ea37b1ec3e959fc2c0b..e768afc05b42d4d026c88f1516d4e9db84e8dff6 100644 diff --git a/patches/chromium/feat_allow_code_cache_in_custom_schemes.patch b/patches/chromium/feat_allow_code_cache_in_custom_schemes.patch index a7845a1f99..e798bf875a 100644 --- a/patches/chromium/feat_allow_code_cache_in_custom_schemes.patch +++ b/patches/chromium/feat_allow_code_cache_in_custom_schemes.patch @@ -411,7 +411,7 @@ index cf71655553cf510e1309ac47bdd5ddab08e52672..0a02d17d06e080f40bf12bb2e48f51ad std::vector extension_schemes; // Registers a URL scheme with a predefined default custom handler. diff --git a/url/url_util.cc b/url/url_util.cc -index 67c4c5f3ce124e111fb7a70e16386120cf24d9b8..d9876cd58ff28ea1af87596691cd836b815825dd 100644 +index e09d63ee585919842b2b92f9a53b85f67da90531..9e844e2ac9da41dd711497412d03e9b313726162 100644 --- a/url/url_util.cc +++ b/url/url_util.cc @@ -135,6 +135,9 @@ struct SchemeRegistry { diff --git a/patches/chromium/feat_allow_usage_of_sccontentsharingpicker_on_supported_platforms.patch b/patches/chromium/feat_allow_usage_of_sccontentsharingpicker_on_supported_platforms.patch index 972a59652b..e72bf218b2 100644 --- a/patches/chromium/feat_allow_usage_of_sccontentsharingpicker_on_supported_platforms.patch +++ b/patches/chromium/feat_allow_usage_of_sccontentsharingpicker_on_supported_platforms.patch @@ -356,7 +356,7 @@ index 23b19cc8405293aa44c4f2c20f715f8443fcd151..21c0c84dc6e3128b641fac682e3069a0 kMaxNumberOfBuffers, std::move(receiver), std::move(receiver_on_io_thread)), diff --git a/content/public/browser/desktop_media_id.h b/content/public/browser/desktop_media_id.h -index 415156d403a59bf426cf4561a9d58ecdb27524b4..78aa7b2359c684d5305bf6352751dfbb7ca00d29 100644 +index 294b5f79955ba72976f8ba127fd19556c81e322c..27553e51b281575c5cb7a4ba4dab06d19704388e 100644 --- a/content/public/browser/desktop_media_id.h +++ b/content/public/browser/desktop_media_id.h @@ -27,6 +27,8 @@ struct CONTENT_EXPORT DesktopMediaID { diff --git a/patches/chromium/feat_configure_launch_options_for_service_process.patch b/patches/chromium/feat_configure_launch_options_for_service_process.patch index cef5d94f3f..a5c0615514 100644 --- a/patches/chromium/feat_configure_launch_options_for_service_process.patch +++ b/patches/chromium/feat_configure_launch_options_for_service_process.patch @@ -19,7 +19,7 @@ to STDOUT_FILENO/STD_OUTPUT_HANDLE and STDERR_FILENO/STD_ERROR_HANDLE allowing t parent process to read from the pipe. diff --git a/content/browser/child_process_launcher.h b/content/browser/child_process_launcher.h -index 4c3d9917baee848b673d2895a54d96528ef14286..a3735de9aa88cef41be61fe742d8beb85de96a6e 100644 +index 2f85aeb4f51c0d126214616027c9c4cec710e263..26d35b53bcc41807452bcc68b484781d491b7a23 100644 --- a/content/browser/child_process_launcher.h +++ b/content/browser/child_process_launcher.h @@ -33,6 +33,7 @@ @@ -30,7 +30,7 @@ index 4c3d9917baee848b673d2895a54d96528ef14286..a3735de9aa88cef41be61fe742d8beb8 #endif #if BUILDFLAG(IS_POSIX) -@@ -193,7 +194,10 @@ struct ChildProcessLauncherFileData { +@@ -192,7 +193,10 @@ struct ChildProcessLauncherFileData { delete; ~ChildProcessLauncherFileData(); @@ -42,7 +42,7 @@ index 4c3d9917baee848b673d2895a54d96528ef14286..a3735de9aa88cef41be61fe742d8beb8 // Files opened by the browser and passed as corresponding file descriptors // in the child process. If a FilePath is provided, the file will be opened // and the descriptor cached for future process launches. If a ScopedFD is -@@ -208,6 +212,15 @@ struct ChildProcessLauncherFileData { +@@ -207,6 +211,15 @@ struct ChildProcessLauncherFileData { std::map> files_to_preload; #endif diff --git a/patches/chromium/feat_corner_smoothing_css_rule_and_blink_painting.patch b/patches/chromium/feat_corner_smoothing_css_rule_and_blink_painting.patch index 9653ef7b69..e51dc822db 100644 --- a/patches/chromium/feat_corner_smoothing_css_rule_and_blink_painting.patch +++ b/patches/chromium/feat_corner_smoothing_css_rule_and_blink_painting.patch @@ -75,7 +75,7 @@ index f8361faf6151210d65a597562c533aaa0a5235df..328238c34a9381fbbeb5970af3de721c // used for canvas noising. uint64 canvas_noise_token = 0; 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 32e70a4fa70ac2fc41d95813590fe9a7120eecde..54d292d737748302fa0369b73d876d84f1fec1d4 100644 +index 8e1737f9d205c511ae8e4103278a2650166f3915..ced3d02fdf338e3e2a07e93a4d22b2f9398c2267 100644 --- 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 @@ -48,6 +48,7 @@ enum CSSSampleId { @@ -112,10 +112,10 @@ index 6e991652d242795e292cea4c94cff59aaea078fa..b6834c78575520bb6e584dd2ce3333ac 'internal-forced-visited-'): 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 -index 5bacbf438f37363e8a6c2f61ff8eff0dae781aaa..e16363cbff7a4af50656f64f7f69ecfa15081245 100644 +index 63fff5e26a00d65818e5a05ae4f3285162521574..23cbe424b6c9de4f66cf1c2ce91682bf706d6f90 100644 --- a/third_party/blink/renderer/core/css/css_properties.json5 +++ b/third_party/blink/renderer/core/css/css_properties.json5 -@@ -8810,6 +8810,24 @@ +@@ -8824,6 +8824,24 @@ property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"], }, @@ -141,10 +141,10 @@ index 5bacbf438f37363e8a6c2f61ff8eff0dae781aaa..e16363cbff7a4af50656f64f7f69ecfa { 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 -index 936bd39e77a5a181a94a48129e38efc9c8c82847..75d332ef497018e4c863a47d4491d25da365206a 100644 +index 11c153b01a111efed101ae53d2148b7f523a66f5..7a3547a2aa70ef7699bf9022a15199d499e8a802 100644 --- a/third_party/blink/renderer/core/css/css_property_equality.cc +++ b/third_party/blink/renderer/core/css/css_property_equality.cc -@@ -346,6 +346,8 @@ bool CSSPropertyEquality::PropertiesEqual(const PropertyHandle& property, +@@ -348,6 +348,8 @@ bool CSSPropertyEquality::PropertiesEqual(const PropertyHandle& property, return a.DominantBaseline() == b.DominantBaseline(); case CSSPropertyID::kDynamicRangeLimit: return a.GetDynamicRangeLimit() == b.GetDynamicRangeLimit(); @@ -154,10 +154,10 @@ index 936bd39e77a5a181a94a48129e38efc9c8c82847..75d332ef497018e4c863a47d4491d25d return a.EmptyCells() == b.EmptyCells(); 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 -index aa12ac9e27c55870269dd780e868b5eaee5acaab..1a06511ee56717df547817813eb80c3db1fa01df 100644 +index db463eb084f96e661a271be0646d6dbc84913ee2..336564df6f1266d6f186a56efd1836cfba951c72 100644 --- a/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc +++ b/third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc -@@ -12086,5 +12086,25 @@ const CSSValue* InternalEmptyLineHeight::ParseSingleValue( +@@ -12143,5 +12143,25 @@ const CSSValue* InternalEmptyLineHeight::ParseSingleValue( CSSValueID::kNone>(stream); } @@ -184,10 +184,10 @@ index aa12ac9e27c55870269dd780e868b5eaee5acaab..1a06511ee56717df547817813eb80c3d } // namespace css_longhand } // 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 -index 56429f6e0da31c28aef86b1b5a5e538207b42706..33c6a8ff7cf6ffff2952b5a8b9389eb04ee6946d 100644 +index ae5470212b28d47f8b79799d1ef52757fcd5cbae..667ba05f2595048bcadab0b394c52540f8bceaf1 100644 --- a/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc +++ b/third_party/blink/renderer/core/css/resolver/style_builder_converter.cc -@@ -3900,4 +3900,12 @@ PositionArea StyleBuilderConverter::ConvertPositionArea( +@@ -3913,4 +3913,12 @@ PositionArea StyleBuilderConverter::ConvertPositionArea( return PositionArea(span[0], span[1], span[2], span[3]); } @@ -307,7 +307,7 @@ index 2c2f4f405074e5baa4a26f255283404f86b40e21..ebeb7d6988ee9e6a4e78cb82fc01fdad ContouredRect PixelSnappedContouredBorderInternal( diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn -index 3788f76b50f6a1776baef2131033a62875e101b9..f3e2226021d1de6a5cb787538ca6c0f18f208670 100644 +index b63dfc16103a6882ffb4dd81a20408092aaed3ab..d56e6f0a527ddc8adccb5fec3adb66fd2f5c99bd 100644 --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn @@ -1658,6 +1658,8 @@ component("platform") { @@ -320,7 +320,7 @@ index 3788f76b50f6a1776baef2131033a62875e101b9..f3e2226021d1de6a5cb787538ca6c0f1 sources -= blink_platform_avx_files diff --git a/third_party/blink/renderer/platform/geometry/contoured_rect.h b/third_party/blink/renderer/platform/geometry/contoured_rect.h -index 88e78f1d8050c73ae6a8929f23e636ef7a383404..17b63c5ecdcd8feb17b76a13392595c737c316b7 100644 +index 54d3ae85eaed0699714728bcb8ff0c817f6b5e86..3014d286ecbef8b9a90f007527cce5141110eaf6 100644 --- a/third_party/blink/renderer/platform/geometry/contoured_rect.h +++ b/third_party/blink/renderer/platform/geometry/contoured_rect.h @@ -47,19 +47,29 @@ class PLATFORM_EXPORT ContouredRect { @@ -373,7 +373,7 @@ index 88e78f1d8050c73ae6a8929f23e636ef7a383404..17b63c5ecdcd8feb17b76a13392595c7 // A Corner is a axis-aligned quad, with the points ordered (start, outer, diff --git a/third_party/blink/renderer/platform/geometry/path_builder.cc b/third_party/blink/renderer/platform/geometry/path_builder.cc -index b17bc9760b97b1e72783ae174ffa0f69ca830462..226b546694524e3848ea849059df74970403690e 100644 +index 414b73e219a7f4e499414cf120c5b8ebd0ae3a63..2093364a27e89fa10fe9a6921453d2d8285e445e 100644 --- a/third_party/blink/renderer/platform/geometry/path_builder.cc +++ b/third_party/blink/renderer/platform/geometry/path_builder.cc @@ -4,6 +4,7 @@ diff --git a/patches/chromium/feat_enable_offscreen_rendering_with_viz_compositor.patch b/patches/chromium/feat_enable_offscreen_rendering_with_viz_compositor.patch index 23a4d1bc33..107aa40073 100644 --- a/patches/chromium/feat_enable_offscreen_rendering_with_viz_compositor.patch +++ b/patches/chromium/feat_enable_offscreen_rendering_with_viz_compositor.patch @@ -564,10 +564,10 @@ index 399fba1a3d4e601dc2cdd5f1f4def8b7fd7a3011..8bcbe0d26c80323155d536c0d3a177a1 gpu::SyncPointManager* GetSyncPointManager() override; gpu::Scheduler* GetGpuScheduler() override; diff --git a/content/browser/compositor/viz_process_transport_factory.cc b/content/browser/compositor/viz_process_transport_factory.cc -index 8e2ddfa9337b5ba952a186a85bce78d39a62e8bd..efb54a95b2ad76546eafa1907064a298961b1a4d 100644 +index 130067b91baa360a7234fecfe6342c8239d587b5..d701328102f9a53e12b1b2e2a86265910692ca59 100644 --- a/content/browser/compositor/viz_process_transport_factory.cc +++ b/content/browser/compositor/viz_process_transport_factory.cc -@@ -389,8 +389,14 @@ void VizProcessTransportFactory::OnEstablishedGpuChannel( +@@ -387,8 +387,14 @@ void VizProcessTransportFactory::OnEstablishedGpuChannel( mojo::AssociatedRemote display_private; root_params->display_private = display_private.BindNewEndpointAndPassReceiver(); diff --git a/patches/chromium/feat_ensure_mas_builds_of_the_same_application_can_use_safestorage.patch b/patches/chromium/feat_ensure_mas_builds_of_the_same_application_can_use_safestorage.patch index 9a8fc18059..0668d63d12 100644 --- a/patches/chromium/feat_ensure_mas_builds_of_the_same_application_can_use_safestorage.patch +++ b/patches/chromium/feat_ensure_mas_builds_of_the_same_application_can_use_safestorage.patch @@ -12,10 +12,10 @@ We attempt to migrate the safe storage key from the old account, if that migrati Existing apps that aren't built for the app store should be unimpacted, there is one edge case where a user uses BOTH an AppStore and a darwin build of the same app only one will keep it's access to the safestorage key as during the migration we delete the old account. This is an acceptable edge case as no one should be actively using two versions of the same app. diff --git a/components/os_crypt/sync/keychain_password_mac.mm b/components/os_crypt/sync/keychain_password_mac.mm -index 3d388a85aaf52acdcc2b7aaea56f5a24b2435bff..7a0d28cbf1651e76a4356f1193b502d27e7a8ed4 100644 +index 77409051c67a5a7bd3826a7063666954a38a86f0..397c5a17f0dc4d662f6413234ddc430b680fb0b3 100644 --- a/components/os_crypt/sync/keychain_password_mac.mm +++ b/components/os_crypt/sync/keychain_password_mac.mm -@@ -25,6 +25,12 @@ +@@ -26,6 +26,12 @@ using KeychainNameContainerType = const base::NoDestructor; #endif @@ -28,10 +28,10 @@ index 3d388a85aaf52acdcc2b7aaea56f5a24b2435bff..7a0d28cbf1651e76a4356f1193b502d2 namespace { // These two strings ARE indeed user facing. But they are used to access -@@ -79,10 +85,47 @@ - KeychainPassword::~KeychainPassword() = default; +@@ -95,11 +101,49 @@ + uma_result); + }; - std::string KeychainPassword::GetPassword() const { + const std::string account_name_suffix = kAccountNameSuffix; + const std::string suffixed_account_name = GetAccountName() + account_name_suffix; auto password = @@ -43,7 +43,7 @@ index 3d388a85aaf52acdcc2b7aaea56f5a24b2435bff..7a0d28cbf1651e76a4356f1193b502d2 + } + + // If the error was anything other than "it does not exist" we should error out here -+ // This normally means the account exists but we were deniged access to it ++ // This normally means the account exists but we were denied access to it + if (password.error() != errSecItemNotFound) { + OSSTATUS_LOG(ERROR, password.error()) << "Keychain lookup for suffixed key failed"; + return std::string(); @@ -57,6 +57,8 @@ index 3d388a85aaf52acdcc2b7aaea56f5a24b2435bff..7a0d28cbf1651e76a4356f1193b502d2 + item_ref.InitializeInto()); if (password.has_value()) { + uma_result = FindGenericPasswordResult::kPasswordFound; ++ + // If we found the legacy account name we should copy it over to + // the new suffixed account + OSStatus error = keychain_->AddGenericPassword( diff --git a/patches/chromium/feat_expose_raw_response_headers_from_urlloader.patch b/patches/chromium/feat_expose_raw_response_headers_from_urlloader.patch index 9394103e1a..47c34fd73b 100644 --- a/patches/chromium/feat_expose_raw_response_headers_from_urlloader.patch +++ b/patches/chromium/feat_expose_raw_response_headers_from_urlloader.patch @@ -17,7 +17,7 @@ headers, moving forward we should find a way in upstream to provide access to these headers for loader clients created on the browser process. diff --git a/services/network/public/cpp/resource_request.cc b/services/network/public/cpp/resource_request.cc -index 28355f4c6c3cbbe60e827246e88107ce7374104a..4183f448dc40f0fbe1fabadf58f09eeb84c9f684 100644 +index 0becf4f37532fb7acfdf4d516a72f7048e98c550..0a267234eff1684fe2e6231584ccd1b5c9ed03e3 100644 --- a/services/network/public/cpp/resource_request.cc +++ b/services/network/public/cpp/resource_request.cc @@ -178,6 +178,7 @@ ResourceRequest::TrustedParams& ResourceRequest::TrustedParams::operator=( @@ -37,10 +37,10 @@ index 28355f4c6c3cbbe60e827246e88107ce7374104a..4183f448dc40f0fbe1fabadf58f09eeb allow_cookies_from_browser == other.allow_cookies_from_browser && include_request_cookies_with_response == diff --git a/services/network/public/cpp/resource_request.h b/services/network/public/cpp/resource_request.h -index 8634c50fbede68bf5497ed50e258eecac594b4d4..c6f06966f0f58e5087e1f62537eecffc95cd1962 100644 +index df29c7cb739a488684c0c50bc5343df101911a31..86b5576c9c10e5544347117e4f6b09d7692caffa 100644 --- a/services/network/public/cpp/resource_request.h +++ b/services/network/public/cpp/resource_request.h -@@ -77,6 +77,7 @@ struct COMPONENT_EXPORT(NETWORK_CPP_BASE) ResourceRequest { +@@ -78,6 +78,7 @@ struct COMPONENT_EXPORT(NETWORK_CPP_BASE) ResourceRequest { bool has_user_activation = false; bool allow_cookies_from_browser = false; bool include_request_cookies_with_response = false; @@ -49,10 +49,10 @@ index 8634c50fbede68bf5497ed50e258eecac594b4d4..c6f06966f0f58e5087e1f62537eecffc mojo::PendingRemote trust_token_observer; mojo::PendingRemote diff --git a/services/network/public/cpp/url_request_mojom_traits.cc b/services/network/public/cpp/url_request_mojom_traits.cc -index e67d4d6f11cb68cfc7f6f1dad60285cbaf905e76..e8e35f02b4a9c5662cd8b2cbb7dbb30e31efd4f3 100644 +index 1fbe54bda8198423b42cb5eba291d7346a76873c..71b58ec4e11317a4da1c89d9407ab439ff1629c3 100644 --- a/services/network/public/cpp/url_request_mojom_traits.cc +++ b/services/network/public/cpp/url_request_mojom_traits.cc -@@ -49,6 +49,7 @@ bool StructTraitsallow_cookies_from_browser = data.allow_cookies_from_browser(); out->include_request_cookies_with_response = data.include_request_cookies_with_response(); @@ -61,10 +61,10 @@ index e67d4d6f11cb68cfc7f6f1dad60285cbaf905e76..e8e35f02b4a9c5662cd8b2cbb7dbb30e mojo::PendingRemote>(); out->trust_token_observer = data.TakeTrustTokenObserver< diff --git a/services/network/public/cpp/url_request_mojom_traits.h b/services/network/public/cpp/url_request_mojom_traits.h -index 91628c93c415d8293ac989bdf9135cf2c8c59557..a51f9ca3f06ada3232c52b2b3e39a4433860bf2a 100644 +index 1d6f7cb0347c2d1156052f43b82f22130c4750aa..ef6625a9148107772f94d2f62478914fc84d6b89 100644 --- a/services/network/public/cpp/url_request_mojom_traits.h +++ b/services/network/public/cpp/url_request_mojom_traits.h -@@ -71,6 +71,10 @@ struct COMPONENT_EXPORT(NETWORK_CPP_BASE) +@@ -72,6 +72,10 @@ struct COMPONENT_EXPORT(NETWORK_CPP_BASE) const network::ResourceRequest::TrustedParams& trusted_params) { return trusted_params.include_request_cookies_with_response; } @@ -76,10 +76,10 @@ index 91628c93c415d8293ac989bdf9135cf2c8c59557..a51f9ca3f06ada3232c52b2b3e39a443 cookie_observer( const network::ResourceRequest::TrustedParams& trusted_params) { diff --git a/services/network/public/mojom/url_request.mojom b/services/network/public/mojom/url_request.mojom -index e4ebfcfbbd56e284dcb88918a779abccc467a4af..f22dc2c544c676e3c0bd318f21cba11205ed8386 100644 +index 392d697a8d1573815bf08e37b1bcc5c0c7493116..cf9915b9322487734b27a1776e721440035d7ad7 100644 --- a/services/network/public/mojom/url_request.mojom +++ b/services/network/public/mojom/url_request.mojom -@@ -86,6 +86,9 @@ struct TrustedUrlRequestParams { +@@ -87,6 +87,9 @@ struct TrustedUrlRequestParams { // client which should not be able to see them. bool include_request_cookies_with_response = false; diff --git a/patches/chromium/fix_activate_background_material_on_windows.patch b/patches/chromium/fix_activate_background_material_on_windows.patch index 5cc74422f3..5dfab74789 100644 --- a/patches/chromium/fix_activate_background_material_on_windows.patch +++ b/patches/chromium/fix_activate_background_material_on_windows.patch @@ -14,10 +14,10 @@ This patch likely can't be upstreamed as-is, as Chromium doesn't have this use case in mind currently. diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc -index 88f658aeb32a3181e3a0cd45fbd2aacad95116aa..cef61dcf3ab89f06cba16f309e800dbab5a7cc05 100644 +index 30399c8a81819a57f07702a97f85e3edd7df9d69..1559eb26fb86ac6172509785afff1e0bbd226ee7 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc -@@ -936,13 +936,13 @@ void HWNDMessageHandler::FrameTypeChanged() { +@@ -937,13 +937,13 @@ void HWNDMessageHandler::FrameTypeChanged() { void HWNDMessageHandler::PaintAsActiveChanged() { if (!delegate_->HasNonClientView() || !delegate_->CanActivate() || @@ -33,7 +33,7 @@ index 88f658aeb32a3181e3a0cd45fbd2aacad95116aa..cef61dcf3ab89f06cba16f309e800dba } void HWNDMessageHandler::SetWindowIcons(const gfx::ImageSkia& window_icon, -@@ -1728,7 +1728,7 @@ void HWNDMessageHandler::OnActivateApp(BOOL active, DWORD thread_id) { +@@ -1732,7 +1732,7 @@ void HWNDMessageHandler::OnActivateApp(BOOL active, DWORD thread_id) { if (delegate_->HasNonClientView() && !active && thread_id != GetCurrentThreadId()) { // Update the native frame if it is rendering the non-client area. @@ -42,7 +42,7 @@ index 88f658aeb32a3181e3a0cd45fbd2aacad95116aa..cef61dcf3ab89f06cba16f309e800dba DefWindowProcWithRedrawLock(WM_NCACTIVATE, FALSE, 0); } } -@@ -2336,17 +2336,18 @@ LRESULT HWNDMessageHandler::OnNCActivate(UINT message, +@@ -2340,17 +2340,18 @@ LRESULT HWNDMessageHandler::OnNCActivate(UINT message, delegate_->SchedulePaint(); } diff --git a/patches/chromium/fix_aspect_ratio_with_max_size.patch b/patches/chromium/fix_aspect_ratio_with_max_size.patch index 7cef957d01..aea35450aa 100644 --- a/patches/chromium/fix_aspect_ratio_with_max_size.patch +++ b/patches/chromium/fix_aspect_ratio_with_max_size.patch @@ -11,10 +11,10 @@ enlarge window above dimensions set during creation of the BrowserWindow. diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc -index 2cd46f4692c84cffff0775bbb67d3585f24e900d..9747e945b2ebfc113ffd12839c28a98fcccf2872 100644 +index c38b58ed16b14ff765f24d0bb8bdf34b8de3a901..418dc47b6d4df097e8f0cfd61de8485af2a8d2c2 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc -@@ -3771,15 +3771,30 @@ void HWNDMessageHandler::SizeWindowToAspectRatio(UINT param, +@@ -3775,15 +3775,30 @@ void HWNDMessageHandler::SizeWindowToAspectRatio(UINT param, delegate_->GetMinMaxSize(&min_window_size, &max_window_size); min_window_size = delegate_->DIPToScreenSize(min_window_size); max_window_size = delegate_->DIPToScreenSize(max_window_size); diff --git a/patches/chromium/fix_crash_loading_non-standard_schemes_in_iframes.patch b/patches/chromium/fix_crash_loading_non-standard_schemes_in_iframes.patch index 134d0ea09a..e9594ef50b 100644 --- a/patches/chromium/fix_crash_loading_non-standard_schemes_in_iframes.patch +++ b/patches/chromium/fix_crash_loading_non-standard_schemes_in_iframes.patch @@ -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. diff --git a/content/browser/renderer_host/navigation_request.cc b/content/browser/renderer_host/navigation_request.cc -index e35fc05100fd582669a021574fcd0a01e72d2302..fec6fb5ff81b362fc299b36b447c1141911ccb56 100644 +index deb3de267fb5e6a326985fa7943e5a66217888f8..ad53374b86efe1db1e2c2e06056cd3b50696ad9b 100644 --- a/content/browser/renderer_host/navigation_request.cc +++ b/content/browser/renderer_host/navigation_request.cc -@@ -11080,6 +11080,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() { +@@ -11158,6 +11158,11 @@ url::Origin NavigationRequest::GetOriginForURLLoaderFactoryUnchecked() { target_rph_id); } @@ -44,7 +44,7 @@ index e35fc05100fd582669a021574fcd0a01e72d2302..fec6fb5ff81b362fc299b36b447c1141 // origin of |common_params.url| and/or |common_params.initiator_origin|. 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 -index 59e909f5b9b3b9e2cb648359d3a0b4db2f1671b7..297aa66d55a62557deafe1d723809d68f898095c 100644 +index 094f7359e5d3b701676daa6c26fa6f8dee9d4a29..ac23e8b6e5b16670e942bf4801d97296176e2a00 100644 --- a/third_party/blink/renderer/core/loader/document_loader.cc +++ b/third_party/blink/renderer/core/loader/document_loader.cc @@ -2332,6 +2332,10 @@ Frame* DocumentLoader::CalculateOwnerFrame() { diff --git a/patches/chromium/fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch b/patches/chromium/fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch index 3a0c0cd608..0a09c11167 100644 --- a/patches/chromium/fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch +++ b/patches/chromium/fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch @@ -87,10 +87,10 @@ index 75df43e3cd2721a92c90c18154d53d5c203e2465..ce42c75c8face36d21f53f44c0201ac4 // The view with active text input state, i.e., a focused element. // 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 -index fc4af3a293fd807780f39b0cddc7605031620879..acb6b6257ccb13aae284d9b02baada14fe9ee0cc 100644 +index 97df851aa73d1bf8d8c8001646b63cbb43cd9a92..29185fc4c426652d192870c8a11aaa981a08ebf8 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -10009,7 +10009,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame( +@@ -10162,7 +10162,7 @@ void WebContentsImpl::OnFocusedElementChangedInFrame( "WebContentsImpl::OnFocusedElementChangedInFrame", "render_frame_host", frame); RenderWidgetHostViewBase* root_view = diff --git a/patches/chromium/fix_remove_caption-removing_style_call.patch b/patches/chromium/fix_remove_caption-removing_style_call.patch index cf72a25a57..9ec10741fd 100644 --- a/patches/chromium/fix_remove_caption-removing_style_call.patch +++ b/patches/chromium/fix_remove_caption-removing_style_call.patch @@ -18,10 +18,10 @@ or resizing, but Electron does not seem to run into that issue 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 -index 6f2e2702d3b982fe7e8d258f303c8055d3d37df8..88f658aeb32a3181e3a0cd45fbd2aacad95116aa 100644 +index 8c13b9db078e690240eca0a48a7c546dcdac3c11..30399c8a81819a57f07702a97f85e3edd7df9d69 100644 --- a/ui/views/win/hwnd_message_handler.cc +++ b/ui/views/win/hwnd_message_handler.cc -@@ -1796,7 +1796,23 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) { +@@ -1800,7 +1800,23 @@ LRESULT HWNDMessageHandler::OnCreate(CREATESTRUCT* create_struct) { SendMessage(hwnd(), WM_CHANGEUISTATE, MAKELPARAM(UIS_CLEAR, UISF_HIDEFOCUS), 0); diff --git a/patches/chromium/fix_restore_original_resize_performance_on_macos.patch b/patches/chromium/fix_restore_original_resize_performance_on_macos.patch index 6cc351a49a..280c109356 100644 --- a/patches/chromium/fix_restore_original_resize_performance_on_macos.patch +++ b/patches/chromium/fix_restore_original_resize_performance_on_macos.patch @@ -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 diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc -index 583b7cf8c0e484d53a0b93b86e65f28ba5359906..31cedc79b9763bee5cc69066f5d4afa6f4ec7e39 100644 +index 6a939edf24643207b26c9cc155ccca661b06f937..c33beb8be5535ad0951013ef0617fb881fe9fac4 100644 --- a/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() { +@@ -2134,9 +2134,8 @@ RenderWidgetHostImpl::GetWidgetInputHandler() { void RenderWidgetHostImpl::NotifyScreenInfoChanged() { // 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 diff --git a/patches/chromium/fix_return_v8_value_from_localframe_requestexecutescript.patch b/patches/chromium/fix_return_v8_value_from_localframe_requestexecutescript.patch index 832e684a9a..25a3c6fd18 100644 --- a/patches/chromium/fix_return_v8_value_from_localframe_requestexecutescript.patch +++ b/patches/chromium/fix_return_v8_value_from_localframe_requestexecutescript.patch @@ -203,7 +203,7 @@ index fa65331f40b90d812b71a489fd560e9359152d2b..390714d631dc88ef92d59ef9618a5706 const mojom::blink::UserActivationOption user_activation_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 -index 5e12b61ba14cd1afb07b71ff15e73e905da0addc..685a2ebb6694c173471d0450149321254da652ec 100644 +index c9af87ce934e52d530dc30d0969a22e5b1747810..e89b768983e8b6882bf0bdc92d2a9a48714283c9 100644 --- a/third_party/blink/renderer/core/frame/web_frame_test.cc +++ b/third_party/blink/renderer/core/frame/web_frame_test.cc @@ -298,6 +298,7 @@ void ExecuteScriptsInMainWorld( @@ -215,7 +215,7 @@ index 5e12b61ba14cd1afb07b71ff15e73e905da0addc..685a2ebb6694c173471d045014932125 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 -index b9adaba2543608f91815ca5e1aca443da5813d9d..966210be0d0b2d89c0b24ea12686ebe0289087a1 100644 +index 0c34345a9a6d79f9ef8b8a108842d5b2c6d1434f..f4b05b74303e258738c07f6f1c8320cb5fae5652 100644 --- a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc +++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc @@ -1111,14 +1111,15 @@ void WebLocalFrameImpl::RequestExecuteScript( diff --git a/patches/chromium/frame_host_manager.patch b/patches/chromium/frame_host_manager.patch index f775fad1e6..1fb5372d75 100644 --- a/patches/chromium/frame_host_manager.patch +++ b/patches/chromium/frame_host_manager.patch @@ -20,10 +20,10 @@ index 39eae72b5f9f05fc9dda3b6b3a51b4d1d2bf7fcf..cd95bbd34218cb3181b887832a84893c } diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h -index bd3cccc408c61f4c4e408fd5d093d6aa1ef0e201..4f65dbc23f3039a0144745cd3cdefeff657b6b3e 100644 +index 0a74c5a3bee425c5c1af33ef27791a6d852baa6e..2a657027c39370d7ea839576afe547ad6da6c5a7 100644 --- a/content/public/browser/content_browser_client.h +++ b/content/public/browser/content_browser_client.h -@@ -342,6 +342,11 @@ class CONTENT_EXPORT ContentBrowserClient { +@@ -341,6 +341,11 @@ class CONTENT_EXPORT ContentBrowserClient { virtual ~ContentBrowserClient() = default; diff --git a/patches/chromium/gritsettings_resource_ids.patch b/patches/chromium/gritsettings_resource_ids.patch index fd588f74de..6e31d7bb7e 100644 --- a/patches/chromium/gritsettings_resource_ids.patch +++ b/patches/chromium/gritsettings_resource_ids.patch @@ -6,7 +6,7 @@ Subject: gritsettings_resource_ids.patch 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 -index 78d72ec8ed37f4a551ff091038e6741e3f0b9efb..1c9de5cc18ab8656e7a91d5ce3f5a5424b7d8739 100644 +index 6d02cc4f84fc2de0404f006f6895919f6aa21cb4..92882f52b2ba1898608b2eb38702f37dd8cfb8cd 100644 --- a/tools/gritsettings/resource_ids.spec +++ b/tools/gritsettings/resource_ids.spec @@ -1524,6 +1524,11 @@ diff --git a/patches/chromium/mas_avoid_private_macos_api_usage.patch.patch b/patches/chromium/mas_avoid_private_macos_api_usage.patch.patch index 4210fad044..7e3094d851 100644 --- a/patches/chromium/mas_avoid_private_macos_api_usage.patch.patch +++ b/patches/chromium/mas_avoid_private_macos_api_usage.patch.patch @@ -35,10 +35,10 @@ system font by checking if it's kCTFontPriorityAttribute is set to system priority. diff --git a/base/BUILD.gn b/base/BUILD.gn -index 01c19144731d186d857dda72c3ac002a9ae2e911..14faff7dd8f32437f849011df222a37744f379d5 100644 +index 275f4e0ece8c5bd8cee239c61fdb965eef524650..4726c37e6fc70133af5e2152ec4d0774f2ddfcaa 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn -@@ -1046,6 +1046,7 @@ component("base") { +@@ -1048,6 +1048,7 @@ component("base") { "//build:ios_buildflags", "//build/config/compiler:compiler_buildflags", "//third_party/modp_b64", @@ -208,7 +208,7 @@ index ff1e356ff696d3830d02644969c36a71fdf32ff6..b39c716c52524b95f2d3417a98e60c0c sources += [ "os_crypt_win.cc" ] deps += [ "//components/version_info" ] diff --git a/components/os_crypt/sync/keychain_password_mac.mm b/components/os_crypt/sync/keychain_password_mac.mm -index 6b936d228cf71d33025769430afbe6fe322ed186..3d388a85aaf52acdcc2b7aaea56f5a24b2435bff 100644 +index 6567e6f2d3b1dc859408666dd3c15c4a9e1238b0..77409051c67a5a7bd3826a7063666954a38a86f0 100644 --- a/components/os_crypt/sync/keychain_password_mac.mm +++ b/components/os_crypt/sync/keychain_password_mac.mm @@ -15,6 +15,7 @@ @@ -216,9 +216,9 @@ index 6b936d228cf71d33025769430afbe6fe322ed186..3d388a85aaf52acdcc2b7aaea56f5a24 #include "build/branding_buildflags.h" #include "crypto/apple_keychain.h" +#include "electron/mas.h" + #include "third_party/abseil-cpp/absl/cleanup/cleanup.h" using crypto::AppleKeychain; - diff --git a/components/remote_cocoa/app_shim/BUILD.gn b/components/remote_cocoa/app_shim/BUILD.gn index ad40ddbbcb0fcfa070833ea6c0d01432bbb67768..df632da340c132f469f4f35738514763437e67fc 100644 --- a/components/remote_cocoa/app_shim/BUILD.gn @@ -582,7 +582,7 @@ index d83f420d25e2c108ad400ebecae02b1ac327c058..77852c5c315ac09dddb7227adf3b840e return kAttributes; } diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn -index 1006244a7ed861fdd58bfb3af926a69af2061322..4074a0429ce78963d4406f957c96382333d760ed 100644 +index 3f6fb6a8653f1d087cf28396361fc77d98668db9..0603b350939376c6e3499de7f19980b7cd274735 100644 --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn @@ -342,6 +342,7 @@ source_set("browser") { @@ -715,10 +715,10 @@ index da0e8c7260391805fa6950125c797565a2812521..8e8b093cd142326010445e9b2aae7c20 defines = [] diff --git a/content/renderer/BUILD.gn b/content/renderer/BUILD.gn -index 7424d33cc34ca44b1949260215b2f0a44a2d393e..80e284ca761069e5d544b5a056b13df32d509d00 100644 +index b8fd955057ebdbf910c81f5d79d7a7ca47601ac7..aa232a7d02f353d83fd2862416b0c3b8ebbccc52 100644 --- a/content/renderer/BUILD.gn +++ b/content/renderer/BUILD.gn -@@ -327,6 +327,7 @@ target(link_target_type, "renderer") { +@@ -321,6 +321,7 @@ target(link_target_type, "renderer") { "//ui/surface", "//url", "//v8", @@ -797,10 +797,10 @@ index a1068589ad844518038ee7bc15a3de9bc5cba525..1ff781c49f086ec8015c7d3c44567dbe } // namespace content diff --git a/content/test/BUILD.gn b/content/test/BUILD.gn -index 5544ddc8faae9cc4a75c812227a94df4ad4f5e53..d6fa2a588fec9895101dc4c308eb84b015a908aa 100644 +index 1403a31f878228d835772bffd9b37eea3b742599..5a013396c0990cb3f49a659d4398e9cbe64e0283 100644 --- a/content/test/BUILD.gn +++ b/content/test/BUILD.gn -@@ -664,6 +664,7 @@ static_library("test_support") { +@@ -665,6 +665,7 @@ static_library("test_support") { "//url", "//url/mojom:url_mojom_gurl", "//v8", @@ -808,7 +808,7 @@ index 5544ddc8faae9cc4a75c812227a94df4ad4f5e53..d6fa2a588fec9895101dc4c308eb84b0 ] data_deps = [ -@@ -1120,6 +1121,7 @@ static_library("browsertest_support") { +@@ -1121,6 +1122,7 @@ static_library("browsertest_support") { } configs += [ "//v8:external_startup_data" ] @@ -816,7 +816,7 @@ index 5544ddc8faae9cc4a75c812227a94df4ad4f5e53..d6fa2a588fec9895101dc4c308eb84b0 } mojom("content_test_mojo_bindings") { -@@ -1963,6 +1965,7 @@ test("content_browsertests") { +@@ -1964,6 +1966,7 @@ test("content_browsertests") { "//ui/shell_dialogs", "//ui/snapshot", "//ui/webui:test_support", @@ -824,7 +824,7 @@ index 5544ddc8faae9cc4a75c812227a94df4ad4f5e53..d6fa2a588fec9895101dc4c308eb84b0 ] if (!(is_chromeos && target_cpu == "arm64" && current_cpu == "arm")) { -@@ -3293,6 +3296,7 @@ test("content_unittests") { +@@ -3297,6 +3300,7 @@ test("content_unittests") { "//ui/shell_dialogs:shell_dialogs", "//ui/webui:test_support", "//url", @@ -903,7 +903,7 @@ index 6431af67ab634cf23729b9102c189b2181cfd2cf..22040e1bfb96d810a2d8e62e44e4afbc base::WeakPtr diff --git a/gpu/ipc/service/BUILD.gn b/gpu/ipc/service/BUILD.gn -index 2ef64102137f543ec8c4d88bd6718264d1c52691..7e2c450a44b4bddf7cb3e2d3482ec04c5b750e02 100644 +index 237bff815a69c786a9ae31437c6df1c933e4963b..215c9affd67ebddc81415eefc12ee5727ab07aee 100644 --- a/gpu/ipc/service/BUILD.gn +++ b/gpu/ipc/service/BUILD.gn @@ -131,6 +131,7 @@ component("service") { @@ -937,10 +937,10 @@ index f89dbdfb0c4e8e31d387d1ce2e5304277ac4df26..7b75bfeba59345d63f4ac81153697941 namespace ui { diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn -index 4f663e28aa078bd2e692a79d06dbdde055287f3c..8588214d7f30384cc37aaf0062c941a854d4bba5 100644 +index 6192d8fdc48be430b2d2eac0e1c97c88df11e196..b2aa0735896f58155667546d05937bd96a0dcfca 100644 --- a/media/audio/BUILD.gn +++ b/media/audio/BUILD.gn -@@ -198,6 +198,7 @@ source_set("audio") { +@@ -202,6 +202,7 @@ source_set("audio") { "CoreMedia.framework", ] weak_frameworks = [ "ScreenCaptureKit.framework" ] # macOS 13.0 @@ -1436,7 +1436,7 @@ index eb81a70e4d5d5cd3e6ae9b45f8cd1c795ea76c51..9921ccb10d3455600eddd85f77f10228 } // namespace sandbox diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn -index 1b5e616ebd3c610739a9dcf3fd6694f1e442d783..8449d7eb65687fa82db0f23c7627807ef26e34f3 100644 +index bae0728aa1b2d8416e815862fd5d4aceb165ee44..a1a653bb5ec345f07027d1911071792510c5da6f 100644 --- a/third_party/blink/renderer/core/BUILD.gn +++ b/third_party/blink/renderer/core/BUILD.gn @@ -414,6 +414,7 @@ component("core") { @@ -1584,10 +1584,10 @@ index dcf493d62990018040a3f84b6f875af737bd2214..3d1c4dcc9ee0bbfdac15f40d9c74e9f3 void DisplayCALayerTree::GotIOSurfaceFrame( diff --git a/ui/accessibility/platform/BUILD.gn b/ui/accessibility/platform/BUILD.gn -index 349a50ce687d5594296ce3c302938424be2e739b..0c5313b8f31a97747ae28f2c188e0fb591e5cc36 100644 +index 09b5f1a0165cacb9826cdb1ffb8ab4645cddfdf4..713678ce99b9d3bd46d1ef662a9fe1e7e8fc43ab 100644 --- a/ui/accessibility/platform/BUILD.gn +++ b/ui/accessibility/platform/BUILD.gn -@@ -296,6 +296,7 @@ component("platform") { +@@ -297,6 +297,7 @@ component("platform") { "AppKit.framework", "Foundation.framework", ] @@ -1678,7 +1678,7 @@ index 6846060ef9622d8fc8d1d6c8da16e2f1b785e6bd..05c22db87e882b246bd7034e027cf149 // Accessible object if (AXElementWrapper::IsValidElement(value)) { diff --git a/ui/base/BUILD.gn b/ui/base/BUILD.gn -index d2bd63f57da9b3ff84ebe36053ec18978d86c9f3..a6261be96e00548af7eba8a5fc7461586b9dbf53 100644 +index b5456d6483b35efd929aa772be65b68bc03aabc4..2d1bd535d66c2fab0209e5adc957d827d9182737 100644 --- a/ui/base/BUILD.gn +++ b/ui/base/BUILD.gn @@ -365,6 +365,13 @@ component("base") { @@ -1848,7 +1848,7 @@ index 033ebc0036bcd373b011ca829d255e8c83701a6d..ad06707f31872c58217d2d034f050c55 // Query the display's refresh rate. if (@available(macos 12.0, *)) { diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn -index af66f53bbec8e3cf9b1e2e69e602173725958706..381498a4d51b32a30a206d9ec3878d9ab3109386 100644 +index 073269d426f55591e2daeff32782d957624d11d4..c6fe49958fd3e0b556352fda5cc35b9455792002 100644 --- a/ui/gfx/BUILD.gn +++ b/ui/gfx/BUILD.gn @@ -337,6 +337,12 @@ component("gfx") { diff --git a/patches/chromium/network_service_allow_remote_certificate_verification_logic.patch b/patches/chromium/network_service_allow_remote_certificate_verification_logic.patch index 44c72ea13f..0bf84dae05 100644 --- a/patches/chromium/network_service_allow_remote_certificate_verification_logic.patch +++ b/patches/chromium/network_service_allow_remote_certificate_verification_logic.patch @@ -7,10 +7,10 @@ This adds a callback from the network service that's used to implement session.setCertificateVerifyCallback. diff --git a/services/network/network_context.cc b/services/network/network_context.cc -index 3c261f50a966bd9d472671c9d9c74cfa843355a6..7d65c373ac4f1f538085a44ca0b11ddce89b1e62 100644 +index 0339a3733272095428d5717c6df9fce8d16062c3..02853bf6552d49986b782785d3ab5a61ec0d3734 100644 --- a/services/network/network_context.cc +++ b/services/network/network_context.cc -@@ -165,6 +165,11 @@ +@@ -164,6 +164,11 @@ #include "services/network/web_transport.h" #include "url/gurl.h" @@ -22,7 +22,7 @@ index 3c261f50a966bd9d472671c9d9c74cfa843355a6..7d65c373ac4f1f538085a44ca0b11ddc #if BUILDFLAG(IS_CT_SUPPORTED) // 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 -@@ -604,6 +609,99 @@ void RecordHSTSPreconnectUpgradeReason(HSTSRedirectUpgradeReason reason) { +@@ -603,6 +608,99 @@ void RecordHSTSPreconnectUpgradeReason(HSTSRedirectUpgradeReason reason) { } // namespace @@ -122,7 +122,7 @@ index 3c261f50a966bd9d472671c9d9c74cfa843355a6..7d65c373ac4f1f538085a44ca0b11ddc constexpr uint32_t NetworkContext::kMaxOutstandingRequestsPerProcess; NetworkContext::NetworkContextHttpAuthPreferences:: -@@ -1007,6 +1105,13 @@ void NetworkContext::SetClient( +@@ -1006,6 +1104,13 @@ void NetworkContext::SetClient( client_.Bind(std::move(client)); } @@ -136,7 +136,7 @@ index 3c261f50a966bd9d472671c9d9c74cfa843355a6..7d65c373ac4f1f538085a44ca0b11ddc void NetworkContext::CreateURLLoaderFactory( mojo::PendingReceiver receiver, mojom::URLLoaderFactoryParamsPtr params) { -@@ -2612,6 +2717,10 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext( +@@ -2611,6 +2716,10 @@ URLRequestContextOwner NetworkContext::MakeURLRequestContext( cert_verifier = std::make_unique( std::make_unique( std::move(cert_verifier))); diff --git a/patches/chromium/notification_provenance.patch b/patches/chromium/notification_provenance.patch index 71e3f12bbf..7266481311 100644 --- a/patches/chromium/notification_provenance.patch +++ b/patches/chromium/notification_provenance.patch @@ -133,10 +133,10 @@ index 5be62a3fb27e37f3c1db6b811172f6dfebe18f61..34349f9832fe4b9a3d48db613a789afb const GURL& document_url, 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 -index 2dcb080a4bd9b2cd6a9f8f8ae41305dfd4400066..332f611678e53c0ea56c8baea71ca123d8cc0a95 100644 +index 9fd362b58903930c3fcb053d561cf8d8c815ce15..c97471d75ab2d11cfe71f34d8d11b27edb5c0fce 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -2217,7 +2217,7 @@ void RenderProcessHostImpl::CreateNotificationService( +@@ -2225,7 +2225,7 @@ void RenderProcessHostImpl::CreateNotificationService( case RenderProcessHost::NotificationServiceCreatorType::kSharedWorker: case RenderProcessHost::NotificationServiceCreatorType::kDedicatedWorker: { storage_partition_impl_->GetPlatformNotificationContext()->CreateService( @@ -145,7 +145,7 @@ index 2dcb080a4bd9b2cd6a9f8f8ae41305dfd4400066..332f611678e53c0ea56c8baea71ca123 creator_type, std::move(receiver)); break; } -@@ -2225,7 +2225,7 @@ void RenderProcessHostImpl::CreateNotificationService( +@@ -2233,7 +2233,7 @@ void RenderProcessHostImpl::CreateNotificationService( CHECK(rfh); storage_partition_impl_->GetPlatformNotificationContext()->CreateService( diff --git a/patches/chromium/port_autofill_colors_to_the_color_pipeline.patch b/patches/chromium/port_autofill_colors_to_the_color_pipeline.patch index f14b4d040f..e12a23881f 100644 --- a/patches/chromium/port_autofill_colors_to_the_color_pipeline.patch +++ b/patches/chromium/port_autofill_colors_to_the_color_pipeline.patch @@ -8,10 +8,10 @@ needed in chromium but our autofill implementation uses them. This patch can be our autofill implementation to work like Chromium's. diff --git a/ui/color/color_id.h b/ui/color/color_id.h -index 56ac73d6a9b8c00039bbbfc660e423bc14152e19..72a08ab14653136308ace4f4ee6e83773060dae5 100644 +index 4093391163580e262ef2ab7634e3d5937dbbacee..122f32030f5d07a737c3b76c587098efefe6b48a 100644 --- a/ui/color/color_id.h +++ b/ui/color/color_id.h -@@ -410,6 +410,10 @@ +@@ -431,6 +431,10 @@ E_CPONLY(kColorRadioButtonForegroundUnchecked) \ E_CPONLY(kColorRadioButtonForegroundDisabled) \ E_CPONLY(kColorRadioButtonForegroundChecked) \ @@ -22,7 +22,7 @@ index 56ac73d6a9b8c00039bbbfc660e423bc14152e19..72a08ab14653136308ace4f4ee6e8377 E_CPONLY(kColorSegmentedButtonBorder) \ E_CPONLY(kColorSegmentedButtonFocus) \ E_CPONLY(kColorSegmentedButtonForegroundChecked) \ -@@ -518,6 +522,7 @@ +@@ -539,6 +543,7 @@ E_CPONLY(kColorTreeNodeForeground) \ E_CPONLY(kColorTreeNodeForegroundSelectedFocused) \ E_CPONLY(kColorTreeNodeForegroundSelectedUnfocused) \ diff --git a/patches/chromium/printing.patch b/patches/chromium/printing.patch index bc230aa4e5..91855d62b5 100644 --- a/patches/chromium/printing.patch +++ b/patches/chromium/printing.patch @@ -881,10 +881,10 @@ index 97cb6458bc9eec767db89b56abfc5f4b4136ff7b..d9a0b343158b8464b5c9aa8e0e655c0b ScriptingThrottler scripting_throttler_; diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn -index 4074a0429ce78963d4406f957c96382333d760ed..c8f1114cb5cd892c80500da5ec4828cf5ad77dc9 100644 +index 0603b350939376c6e3499de7f19980b7cd274735..4adc2b7d4a244d60c9523feb9e4b24f7c0e634a7 100644 --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn -@@ -3161,8 +3161,9 @@ source_set("browser") { +@@ -3167,8 +3167,9 @@ source_set("browser") { "//ppapi/shared_impl", ] diff --git a/patches/chromium/process_singleton.patch b/patches/chromium/process_singleton.patch index 6ddc3cd274..a145cb11c0 100644 --- a/patches/chromium/process_singleton.patch +++ b/patches/chromium/process_singleton.patch @@ -18,10 +18,10 @@ This patch adds a few changes to the Chromium code: admin permissions. diff --git a/chrome/browser/process_singleton.h b/chrome/browser/process_singleton.h -index 4d446aa9ecfa14ffb1f65a2f45af6aaded122890..085b00fbb3ff95cdcde2a46760ab449808b4c1a9 100644 +index c19313c0b58baf0597a99d52ed7fcdb7faacc934..2748dd196fe1f56357348a204e24f0b8a28b97dd 100644 --- a/chrome/browser/process_singleton.h +++ b/chrome/browser/process_singleton.h -@@ -102,12 +102,19 @@ class ProcessSingleton { +@@ -101,12 +101,19 @@ class ProcessSingleton { base::RepeatingCallback; @@ -41,7 +41,7 @@ index 4d446aa9ecfa14ffb1f65a2f45af6aaded122890..085b00fbb3ff95cdcde2a46760ab4498 ~ProcessSingleton(); // Notify another process, if available. Otherwise sets ourselves as the -@@ -176,6 +183,8 @@ class ProcessSingleton { +@@ -175,6 +182,8 @@ class ProcessSingleton { #if BUILDFLAG(IS_WIN) bool EscapeVirtualization(const base::FilePath& user_data_dir); diff --git a/patches/chromium/refactor_expose_cursor_changes_to_the_webcontentsobserver.patch b/patches/chromium/refactor_expose_cursor_changes_to_the_webcontentsobserver.patch index 451366d54d..5136b1de11 100644 --- a/patches/chromium/refactor_expose_cursor_changes_to_the_webcontentsobserver.patch +++ b/patches/chromium/refactor_expose_cursor_changes_to_the_webcontentsobserver.patch @@ -30,10 +30,10 @@ index a54a0dedf8ef1cfffa4e80a4707debed0e83d277..e66e71fdbabb40a5307b12cd8965e773 // RenderWidgetHost on the primary main frame, and false otherwise. 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 -index a1cec61f882c38efa611401da69de123c99c9e7f..583b7cf8c0e484d53a0b93b86e65f28ba5359906 100644 +index 6a60a4b0275e1832216b092c29bc867f4727ca22..6a939edf24643207b26c9cc155ccca661b06f937 100644 --- a/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) { +@@ -2068,6 +2068,9 @@ void RenderWidgetHostImpl::SetCursor(const ui::Cursor& cursor) { if (view_) { view_->UpdateCursor(cursor); } @@ -44,10 +44,10 @@ index a1cec61f882c38efa611401da69de123c99c9e7f..583b7cf8c0e484d53a0b93b86e65f28b void RenderWidgetHostImpl::ShowContextMenuAtPoint( diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc -index 65a3b57c38419c15b071e67852789b48533fe53a..fcb7a38577a7b597be09b73cea9308b7112fee2a 100644 +index c0ef22f3872e96be15867428aff1006b8a14a1df..6eaa7d566058fdcc9ebfa10f0420c3a234cb0483 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -5907,6 +5907,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() { +@@ -6060,6 +6060,11 @@ TextInputManager* WebContentsImpl::GetTextInputManager() { return text_input_manager_.get(); } @@ -60,10 +60,10 @@ index 65a3b57c38419c15b071e67852789b48533fe53a..fcb7a38577a7b597be09b73cea9308b7 RenderWidgetHostImpl* render_widget_host) { 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 -index de9650b781ccb250fd5f59aaea8dc6e09d7816ef..09ae0904e236336058bbf1fe9c4d211ddbe146a4 100644 +index bb00cc84d8880911c1b170a0b7084a8d9cd4bbdb..e8db4afa0c4f1061fe1609745cbac815f52b4a28 100644 --- a/content/browser/web_contents/web_contents_impl.h +++ b/content/browser/web_contents/web_contents_impl.h -@@ -1186,6 +1186,7 @@ class CONTENT_EXPORT WebContentsImpl +@@ -1189,6 +1189,7 @@ class CONTENT_EXPORT WebContentsImpl void SendScreenRects() override; void SendActiveState(bool active) override; TextInputManager* GetTextInputManager() override; diff --git a/patches/chromium/refactor_expose_file_system_access_blocklist.patch b/patches/chromium/refactor_expose_file_system_access_blocklist.patch index 2e7293355a..20dba82deb 100644 --- a/patches/chromium/refactor_expose_file_system_access_blocklist.patch +++ b/patches/chromium/refactor_expose_file_system_access_blocklist.patch @@ -269,7 +269,7 @@ index 5b543e82abb17cbb91bf37fa6bac016b6053eb93..117b6b05b3a1c39183a45830b97255ca void ChromeFileSystemAccessPermissionContext::SetOriginExtendedPermissionByUser( 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 5e1aa12c6337e8d0dee9f24d7ec233a894763053..e1e6a8163be4c95031a464481f55357af253cfb2 100644 +index f647100981fd98d8511d07a6d7e100910e38a0f2..14e1b3c8ec78429f5a845f54cc973e7c77ea8bc4 100644 --- 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 @@ -9,10 +9,13 @@ @@ -294,9 +294,9 @@ index 5e1aa12c6337e8d0dee9f24d7ec233a894763053..e1e6a8163be4c95031a464481f55357a #include "components/enterprise/buildflags/buildflags.h" #include "components/permissions/features.h" #include "components/permissions/object_permission_context_base.h" -@@ -399,6 +403,183 @@ class ChromeFileSystemAccessPermissionContext - // This is needed when updating path with ScopedPathOverride. - void ResetBlockPathsForTesting(); +@@ -403,6 +407,183 @@ class ChromeFileSystemAccessPermissionContext + return is_block_path_rules_init_complete_; + } + // Sentinel used to indicate that no PathService key is specified for a path in + // the struct below. diff --git a/patches/chromium/refactor_unfilter_unresponsive_events.patch b/patches/chromium/refactor_unfilter_unresponsive_events.patch index 676ea45683..e9dd22401d 100644 --- a/patches/chromium/refactor_unfilter_unresponsive_events.patch +++ b/patches/chromium/refactor_unfilter_unresponsive_events.patch @@ -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. diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc -index 9269ef00d1c0ce0606a39533b839e061ba448d7e..7c4851fb5f9e28ab77837755993d375e91a0dcac 100644 +index de2e8163c6ae5a1a01a79413d3d44b7c11ede311..e1692192bfa25f9949dd3f2fa2b61fc5dcef2e26 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -10146,25 +10146,13 @@ void WebContentsImpl::RendererUnresponsive( +@@ -10299,25 +10299,13 @@ void WebContentsImpl::RendererUnresponsive( base::RepeatingClosure hang_monitor_restarter) { OPTIONAL_TRACE_EVENT1("content", "WebContentsImpl::RendererUnresponsive", "render_widget_host", render_widget_host); diff --git a/patches/chromium/revert_code_health_clean_up_stale_macwebcontentsocclusion.patch b/patches/chromium/revert_code_health_clean_up_stale_macwebcontentsocclusion.patch index b7b7f6aae4..e0e67b527d 100644 --- a/patches/chromium/revert_code_health_clean_up_stale_macwebcontentsocclusion.patch +++ b/patches/chromium/revert_code_health_clean_up_stale_macwebcontentsocclusion.patch @@ -233,10 +233,10 @@ index 7c99a9512e6f65713fe8483cef7b7c9b494b4491..8fb6cf252961c9773d1a6a09d47bec6a } diff --git a/content/common/features.cc b/content/common/features.cc -index 8dcb54b4c48cde0d11e682cc23dacbec9c4814df..c55f4d02691ec3b2255c47e89491fa76d8b996ea 100644 +index 8c02eee693930e68cc734bbaba9a1fdb403cf8c1..aa3084feb5aa8c6a771016b38f0adcfa39bed9b2 100644 --- a/content/common/features.cc +++ b/content/common/features.cc -@@ -308,6 +308,14 @@ BASE_FEATURE(kIOSurfaceCapturer, +@@ -315,6 +315,14 @@ BASE_FEATURE(kIOSurfaceCapturer, base::FEATURE_ENABLED_BY_DEFAULT); #endif @@ -252,10 +252,10 @@ index 8dcb54b4c48cde0d11e682cc23dacbec9c4814df..c55f4d02691ec3b2255c47e89491fa76 // invalidated upon notifications sent by base::SystemMonitor. If disabled, the // cache is considered invalid on every enumeration request. diff --git a/content/common/features.h b/content/common/features.h -index 6ffc0e6c10c190b410c9f7269a6146447a38c800..bba9eb2e3291539a4565b306f4c2c687b7d27541 100644 +index 032df239241bb73a19f1f3e1c0683764c40e96eb..56d00c458e0702de4830d849aa0639336823112a 100644 --- a/content/common/features.h +++ b/content/common/features.h -@@ -101,6 +101,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan); +@@ -102,6 +102,9 @@ CONTENT_EXPORT BASE_DECLARE_FEATURE(kInterestGroupUpdateIfOlderThan); #if BUILDFLAG(IS_MAC) CONTENT_EXPORT BASE_DECLARE_FEATURE(kIOSurfaceCapturer); #endif diff --git a/patches/chromium/revert_webgl_add_stub_webgl_2_renderingcontextwebgpu.patch b/patches/chromium/revert_webgl_add_stub_webgl_2_renderingcontextwebgpu.patch new file mode 100644 index 0000000000..965070769e --- /dev/null +++ b/patches/chromium/revert_webgl_add_stub_webgl_2_renderingcontextwebgpu.patch @@ -0,0 +1,4219 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Colin Blundell +Date: Mon, 19 May 2025 23:49:13 -0700 +Subject: Revert "[webgl] Add stub WebGL[2]RenderingContextWebGPU" + +This reverts commit e530c1578622adea59ae2ac3a586ae090681422b. + +Reason for revert: Multiple eng reporting that this is causing build failures due to too-long pathnames, with no immediate feasible workaround + +Bug: 414506479 +Original change's description: +> [webgl] Add stub WebGL[2]RenderingContextWebGPU +> +> These implementations of the WebGL IDL are meant to be implemented with +> ANGLE running on top of the WebGPU using dawn::wire, the same way that +> WebGPU's JS bindings are implemented. If successful, this would allow +> reducing the GPU process attack surface as it wouldn't need to support +> the GLES command buffer anymore. +> +> Binary-Size: Required initial increase to add WebGLOnWebGPU. +> Fuchsia-Binary-Size: Increase is temporary, will be more than compensated by linking ANGLE statically (-400kb). +> Bug: 414506479 +> Change-Id: I63d88a06d0d91e9842b48414d335df99522bba8d +> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6494836 +> Reviewed-by: Brandon Jones +> Commit-Queue: Corentin Wallez +> Reviewed-by: Colin Blundell +> Cr-Commit-Position: refs/heads/main@{#1462154} + +Bug: 414506479 +No-Presubmit: true +No-Tree-Checks: true +No-Try: true +Change-Id: I0d4f94e9ceabd770250390d6f4ffe844a4ad00cb +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6565622 +Auto-Submit: Colin Blundell +Commit-Queue: Rubber Stamper +Bot-Commit: Rubber Stamper +Cr-Commit-Position: refs/heads/main@{#1462590} + +diff --git a/third_party/blink/renderer/bindings/generated_in_modules.gni b/third_party/blink/renderer/bindings/generated_in_modules.gni +index b42efe786712f81b5b86ff90f62a7ee486c16c9a..c8177157631aeb7a0d8c65c57ac6da5b74da8b1f 100644 +--- a/third_party/blink/renderer/bindings/generated_in_modules.gni ++++ b/third_party/blink/renderer/bindings/generated_in_modules.gni +@@ -2986,8 +2986,6 @@ generated_interface_sources_in_modules = [ + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_web_transport_error.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl2_rendering_context.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl2_rendering_context.h", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl2_rendering_context_webgpu.cc", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl2_rendering_context_webgpu.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_active_info.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_active_info.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_blend_func_extended.cc", +@@ -3046,8 +3044,6 @@ generated_interface_sources_in_modules = [ + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_renderbuffer.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_rendering_context.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_rendering_context.h", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_rendering_context_webgpu.cc", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_rendering_context_webgpu.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_sampler.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_sampler.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_webgl_shader.cc", +@@ -3282,8 +3278,8 @@ generated_union_sources_in_modules = [ + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_boolean_mediatrackconstraints.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasfilter_string.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasfilter_string.h", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.cc", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.h", ++ "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webglrenderingcontext.cc", ++ "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webglrenderingcontext.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_client_messageport_serviceworker.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_client_messageport_serviceworker.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_constraindomstringparameters_string_stringsequence.cc", +@@ -3310,8 +3306,8 @@ generated_union_sources_in_modules = [ + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpuautolayoutmode_gpupipelinelayout.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpubufferbinding_gpuexternaltexture_gpusampler_gputextureview.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpubufferbinding_gpuexternaltexture_gpusampler_gputextureview.h", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.cc", +- "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.h", ++ "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webglrenderingcontext.cc", ++ "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webglrenderingcontext.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpuextent3ddict_unsignedlongenforcerangesequence.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpuextent3ddict_unsignedlongenforcerangesequence.h", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_union_gpuorigin2ddict_unsignedlongenforcerangesequence.cc", +diff --git a/third_party/blink/renderer/bindings/idl_in_modules.gni b/third_party/blink/renderer/bindings/idl_in_modules.gni +index e48d158c150ab1a0bc9ed309310171e12c6de22e..e378f59cd4a6a7d3482fbb7b43e207d9f14ffb45 100644 +--- a/third_party/blink/renderer/bindings/idl_in_modules.gni ++++ b/third_party/blink/renderer/bindings/idl_in_modules.gni +@@ -997,7 +997,6 @@ static_idl_files_in_modules = [ + "//third_party/blink/renderer/modules/webgl/ovr_multiview_2.idl", + "//third_party/blink/renderer/modules/webgl/webgl2_rendering_context.idl", + "//third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.idl", +- "//third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.idl", + "//third_party/blink/renderer/modules/webgl/webgl_active_info.idl", + "//third_party/blink/renderer/modules/webgl/webgl_blend_func_extended.idl", + "//third_party/blink/renderer/modules/webgl/webgl_buffer.idl", +@@ -1030,7 +1029,6 @@ static_idl_files_in_modules = [ + "//third_party/blink/renderer/modules/webgl/webgl_renderbuffer.idl", + "//third_party/blink/renderer/modules/webgl/webgl_rendering_context.idl", + "//third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.idl", +- "//third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.idl", + "//third_party/blink/renderer/modules/webgl/webgl_sampler.idl", + "//third_party/blink/renderer/modules/webgl/webgl_shader.idl", + "//third_party/blink/renderer/modules/webgl/webgl_shader_pixel_local_storage.idl", +diff --git a/third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h b/third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h +index 23dea4bb35b90c20dc6d7de9cc5c8356cbcde2f2..392b7a1c1574045d5118be10fd50068cc419afb3 100644 +--- a/third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h ++++ b/third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h +@@ -80,9 +80,9 @@ class ImageBitmap; + class ScriptState; + class StaticBitmapImage; + using V8RenderingContext = class +- V8UnionCanvasRenderingContext2DOrGPUCanvasContextOrImageBitmapRenderingContextOrWebGL2RenderingContextOrWebGL2RenderingContextWebGPUOrWebGLRenderingContextOrWebGLRenderingContextWebGPU; ++ V8UnionCanvasRenderingContext2DOrGPUCanvasContextOrImageBitmapRenderingContextOrWebGL2RenderingContextOrWebGLRenderingContext; + using V8OffscreenRenderingContext = class +- V8UnionGPUCanvasContextOrImageBitmapRenderingContextOrOffscreenCanvasRenderingContext2DOrWebGL2RenderingContextOrWebGL2RenderingContextWebGPUOrWebGLRenderingContextOrWebGLRenderingContextWebGPU; ++ V8UnionGPUCanvasContextOrImageBitmapRenderingContextOrOffscreenCanvasRenderingContext2DOrWebGL2RenderingContextOrWebGLRenderingContext; + class WebGraphicsContext3DVideoFramePool; + + class CORE_EXPORT CanvasRenderingContext +diff --git a/third_party/blink/renderer/modules/canvas/htmlcanvas/html_canvas_element_module.idl b/third_party/blink/renderer/modules/canvas/htmlcanvas/html_canvas_element_module.idl +index 261e9ad46901da85ea2d72c8f6b8e12b23641b94..70d0c26f00fc947af54d8ac8388a68c15d3b43dd 100644 +--- a/third_party/blink/renderer/modules/canvas/htmlcanvas/html_canvas_element_module.idl ++++ b/third_party/blink/renderer/modules/canvas/htmlcanvas/html_canvas_element_module.idl +@@ -7,8 +7,6 @@ + typedef (CanvasRenderingContext2D or + WebGLRenderingContext or + WebGL2RenderingContext or +- WebGLRenderingContextWebGPU or +- WebGL2RenderingContextWebGPU or + ImageBitmapRenderingContext or + GPUCanvasContext) RenderingContext; + +diff --git a/third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h b/third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h +index aa7114367cfefe7871fcf6eb69bc1ac96739bf37..cfa8ac671aa20c8631c2524bd970da21bdf57c06 100644 +--- a/third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h ++++ b/third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h +@@ -8,6 +8,6 @@ + // This is just a forwarding header to avoid including an enormous filename in + // each file that needs the declaration of the union that is used for + // RenderingContext. +-#include "third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.h" ++#include "third_party/blink/renderer/bindings/modules/v8/v8_union_canvasrenderingcontext2d_gpucanvascontext_imagebitmaprenderingcontext_webgl2renderingcontext_webglrenderingcontext.h" + + #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_CANVAS_HTMLCANVAS_V8_RENDERING_CONTEXT_H_ +diff --git a/third_party/blink/renderer/modules/canvas/offscreencanvas/offscreen_canvas_module.idl b/third_party/blink/renderer/modules/canvas/offscreencanvas/offscreen_canvas_module.idl +index a15d8d671f7504c9e771e607485413728479423b..f88b06ce555b0a49ac40a93ce52cb49a5bf8c6e6 100644 +--- a/third_party/blink/renderer/modules/canvas/offscreencanvas/offscreen_canvas_module.idl ++++ b/third_party/blink/renderer/modules/canvas/offscreencanvas/offscreen_canvas_module.idl +@@ -7,8 +7,6 @@ + typedef (OffscreenCanvasRenderingContext2D or + WebGLRenderingContext or + WebGL2RenderingContext or +- WebGLRenderingContextWebGPU or +- WebGL2RenderingContextWebGPU or + ImageBitmapRenderingContext or + GPUCanvasContext) OffscreenRenderingContext; + enum OffscreenRenderingContextType { "2d", "webgl", "webgl2", "bitmaprenderer", "webgpu" }; +diff --git a/third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h b/third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h +index 3742d1e586615165f3bfdddbbd054e13a45e244d..b44bacfe4240240b0f65bdafd1ae8bc37182bdc7 100644 +--- a/third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h ++++ b/third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h +@@ -8,6 +8,6 @@ + // This is just a forwarding header to avoid including an enormous filename in + // each file that needs the declaration of the union that is used for + // OffscreenRenderingContext. +-#include "third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webgl2renderingcontextwebgpu_webglrenderingcontext_webglrenderingcontextwebgpu.h" ++#include "third_party/blink/renderer/bindings/modules/v8/v8_union_gpucanvascontext_imagebitmaprenderingcontext_offscreencanvasrenderingcontext2d_webgl2renderingcontext_webglrenderingcontext.h" + + #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_CANVAS_OFFSCREENCANVAS_V8_OFFSCREEN_RENDERING_CONTEXT_H_ +diff --git a/third_party/blink/renderer/modules/webgl/BUILD.gn b/third_party/blink/renderer/modules/webgl/BUILD.gn +index 5c1ff9afbfea45aba7b1fa68234fc1c35914aa95..08d7b3f52c5c2cd6d1199396b2ce1775f2289798 100644 +--- a/third_party/blink/renderer/modules/webgl/BUILD.gn ++++ b/third_party/blink/renderer/modules/webgl/BUILD.gn +@@ -79,8 +79,6 @@ blink_modules_sources("webgl") { + "webgl2_rendering_context.h", + "webgl2_rendering_context_base.cc", + "webgl2_rendering_context_base.h", +- "webgl2_rendering_context_webgpu.cc", +- "webgl2_rendering_context_webgpu.h", + "webgl_active_info.h", + "webgl_blend_func_extended.cc", + "webgl_blend_func_extended.h", +@@ -153,10 +151,6 @@ blink_modules_sources("webgl") { + "webgl_rendering_context.h", + "webgl_rendering_context_base.cc", + "webgl_rendering_context_base.h", +- "webgl_rendering_context_webgpu.cc", +- "webgl_rendering_context_webgpu.h", +- "webgl_rendering_context_webgpu_base.cc", +- "webgl_rendering_context_webgpu_base.h", + "webgl_sampler.cc", + "webgl_sampler.h", + "webgl_shader.cc", +diff --git a/third_party/blink/renderer/modules/webgl/DEPS b/third_party/blink/renderer/modules/webgl/DEPS +index b0efa5dd316811a166016c144c048e15130586a3..ec20717bde034b51a30a949efee2e24db9bac499 100644 +--- a/third_party/blink/renderer/modules/webgl/DEPS ++++ b/third_party/blink/renderer/modules/webgl/DEPS +@@ -1,5 +1,4 @@ + include_rules = [ +- "+base/notimplemented.h", + "+device/vr/buildflags/buildflags.h", + "+device/vr/public/mojom/vr_service.mojom-blink.h", + "+device/vr/public/mojom/vr_service.mojom-blink-forward.h", +diff --git a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.cc b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.cc +deleted file mode 100644 +index 290b5d688cbe44bb17ea73e388393f618c9e42c4..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.cc ++++ /dev/null +@@ -1,29 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#include "third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.h" +- +-#include "base/notimplemented.h" +-#include "third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h" +-#include "third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h" +- +-namespace blink { +- +-WebGL2RenderingContextWebGPU::WebGL2RenderingContextWebGPU( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes) +- : WebGLRenderingContextWebGPUBase(host, +- requested_attributes, +- CanvasRenderingAPI::kWebgl2) {} +- +-V8RenderingContext* WebGL2RenderingContextWebGPU::AsV8RenderingContext() { +- return MakeGarbageCollected(this); +-} +- +-V8OffscreenRenderingContext* +-WebGL2RenderingContextWebGPU::AsV8OffscreenRenderingContext() { +- return MakeGarbageCollected(this); +-} +- +-} // namespace blink +diff --git a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.h b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.h +deleted file mode 100644 +index db83b4ac9d3138dc82a2522adc22ded58f7d1627..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.h ++++ /dev/null +@@ -1,28 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL2_RENDERING_CONTEXT_WEBGPU_H_ +-#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL2_RENDERING_CONTEXT_WEBGPU_H_ +- +-#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h" +- +-namespace blink { +- +-class WebGL2RenderingContextWebGPU final +- : public WebGLRenderingContextWebGPUBase { +- DEFINE_WRAPPERTYPEINFO(); +- +- public: +- WebGL2RenderingContextWebGPU( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes); +- +- // CanvasRenderingContext implementation +- V8RenderingContext* AsV8RenderingContext() final; +- V8OffscreenRenderingContext* AsV8OffscreenRenderingContext() final; +-}; +- +-} // namespace blink +- +-#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL2_RENDERING_CONTEXT_WEBGPU_H_ +diff --git a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.idl b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.idl +deleted file mode 100644 +index ac76ded5b53871030a6b7496fa3b24d79f27b56d..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.idl ++++ /dev/null +@@ -1,13 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7 +- +-[ +- ActiveScriptWrappable, +- Exposed=(Window,Worker), +- RuntimeEnabled=WebGLOnWebGPU +-] interface WebGL2RenderingContextWebGPU { }; +-WebGL2RenderingContextWebGPU includes WebGLRenderingContextBase; +-WebGL2RenderingContextWebGPU includes WebGL2RenderingContextBase; +diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_factory.cc b/third_party/blink/renderer/modules/webgl/webgl_context_factory.cc +index 8a983f1720d94391f641be229c8fcac0fb07d148..048feec570e2bcdac3c57ac14094ba28635b112f 100644 +--- a/third_party/blink/renderer/modules/webgl/webgl_context_factory.cc ++++ b/third_party/blink/renderer/modules/webgl/webgl_context_factory.cc +@@ -4,15 +4,11 @@ + + #include "third_party/blink/renderer/modules/webgl/webgl_context_factory.h" + +-#include "base/notimplemented.h" + #include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h" + #include "third_party/blink/renderer/core/html/canvas/html_canvas_element.h" + #include "third_party/blink/renderer/modules/webgl/webgl2_rendering_context.h" +-#include "third_party/blink/renderer/modules/webgl/webgl2_rendering_context_webgpu.h" + #include "third_party/blink/renderer/modules/webgl/webgl_context_event.h" + #include "third_party/blink/renderer/modules/webgl/webgl_rendering_context.h" +-#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.h" +-#include "third_party/blink/renderer/platform/runtime_enabled_features.h" + + namespace blink { + +@@ -32,11 +28,7 @@ WebGLContextFactory::WebGLContextFactory(bool is_webgl2) + CanvasRenderingContext* WebGLContextFactory::Create( + CanvasRenderingContextHost* host, + const CanvasContextCreationAttributesCore& attrs) { +- if (RuntimeEnabledFeatures::WebGLOnWebGPUEnabled()) { +- return CreateInternalWebGPU(host, attrs); +- } else { +- return CreateInternal(host, attrs); +- } ++ return CreateInternal(host, attrs); + } + + CanvasRenderingContext* WebGLContextFactory::CreateInternal( +@@ -106,16 +98,6 @@ CanvasRenderingContext* WebGLContextFactory::CreateInternal( + } + } + +-CanvasRenderingContext* WebGLContextFactory::CreateInternalWebGPU( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& attrs) { +- if (is_webgl2_) { +- return MakeGarbageCollected(host, attrs); +- } else { +- return MakeGarbageCollected(host, attrs); +- } +-} +- + CanvasRenderingContext::CanvasRenderingAPI + WebGLContextFactory::GetRenderingAPI() const { + if (is_webgl2_) { +diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_factory.h b/third_party/blink/renderer/modules/webgl/webgl_context_factory.h +index e58bbe3f6eec6e64a89d08e7e83d63d9b0841a04..df24c7085def9fc934a835635c10ebf7382ba528 100644 +--- a/third_party/blink/renderer/modules/webgl/webgl_context_factory.h ++++ b/third_party/blink/renderer/modules/webgl/webgl_context_factory.h +@@ -39,9 +39,6 @@ class WebGLContextFactory : public CanvasRenderingContextFactory { + CanvasRenderingContext* CreateInternal( + CanvasRenderingContextHost*, + const CanvasContextCreationAttributesCore&); +- CanvasRenderingContext* CreateInternalWebGPU( +- CanvasRenderingContextHost*, +- const CanvasContextCreationAttributesCore&); + + const char* GetContextName() const; + Platform::ContextType GetContextType() const; +diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.cc b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.cc +deleted file mode 100644 +index ead39056f29ff7080c66d983489b090ad4b1ce8d..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.cc ++++ /dev/null +@@ -1,29 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.h" +- +-#include "base/notimplemented.h" +-#include "third_party/blink/renderer/modules/canvas/htmlcanvas/v8_rendering_context.h" +-#include "third_party/blink/renderer/modules/canvas/offscreencanvas/v8_offscreen_rendering_context.h" +- +-namespace blink { +- +-WebGLRenderingContextWebGPU::WebGLRenderingContextWebGPU( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes) +- : WebGLRenderingContextWebGPUBase(host, +- requested_attributes, +- CanvasRenderingAPI::kWebgl) {} +- +-V8RenderingContext* WebGLRenderingContextWebGPU::AsV8RenderingContext() { +- return MakeGarbageCollected(this); +-} +- +-V8OffscreenRenderingContext* +-WebGLRenderingContextWebGPU::AsV8OffscreenRenderingContext() { +- return MakeGarbageCollected(this); +-} +- +-} // namespace blink +diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.h b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.h +deleted file mode 100644 +index d0f3d1c34212165549eacf89b8d62ad611c0e168..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.h ++++ /dev/null +@@ -1,28 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_H_ +-#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_H_ +- +-#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h" +- +-namespace blink { +- +-class WebGLRenderingContextWebGPU final +- : public WebGLRenderingContextWebGPUBase { +- DEFINE_WRAPPERTYPEINFO(); +- +- public: +- WebGLRenderingContextWebGPU( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes); +- +- // CanvasRenderingContext implementation +- V8RenderingContext* AsV8RenderingContext() final; +- V8OffscreenRenderingContext* AsV8OffscreenRenderingContext() final; +-}; +- +-} // namespace blink +- +-#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_H_ +diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.idl b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.idl +deleted file mode 100644 +index 2f4c23c68dc658cd8f91a72948b78f1f39c92578..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu.idl ++++ /dev/null +@@ -1,16 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-// https://www.khronos.org/registry/webgl/specs/latest/1.0/#WebGLRenderingContext +- +-[ +- ActiveScriptWrappable, +- Exposed=(Window,Worker), +- RuntimeEnabled=WebGLOnWebGPU +-] interface WebGLRenderingContextWebGPU { +- +- [RuntimeEnabled=WebGLDrawingBufferStorage] const GLenum RGB8 = 0x8051; +- [RuntimeEnabled=WebGLDrawingBufferStorage] const GLenum RGBA8 = 0x8058; +-}; +-WebGLRenderingContextWebGPU includes WebGLRenderingContextBase; +diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.cc b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.cc +deleted file mode 100644 +index 18d26cfe4faea0937d6f6c0c35424b29acc43786..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.cc ++++ /dev/null +@@ -1,2475 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h" +- +-#include "base/notimplemented.h" +- +-namespace blink { +- +-WebGLRenderingContextWebGPUBase::WebGLRenderingContextWebGPUBase( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes, +- CanvasRenderingAPI api) +- : WebGLContextObjectSupport( +- host->GetTopExecutionContext()->GetTaskRunner(TaskType::kWebGL), +- /* is_webgl2 */ api == CanvasRenderingAPI::kWebgl2), +- CanvasRenderingContext(host, requested_attributes, api) {} +- +-WebGLRenderingContextWebGPUBase::~WebGLRenderingContextWebGPUBase() {} +- +-// **************************************************************************** +-// Start of WebGLRenderingContextBase's IDL methods +-// **************************************************************************** +- +-V8UnionHTMLCanvasElementOrOffscreenCanvas* +-WebGLRenderingContextWebGPUBase::getHTMLOrOffscreenCanvas() const { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-int WebGLRenderingContextWebGPUBase::drawingBufferWidth() const { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-int WebGLRenderingContextWebGPUBase::drawingBufferHeight() const { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-GLenum WebGLRenderingContextWebGPUBase::drawingBufferFormat() const { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-V8PredefinedColorSpace +-WebGLRenderingContextWebGPUBase::drawingBufferColorSpace() const { +- NOTIMPLEMENTED(); +- return V8PredefinedColorSpace(V8PredefinedColorSpace::Enum::kSRGB); +-} +- +-void WebGLRenderingContextWebGPUBase::setDrawingBufferColorSpace( +- const V8PredefinedColorSpace& color_space, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-V8PredefinedColorSpace WebGLRenderingContextWebGPUBase::unpackColorSpace() +- const { +- NOTIMPLEMENTED(); +- return V8PredefinedColorSpace(V8PredefinedColorSpace::Enum::kSRGB); +-} +- +-void WebGLRenderingContextWebGPUBase::setUnpackColorSpace( +- const V8PredefinedColorSpace& color_space, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::activeTexture(GLenum texture) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::attachShader(WebGLProgram*, +- WebGLShader*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindAttribLocation(WebGLProgram*, +- GLuint index, +- const String& name) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindBuffer(GLenum target, +- WebGLBuffer* buffer) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindFramebuffer(GLenum target, +- WebGLFramebuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindRenderbuffer(GLenum target, +- WebGLRenderbuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindTexture(GLenum target, +- WebGLTexture*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blendColor(GLfloat red, +- GLfloat green, +- GLfloat blue, +- GLfloat alpha) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blendEquation(GLenum mode) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blendEquationSeparate(GLenum mode_rgb, +- GLenum mode_alpha) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blendFunc(GLenum sfactor, +- GLenum dfactor) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blendFuncSeparate(GLenum src_rgb, +- GLenum dst_rgb, +- GLenum src_alpha, +- GLenum dst_alpha) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bufferData(GLenum target, +- int64_t size, +- GLenum usage) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bufferData(GLenum target, +- DOMArrayBufferBase* data, +- GLenum usage) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bufferData( +- GLenum target, +- MaybeShared data, +- GLenum usage) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bufferSubData( +- GLenum target, +- int64_t offset, +- base::span data) { +- NOTIMPLEMENTED(); +-} +- +-GLenum WebGLRenderingContextWebGPUBase::checkFramebufferStatus(GLenum target) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-void WebGLRenderingContextWebGPUBase::clear(GLbitfield mask) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearColor(GLfloat red, +- GLfloat green, +- GLfloat blue, +- GLfloat alpha) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearDepth(GLfloat) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearStencil(GLint) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::colorMask(GLboolean red, +- GLboolean green, +- GLboolean blue, +- GLboolean alpha) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compileShader(WebGLShader*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexImage2D( +- GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- MaybeShared data) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- MaybeShared data) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::copyTexImage2D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLint border) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::copyTexSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-WebGLBuffer* WebGLRenderingContextWebGPUBase::createBuffer() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLFramebuffer* WebGLRenderingContextWebGPUBase::createFramebuffer() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLProgram* WebGLRenderingContextWebGPUBase::createProgram() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLRenderbuffer* WebGLRenderingContextWebGPUBase::createRenderbuffer() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLShader* WebGLRenderingContextWebGPUBase::createShader(GLenum type) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLTexture* WebGLRenderingContextWebGPUBase::createTexture() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::cullFace(GLenum mode) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteBuffer(WebGLBuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteFramebuffer(WebGLFramebuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteProgram(WebGLProgram*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteRenderbuffer(WebGLRenderbuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteShader(WebGLShader*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::deleteTexture(WebGLTexture*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::depthFunc(GLenum) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::depthMask(GLboolean) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::depthRange(GLfloat z_near, +- GLfloat z_far) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::detachShader(WebGLProgram*, +- WebGLShader*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::disable(GLenum cap) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::disableVertexAttribArray(GLuint index) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawArrays(GLenum mode, +- GLint first, +- GLsizei count) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawElements(GLenum mode, +- GLsizei count, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::enable(GLenum cap) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::enableVertexAttribArray(GLuint index) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::finish() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::flush() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::framebufferRenderbuffer( +- GLenum target, +- GLenum attachment, +- GLenum renderbuffertarget, +- WebGLRenderbuffer*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::framebufferTexture2D(GLenum target, +- GLenum attachment, +- GLenum textarget, +- WebGLTexture*, +- GLint level) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::frontFace(GLenum mode) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::generateMipmap(GLenum target) { +- NOTIMPLEMENTED(); +-} +- +-WebGLActiveInfo* WebGLRenderingContextWebGPUBase::getActiveAttrib( +- WebGLProgram*, +- GLuint index) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-WebGLActiveInfo* WebGLRenderingContextWebGPUBase::getActiveUniform( +- WebGLProgram*, +- GLuint index) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-std::optional>> +-WebGLRenderingContextWebGPUBase::getAttachedShaders(WebGLProgram*) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-GLint WebGLRenderingContextWebGPUBase::getAttribLocation(WebGLProgram*, +- const String& name) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getBufferParameter(ScriptState*, +- GLenum target, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLContextAttributes* WebGLRenderingContextWebGPUBase::getContextAttributes() +- const { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-GLenum WebGLRenderingContextWebGPUBase::getError() { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-ScriptObject WebGLRenderingContextWebGPUBase::getExtension(ScriptState*, +- const String& name) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getFramebufferAttachmentParameter( +- ScriptState*, +- GLenum target, +- GLenum attachment, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getParameter(ScriptState*, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getProgramParameter(ScriptState*, +- WebGLProgram*, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-String WebGLRenderingContextWebGPUBase::getProgramInfoLog(WebGLProgram*) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getRenderbufferParameter( +- ScriptState*, +- GLenum target, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getShaderParameter(ScriptState*, +- WebGLShader*, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-String WebGLRenderingContextWebGPUBase::getShaderInfoLog(WebGLShader*) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLShaderPrecisionFormat* +-WebGLRenderingContextWebGPUBase::getShaderPrecisionFormat( +- GLenum shader_type, +- GLenum precision_type) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-String WebGLRenderingContextWebGPUBase::getShaderSource(WebGLShader*) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-std::optional> +-WebGLRenderingContextWebGPUBase::getSupportedExtensions() { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getTexParameter(ScriptState*, +- GLenum target, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getUniform( +- ScriptState*, +- WebGLProgram*, +- const WebGLUniformLocation*) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLUniformLocation* WebGLRenderingContextWebGPUBase::getUniformLocation( +- WebGLProgram*, +- const String&) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getVertexAttrib(ScriptState*, +- GLuint index, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-int64_t WebGLRenderingContextWebGPUBase::getVertexAttribOffset(GLuint index, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-void WebGLRenderingContextWebGPUBase::hint(GLenum target, GLenum mode) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::isBuffer(WebGLBuffer*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isEnabled(GLenum cap) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isFramebuffer(WebGLFramebuffer*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isProgram(WebGLProgram*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isRenderbuffer(WebGLRenderbuffer*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isShader(WebGLShader*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::isTexture(WebGLTexture*) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::lineWidth(GLfloat) { +- NOTIMPLEMENTED(); +-} +-void WebGLRenderingContextWebGPUBase::linkProgram(WebGLProgram*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::pixelStorei(GLenum pname, GLint param) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::polygonOffset(GLfloat factor, +- GLfloat units) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::readPixels( +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::renderbufferStorage(GLenum target, +- GLenum internalformat, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::sampleCoverage(GLfloat value, +- GLboolean invert) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::scissor(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::shaderSource(WebGLShader*, +- const String&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilFunc(GLenum func, +- GLint ref, +- GLuint mask) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilFuncSeparate(GLenum face, +- GLenum func, +- GLint ref, +- GLuint mask) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilMask(GLuint) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilMaskSeparate(GLenum face, +- GLuint mask) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilOp(GLenum fail, +- GLenum zfail, +- GLenum zpass) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::stencilOpSeparate(GLenum face, +- GLenum fail, +- GLenum zfail, +- GLenum zpass) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texParameterf(GLenum target, +- GLenum pname, +- GLfloat param) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texParameteri(GLenum target, +- GLenum pname, +- GLint param) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- ImageData*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- HTMLImageElement*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- HTMLVideoElement*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- VideoFrame*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- ImageBitmap*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- ImageData*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- HTMLImageElement*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +-void WebGLRenderingContextWebGPUBase::texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- HTMLVideoElement*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- VideoFrame*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- ImageBitmap*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1f(const WebGLUniformLocation*, +- GLfloat x) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1fv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1i(const WebGLUniformLocation*, +- GLint x) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1iv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2f(const WebGLUniformLocation*, +- GLfloat x, +- GLfloat y) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2fv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2i(const WebGLUniformLocation*, +- GLint x, +- GLint y) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2iv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3f(const WebGLUniformLocation*, +- GLfloat x, +- GLfloat y, +- GLfloat z) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3fv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3i(const WebGLUniformLocation*, +- GLint x, +- GLint y, +- GLint z) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3iv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4f(const WebGLUniformLocation*, +- GLfloat x, +- GLfloat y, +- GLfloat z, +- GLfloat w) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4fv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4i(const WebGLUniformLocation*, +- GLint x, +- GLint y, +- GLint z, +- GLint w) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4iv(const WebGLUniformLocation*, +- base::span) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix2fv( +- const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix3fv( +- const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix4fv( +- const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::useProgram(WebGLProgram*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::validateProgram(WebGLProgram*) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib1f(GLuint index, GLfloat x) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib1fv( +- GLuint index, +- base::span values) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib2f(GLuint index, +- GLfloat x, +- GLfloat y) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib2fv( +- GLuint index, +- base::span values) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib3f(GLuint index, +- GLfloat x, +- GLfloat y, +- GLfloat z) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib3fv( +- GLuint index, +- base::span values) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib4f(GLuint index, +- GLfloat x, +- GLfloat y, +- GLfloat z, +- GLfloat w) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttrib4fv( +- GLuint index, +- base::span values) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribPointer(GLuint index, +- GLint size, +- GLenum type, +- GLboolean normalized, +- GLsizei stride, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::viewport(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawingBufferStorage(GLenum sizedformat, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::commit() { +- NOTIMPLEMENTED(); +-} +- +-ScriptPromise WebGLRenderingContextWebGPUBase::makeXRCompatible( +- ScriptState*, +- ExceptionState&) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-// **************************************************************************** +-// End of WebGLRenderingContextBase's IDL methods +-// **************************************************************************** +- +-// ************************************************************************** +-// Start of WebGL2RenderingContextBase's IDL methods +-// ************************************************************************** +- +-void WebGLRenderingContextWebGPUBase::bufferData( +- GLenum target, +- MaybeShared srcData, +- GLenum usage, +- int64_t srcOffset, +- GLuint length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bufferSubData( +- GLenum target, +- int64_t offset, +- MaybeShared srcData, +- int64_t srcOffset, +- GLuint length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::copyBufferSubData(GLenum readTarget, +- GLenum writeTarget, +- int64_t readOffset, +- int64_t writeOffset, +- int64_t size) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::getBufferSubData( +- GLenum target, +- int64_t srcByteOffset, +- MaybeShared dstData, +- int64_t dstOffset, +- GLuint length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::blitFramebuffer(GLint src_x0, +- GLint src_y0, +- GLint src_x1, +- GLint src_y1, +- GLint dst_x0, +- GLint dst_y0, +- GLint dst_x1, +- GLint dst_y1, +- GLbitfield mask, +- GLenum filter) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::framebufferTextureLayer( +- GLenum target, +- GLenum attachment, +- WebGLTexture* texture, +- GLint level, +- GLint layer) { +- NOTIMPLEMENTED(); +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getInternalformatParameter( +- ScriptState* script_state, +- GLenum target, +- GLenum internalformat, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-void WebGLRenderingContextWebGPUBase::invalidateFramebuffer( +- GLenum target, +- const Vector& attachments) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::invalidateSubFramebuffer( +- GLenum target, +- const Vector& attachments, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::readBuffer(GLenum mode) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::renderbufferStorageMultisample( +- GLenum target, +- GLsizei samples, +- GLenum internalformat, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- ImageData* pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage2D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared data, +- int64_t src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texElement2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- Element* element, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- ImageData* pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- int64_t src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texStorage2D(GLenum target, +- GLsizei levels, +- GLenum internalformat, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texStorage3D(GLenum target, +- GLsizei levels, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- ImageData* pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texImage3D( +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- GLuint src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- ImageData* pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* context_host, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- MaybeShared pixels) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::texSubImage3D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- GLuint src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::copyTexSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexImage2D( +- GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexImage3D( +- GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexSubImage3D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexImage2D( +- GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLsizei image_size, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexSubImage2D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLsizei image_size, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexImage3D( +- GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLsizei image_size, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::compressedTexSubImage3D( +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLsizei image_size, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-GLint WebGLRenderingContextWebGPUBase::getFragDataLocation( +- WebGLProgram* program, +- const String& name) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1ui( +- const WebGLUniformLocation* location, +- GLuint v0) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2ui( +- const WebGLUniformLocation* location, +- GLuint v0, +- GLuint v1) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3ui( +- const WebGLUniformLocation* location, +- GLuint v0, +- GLuint v1, +- GLuint v2) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4ui( +- const WebGLUniformLocation* location, +- GLuint v0, +- GLuint v1, +- GLuint v2, +- GLuint v3) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1fv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2fv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3fv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4fv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1iv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2iv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3iv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4iv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform1uiv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform2uiv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform3uiv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniform4uiv( +- const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix2fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix3fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix4fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix2x3fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix3x2fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix2x4fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix4x2fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix3x4fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::uniformMatrix4x3fv( +- const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribI4i(GLuint index, +- GLint x, +- GLint y, +- GLint z, +- GLint w) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribI4iv( +- GLuint index, +- base::span v) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribI4ui(GLuint index, +- GLuint x, +- GLuint y, +- GLuint z, +- GLuint w) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribI4uiv( +- GLuint index, +- base::span v) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribIPointer(GLuint index, +- GLint size, +- GLenum type, +- GLsizei stride, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::vertexAttribDivisor(GLuint index, +- GLuint divisor) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawArraysInstanced( +- GLenum mode, +- GLint first, +- GLsizei count, +- GLsizei instance_count) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawElementsInstanced( +- GLenum mode, +- GLsizei count, +- GLenum type, +- int64_t offset, +- GLsizei instance_count) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawRangeElements(GLenum mode, +- GLuint start, +- GLuint end, +- GLsizei count, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::drawBuffers( +- const Vector& buffers) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearBufferiv( +- GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearBufferuiv( +- GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearBufferfv( +- GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::clearBufferfi(GLenum buffer, +- GLint drawbuffer, +- GLfloat depth, +- GLint stencil) { +- NOTIMPLEMENTED(); +-} +- +-WebGLQuery* WebGLRenderingContextWebGPUBase::createQuery() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::deleteQuery(WebGLQuery* query) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::isQuery(WebGLQuery* query) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::beginQuery(GLenum target, +- WebGLQuery* query) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::endQuery(GLenum target) { +- NOTIMPLEMENTED(); +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getQuery(ScriptState* script_state, +- GLenum target, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getQueryParameter( +- ScriptState* script_state, +- WebGLQuery* query, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLSampler* WebGLRenderingContextWebGPUBase::createSampler() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::deleteSampler(WebGLSampler* sampler) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::isSampler(WebGLSampler* sampler) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::bindSampler(GLuint unit, +- WebGLSampler* sampler) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::samplerParameteri(WebGLSampler* sampler, +- GLenum pname, +- GLint param) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::samplerParameterf(WebGLSampler* sampler, +- GLenum pname, +- GLfloat param) { +- NOTIMPLEMENTED(); +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getSamplerParameter( +- ScriptState* script_state, +- WebGLSampler* sampler, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLSync* WebGLRenderingContextWebGPUBase::fenceSync(GLenum condition, +- GLbitfield flags) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-bool WebGLRenderingContextWebGPUBase::isSync(WebGLSync* sync) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::deleteSync(WebGLSync* sync) { +- NOTIMPLEMENTED(); +-} +- +-GLenum WebGLRenderingContextWebGPUBase::clientWaitSync(WebGLSync* sync, +- GLbitfield flags, +- GLuint64 timeout) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-void WebGLRenderingContextWebGPUBase::waitSync(WebGLSync* sync, +- GLbitfield flags, +- GLint64 timeout) { +- NOTIMPLEMENTED(); +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getSyncParameter( +- ScriptState* script_state, +- WebGLSync* sync, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-WebGLTransformFeedback* +-WebGLRenderingContextWebGPUBase::createTransformFeedback() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::deleteTransformFeedback( +- WebGLTransformFeedback* feedback) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::isTransformFeedback( +- WebGLTransformFeedback* feedback) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::bindTransformFeedback( +- GLenum target, +- WebGLTransformFeedback* feedback) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::beginTransformFeedback( +- GLenum primitive_mode) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::endTransformFeedback() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::transformFeedbackVaryings( +- WebGLProgram* program, +- const Vector& varyings, +- GLenum buffer_mode) { +- NOTIMPLEMENTED(); +-} +- +-WebGLActiveInfo* WebGLRenderingContextWebGPUBase::getTransformFeedbackVarying( +- WebGLProgram* program, +- GLuint index) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::pauseTransformFeedback() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::resumeTransformFeedback() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindBufferBase(GLenum target, +- GLuint index, +- WebGLBuffer* buffer) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::bindBufferRange(GLenum target, +- GLuint index, +- WebGLBuffer* buffer, +- int64_t offset, +- int64_t size) { +- NOTIMPLEMENTED(); +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getIndexedParameter( +- ScriptState* script_state, +- GLenum target, +- GLuint index) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-std::optional> +-WebGLRenderingContextWebGPUBase::getUniformIndices( +- WebGLProgram* program, +- const Vector& uniform_names) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getActiveUniforms( +- ScriptState* script_state, +- WebGLProgram* program, +- const Vector& uniform_indices, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-GLuint WebGLRenderingContextWebGPUBase::getUniformBlockIndex( +- WebGLProgram* program, +- const String& uniform_block_name) { +- NOTIMPLEMENTED(); +- return 0; +-} +- +-ScriptValue WebGLRenderingContextWebGPUBase::getActiveUniformBlockParameter( +- ScriptState* script_state, +- WebGLProgram* program, +- GLuint uniform_block_index, +- GLenum pname) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-String WebGLRenderingContextWebGPUBase::getActiveUniformBlockName( +- WebGLProgram* program, +- GLuint uniform_block_index) { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-void WebGLRenderingContextWebGPUBase::uniformBlockBinding( +- WebGLProgram* program, +- GLuint uniform_block_index, +- GLuint uniform_block_binding) { +- NOTIMPLEMENTED(); +-} +- +-WebGLVertexArrayObject* WebGLRenderingContextWebGPUBase::createVertexArray() { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::deleteVertexArray( +- WebGLVertexArrayObject* vertex_array) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::isVertexArray( +- WebGLVertexArrayObject* vertex_array) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::bindVertexArray( +- WebGLVertexArrayObject* vertex_array) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::readPixels(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::readPixels( +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- int64_t offset) { +- NOTIMPLEMENTED(); +-} +- +-// ************************************************************************** +-// End of WebGL2RenderingContextBase's IDL methods +-// ************************************************************************** +- +-// **************************************************************************** +-// Start of CanvasRenderingContext implementation +-// **************************************************************************** +-SkAlphaType WebGLRenderingContextWebGPUBase::GetAlphaType() const { +- NOTIMPLEMENTED(); +- return SkAlphaType::kUnknown_SkAlphaType; +-} +- +-viz::SharedImageFormat WebGLRenderingContextWebGPUBase::GetSharedImageFormat() +- const { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-gfx::ColorSpace WebGLRenderingContextWebGPUBase::GetColorSpace() const { +- NOTIMPLEMENTED(); +- return {}; +-} +- +-bool WebGLRenderingContextWebGPUBase::isContextLost() const { +- NOTIMPLEMENTED(); +- return false; +-} +- +-scoped_refptr WebGLRenderingContextWebGPUBase::GetImage( +- FlushReason) { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::SetHdrMetadata( +- const gfx::HDRMetadata& hdr_metadata) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::IsComposited() const { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::IsPaintable() const { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::UsingSwapChain() const { +- NOTIMPLEMENTED(); +- return false; +-} +- +-void WebGLRenderingContextWebGPUBase::PageVisibilityChanged() { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::PaintRenderingResultsToCanvas( +- SourceDrawingBuffer) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-bool WebGLRenderingContextWebGPUBase::CopyRenderingResultsToVideoFrame( +- WebGraphicsContext3DVideoFramePool*, +- SourceDrawingBuffer, +- const gfx::ColorSpace&, +- VideoFrameCopyCompletedCallback) { +- NOTIMPLEMENTED(); +- return false; +-} +- +-cc::Layer* WebGLRenderingContextWebGPUBase::CcLayer() const { +- NOTIMPLEMENTED(); +- return nullptr; +-} +- +-void WebGLRenderingContextWebGPUBase::Stop() { +- NOTIMPLEMENTED(); +-} +- +-void WebGLRenderingContextWebGPUBase::FinalizeFrame(FlushReason) { +- NOTIMPLEMENTED(); +-} +- +-bool WebGLRenderingContextWebGPUBase::PushFrame() { +- NOTIMPLEMENTED(); +- return false; +-} +- +-// **************************************************************************** +-// End of CanvasRenderingContext implementation +-// **************************************************************************** +- +-void WebGLRenderingContextWebGPUBase::Trace(Visitor* visitor) const { +- WebGLContextObjectSupport::Trace(visitor); +- CanvasRenderingContext::Trace(visitor); +-} +-} // namespace blink +diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h +deleted file mode 100644 +index 10df703f34e8357a08f3d891e4b7291e247e3adc..0000000000000000000000000000000000000000 +--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_webgpu_base.h ++++ /dev/null +@@ -1,1285 +0,0 @@ +-// Copyright 2025 The Chromium Authors +-// Use of this source code is governed by a BSD-style license that can be +-// found in the LICENSE file. +- +-#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_BASE_H_ +-#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_BASE_H_ +- +-#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h" +-#include "third_party/blink/renderer/bindings/core/v8/script_value.h" +-#include "third_party/blink/renderer/bindings/core/v8/v8_predefined_color_space.h" +-#include "third_party/blink/renderer/bindings/modules/v8/v8_webgl_context_attributes.h" +-#include "third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h" +-#include "third_party/blink/renderer/modules/webgl/webgl_context_object_support.h" +-#include "third_party/blink/renderer/platform/bindings/script_wrappable.h" +-#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" +- +-namespace blink { +- +-class ExceptionState; +-class HTMLImageElement; +-class HTMLVideoElement; +-class ImageBitmap; +-class ImageData; +-class ScriptState; +-class V8PredefinedColorSpace; +-class V8UnionHTMLCanvasElementOrOffscreenCanvas; +-class VideoFrame; +-class WebGLActiveInfo; +-class WebGLBuffer; +-class WebGLFramebuffer; +-class WebGLProgram; +-class WebGLQuery; +-class WebGLRenderbuffer; +-class WebGLSampler; +-class WebGLShader; +-class WebGLShaderPrecisionFormat; +-class WebGLSync; +-class WebGLTexture; +-class WebGLTransformFeedback; +-class WebGLUniformLocation; +-class WebGLVertexArrayObject; +- +-class MODULES_EXPORT WebGLRenderingContextWebGPUBase +- : public WebGLContextObjectSupport, +- public CanvasRenderingContext { +- public: +- WebGLRenderingContextWebGPUBase( +- CanvasRenderingContextHost* host, +- const CanvasContextCreationAttributesCore& requested_attributes, +- CanvasRenderingAPI api); +- ~WebGLRenderingContextWebGPUBase() override; +- +- WebGLRenderingContextWebGPUBase(const WebGLRenderingContextWebGPUBase&) = +- delete; +- WebGLRenderingContextWebGPUBase& operator=( +- const WebGLRenderingContextWebGPUBase&) = delete; +- +- // ************************************************************************** +- // Start of WebGLRenderingContextBase's IDL methods +- // ************************************************************************** +- V8UnionHTMLCanvasElementOrOffscreenCanvas* getHTMLOrOffscreenCanvas() const; +- +- int drawingBufferWidth() const; +- int drawingBufferHeight() const; +- GLenum drawingBufferFormat() const; +- V8PredefinedColorSpace drawingBufferColorSpace() const; +- void setDrawingBufferColorSpace(const V8PredefinedColorSpace& color_space, +- ExceptionState&); +- V8PredefinedColorSpace unpackColorSpace() const; +- void setUnpackColorSpace(const V8PredefinedColorSpace& color_space, +- ExceptionState&); +- +- void activeTexture(GLenum texture); +- void attachShader(WebGLProgram*, WebGLShader*); +- +- void bindAttribLocation(WebGLProgram*, GLuint index, const String& name); +- void bindBuffer(GLenum target, WebGLBuffer* buffer); +- void bindFramebuffer(GLenum target, WebGLFramebuffer*); +- void bindRenderbuffer(GLenum target, WebGLRenderbuffer*); +- void bindTexture(GLenum target, WebGLTexture*); +- void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +- void blendEquation(GLenum mode); +- void blendEquationSeparate(GLenum mode_rgb, GLenum mode_alpha); +- void blendFunc(GLenum sfactor, GLenum dfactor); +- void blendFuncSeparate(GLenum src_rgb, +- GLenum dst_rgb, +- GLenum src_alpha, +- GLenum dst_alpha); +- +- void bufferData(GLenum target, int64_t size, GLenum usage); +- void bufferData(GLenum target, DOMArrayBufferBase* data, GLenum usage); +- void bufferData(GLenum target, +- MaybeShared data, +- GLenum usage); +- void bufferSubData(GLenum target, +- int64_t offset, +- base::span data); +- +- GLenum checkFramebufferStatus(GLenum target); +- void clear(GLbitfield mask); +- void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +- void clearDepth(GLfloat); +- void clearStencil(GLint); +- void colorMask(GLboolean red, +- GLboolean green, +- GLboolean blue, +- GLboolean alpha); +- void compileShader(WebGLShader*); +- +- void compressedTexImage2D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- MaybeShared data); +- void compressedTexSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- MaybeShared data); +- void copyTexImage2D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLint border); +- void copyTexSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height); +- +- WebGLBuffer* createBuffer(); +- WebGLFramebuffer* createFramebuffer(); +- WebGLProgram* createProgram(); +- WebGLRenderbuffer* createRenderbuffer(); +- WebGLShader* createShader(GLenum type); +- WebGLTexture* createTexture(); +- +- void cullFace(GLenum mode); +- +- void deleteBuffer(WebGLBuffer*); +- void deleteFramebuffer(WebGLFramebuffer*); +- void deleteProgram(WebGLProgram*); +- void deleteRenderbuffer(WebGLRenderbuffer*); +- void deleteShader(WebGLShader*); +- void deleteTexture(WebGLTexture*); +- +- void depthFunc(GLenum); +- void depthMask(GLboolean); +- void depthRange(GLfloat z_near, GLfloat z_far); +- void detachShader(WebGLProgram*, WebGLShader*); +- void disable(GLenum cap); +- void disableVertexAttribArray(GLuint index); +- void drawArrays(GLenum mode, GLint first, GLsizei count); +- void drawElements(GLenum mode, GLsizei count, GLenum type, int64_t offset); +- +- void enable(GLenum cap); +- void enableVertexAttribArray(GLuint index); +- void finish(); +- void flush(); +- void framebufferRenderbuffer(GLenum target, +- GLenum attachment, +- GLenum renderbuffertarget, +- WebGLRenderbuffer*); +- void framebufferTexture2D(GLenum target, +- GLenum attachment, +- GLenum textarget, +- WebGLTexture*, +- GLint level); +- void frontFace(GLenum mode); +- void generateMipmap(GLenum target); +- +- WebGLActiveInfo* getActiveAttrib(WebGLProgram*, GLuint index); +- WebGLActiveInfo* getActiveUniform(WebGLProgram*, GLuint index); +- std::optional>> getAttachedShaders( +- WebGLProgram*); +- GLint getAttribLocation(WebGLProgram*, const String& name); +- ScriptValue getBufferParameter(ScriptState*, GLenum target, GLenum pname); +- WebGLContextAttributes* getContextAttributes() const; +- GLenum getError(); +- ScriptObject getExtension(ScriptState*, const String& name); +- ScriptValue getFramebufferAttachmentParameter(ScriptState*, +- GLenum target, +- GLenum attachment, +- GLenum pname); +- ScriptValue getParameter(ScriptState*, GLenum pname); +- ScriptValue getProgramParameter(ScriptState*, WebGLProgram*, GLenum pname); +- String getProgramInfoLog(WebGLProgram*); +- ScriptValue getRenderbufferParameter(ScriptState*, +- GLenum target, +- GLenum pname); +- ScriptValue getShaderParameter(ScriptState*, WebGLShader*, GLenum pname); +- String getShaderInfoLog(WebGLShader*); +- WebGLShaderPrecisionFormat* getShaderPrecisionFormat(GLenum shader_type, +- GLenum precision_type); +- String getShaderSource(WebGLShader*); +- std::optional> getSupportedExtensions(); +- ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pname); +- ScriptValue getUniform(ScriptState*, +- WebGLProgram*, +- const WebGLUniformLocation*); +- WebGLUniformLocation* getUniformLocation(WebGLProgram*, const String&); +- ScriptValue getVertexAttrib(ScriptState*, GLuint index, GLenum pname); +- int64_t getVertexAttribOffset(GLuint index, GLenum pname); +- +- void hint(GLenum target, GLenum mode); +- bool isBuffer(WebGLBuffer*); +- bool isEnabled(GLenum cap); +- bool isFramebuffer(WebGLFramebuffer*); +- bool isProgram(WebGLProgram*); +- bool isRenderbuffer(WebGLRenderbuffer*); +- bool isShader(WebGLShader*); +- bool isTexture(WebGLTexture*); +- +- void lineWidth(GLfloat); +- void linkProgram(WebGLProgram*); +- void pixelStorei(GLenum pname, GLint param); +- void polygonOffset(GLfloat factor, GLfloat units); +- +- void readPixels(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels); +- +- void renderbufferStorage(GLenum target, +- GLenum internalformat, +- GLsizei width, +- GLsizei height); +- +- void sampleCoverage(GLfloat value, GLboolean invert); +- void scissor(GLint x, GLint y, GLsizei width, GLsizei height); +- void shaderSource(WebGLShader*, const String&); +- void stencilFunc(GLenum func, GLint ref, GLuint mask); +- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); +- void stencilMask(GLuint); +- void stencilMaskSeparate(GLenum face, GLuint mask); +- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); +- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass); +- +- void texParameterf(GLenum target, GLenum pname, GLfloat param); +- void texParameteri(GLenum target, GLenum pname, GLint param); +- +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared); +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- ImageData*); +- void texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- HTMLImageElement*, +- ExceptionState&); +- void texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost*, +- ExceptionState&); +- void texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- HTMLVideoElement*, +- ExceptionState&); +- void texImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- VideoFrame*, +- ExceptionState&); +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- ImageBitmap*, +- ExceptionState&); +- +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared); +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- ImageData*); +- void texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- HTMLImageElement*, +- ExceptionState&); +- void texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost*, +- ExceptionState&); +- void texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- HTMLVideoElement*, +- ExceptionState&); +- void texSubImage2D(ScriptState*, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- VideoFrame*, +- ExceptionState&); +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLenum format, +- GLenum type, +- ImageBitmap*, +- ExceptionState&); +- +- void uniform1f(const WebGLUniformLocation*, GLfloat x); +- void uniform1fv(const WebGLUniformLocation*, base::span); +- void uniform1i(const WebGLUniformLocation*, GLint x); +- void uniform1iv(const WebGLUniformLocation*, base::span); +- void uniform2f(const WebGLUniformLocation*, GLfloat x, GLfloat y); +- void uniform2fv(const WebGLUniformLocation*, base::span); +- void uniform2i(const WebGLUniformLocation*, GLint x, GLint y); +- void uniform2iv(const WebGLUniformLocation*, base::span); +- void uniform3f(const WebGLUniformLocation*, GLfloat x, GLfloat y, GLfloat z); +- void uniform3fv(const WebGLUniformLocation*, base::span); +- void uniform3i(const WebGLUniformLocation*, GLint x, GLint y, GLint z); +- void uniform3iv(const WebGLUniformLocation*, base::span); +- void uniform4f(const WebGLUniformLocation*, +- GLfloat x, +- GLfloat y, +- GLfloat z, +- GLfloat w); +- void uniform4fv(const WebGLUniformLocation*, base::span); +- void uniform4i(const WebGLUniformLocation*, +- GLint x, +- GLint y, +- GLint z, +- GLint w); +- void uniform4iv(const WebGLUniformLocation*, base::span); +- +- void uniformMatrix2fv(const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value); +- void uniformMatrix3fv(const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value); +- void uniformMatrix4fv(const WebGLUniformLocation*, +- GLboolean transpose, +- base::span value); +- +- void useProgram(WebGLProgram*); +- void validateProgram(WebGLProgram*); +- +- void vertexAttrib1f(GLuint index, GLfloat x); +- void vertexAttrib1fv(GLuint index, base::span values); +- void vertexAttrib2f(GLuint index, GLfloat x, GLfloat y); +- void vertexAttrib2fv(GLuint index, base::span values); +- void vertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); +- void vertexAttrib3fv(GLuint index, base::span values); +- void vertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +- void vertexAttrib4fv(GLuint index, base::span values); +- void vertexAttribPointer(GLuint index, +- GLint size, +- GLenum type, +- GLboolean normalized, +- GLsizei stride, +- int64_t offset); +- +- void viewport(GLint x, GLint y, GLsizei width, GLsizei height); +- +- void drawingBufferStorage(GLenum sizedformat, GLsizei width, GLsizei height); +- +- void commit(); +- +- ScriptPromise makeXRCompatible(ScriptState*, ExceptionState&); +- // ************************************************************************** +- // End of WebGLRenderingContextBase's IDL methods +- // ************************************************************************** +- +- // ************************************************************************** +- // Start of WebGL2RenderingContextBase's IDL methods +- // ************************************************************************** +- +- /* Buffer objects */ +- void bufferData(GLenum target, +- MaybeShared srcData, +- GLenum usage, +- int64_t srcOffset, +- GLuint length); +- void bufferSubData(GLenum target, +- int64_t offset, +- MaybeShared srcData, +- int64_t srcOffset, +- GLuint length); +- void copyBufferSubData(GLenum readTarget, +- GLenum writeTarget, +- int64_t readOffset, +- int64_t writeOffset, +- int64_t size); +- void getBufferSubData(GLenum target, +- int64_t srcByteOffset, +- MaybeShared dstData, +- int64_t dstOffset, +- GLuint length); +- +- /* Framebuffer objects */ +- void blitFramebuffer(GLint src_x0, +- GLint src_y0, +- GLint src_x1, +- GLint src_y1, +- GLint dst_x0, +- GLint dst_y0, +- GLint dst_x1, +- GLint dst_y1, +- GLbitfield mask, +- GLenum filter); +- void framebufferTextureLayer(GLenum target, +- GLenum attachment, +- WebGLTexture* texture, +- GLint level, +- GLint layer); +- ScriptValue getInternalformatParameter(ScriptState* script_state, +- GLenum target, +- GLenum internalformat, +- GLenum pname); +- void invalidateFramebuffer(GLenum target, const Vector& attachments); +- void invalidateSubFramebuffer(GLenum target, +- const Vector& attachments, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height); +- void readBuffer(GLenum mode); +- +- /* Renderbuffer objects */ +- void renderbufferStorageMultisample(GLenum target, +- GLsizei samples, +- GLenum internalformat, +- GLsizei width, +- GLsizei height); +- +- /* Texture objects */ +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- int64_t offset); +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- ImageData* pixels); +- void texImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state); +- // Handles both OffscreenCanvas and HTMLCanvasElement +- void texImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state); +- void texImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state); +- void texImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state); +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state); +- void texImage2D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared data, +- int64_t src_offset); +- +- void texElement2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLenum format, +- GLenum type, +- Element* element, +- ExceptionState& exception_state); +- +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- int64_t offset); +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- ImageData* pixels); +- void texSubImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state); +- // Handles both OffscreenCanvas and HTMLCanvasElement +- void texSubImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state); +- void texSubImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state); +- void texSubImage2D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state); +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state); +- void texSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- int64_t src_offset); +- +- void texStorage2D(GLenum target, +- GLsizei levels, +- GLenum internalformat, +- GLsizei width, +- GLsizei height); +- void texStorage3D(GLenum target, +- GLsizei levels, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth); +- void texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- int64_t offset); +- void texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- ImageData* pixels); +- void texImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state); +- // Handles both OffscreenCanvas and HTMLCanvasElement +- void texImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* canvas, +- ExceptionState& exception_state); +- void texImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state); +- void texImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state); +- void texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state); +- void texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared pixels); +- void texImage3D(GLenum target, +- GLint level, +- GLint internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- GLuint src_offset); +- void texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- int64_t offset); +- void texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- ImageData* pixels); +- void texSubImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- HTMLImageElement* image, +- ExceptionState& exception_state); +- // Handles both OffscreenCanvas and HTMLCanvasElement +- void texSubImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- CanvasRenderingContextHost* context_host, +- ExceptionState& exception_state); +- void texSubImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- HTMLVideoElement* video, +- ExceptionState& exception_state); +- void texSubImage3D(ScriptState* script_state, +- GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- VideoFrame* frame, +- ExceptionState& exception_state); +- void texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- ImageBitmap* bitmap, +- ExceptionState& exception_state); +- void texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- MaybeShared pixels); +- void texSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- GLuint src_offset); +- +- void copyTexSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLint x, +- GLint y, +- GLsizei width, +- GLsizei height); +- +- void compressedTexImage2D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override); +- void compressedTexSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override); +- void compressedTexImage3D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override); +- void compressedTexSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- MaybeShared data, +- GLuint src_offset, +- GLuint src_length_override); +- void compressedTexImage2D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLint border, +- GLsizei image_size, +- int64_t offset); +- void compressedTexSubImage2D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLsizei image_size, +- int64_t offset); +- void compressedTexImage3D(GLenum target, +- GLint level, +- GLenum internalformat, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLint border, +- GLsizei image_size, +- int64_t offset); +- void compressedTexSubImage3D(GLenum target, +- GLint level, +- GLint xoffset, +- GLint yoffset, +- GLint zoffset, +- GLsizei width, +- GLsizei height, +- GLsizei depth, +- GLenum format, +- GLsizei image_size, +- int64_t offset); +- +- /* Programs and shaders */ +- GLint getFragDataLocation(WebGLProgram* program, const String& name); +- +- /* Uniforms and attributes */ +- void uniform1ui(const WebGLUniformLocation* location, GLuint v0); +- void uniform2ui(const WebGLUniformLocation* location, GLuint v0, GLuint v1); +- void uniform3ui(const WebGLUniformLocation* location, +- GLuint v0, +- GLuint v1, +- GLuint v2); +- void uniform4ui(const WebGLUniformLocation* location, +- GLuint v0, +- GLuint v1, +- GLuint v2, +- GLuint v3); +- void uniform1fv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform2fv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform3fv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform4fv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform1iv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform2iv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform3iv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform4iv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform1uiv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform2uiv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform3uiv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniform4uiv(const WebGLUniformLocation* location, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix2fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix3fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix4fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix2x3fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix3x2fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix2x4fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix4x2fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix3x4fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- void uniformMatrix4x3fv(const WebGLUniformLocation* location, +- GLboolean transpose, +- base::span v, +- GLuint src_offset, +- GLuint src_length); +- +- void vertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); +- void vertexAttribI4iv(GLuint index, base::span v); +- void vertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +- void vertexAttribI4uiv(GLuint index, base::span v); +- void vertexAttribIPointer(GLuint index, +- GLint size, +- GLenum type, +- GLsizei stride, +- int64_t offset); +- +- /* Writing to the drawing buffer */ +- void vertexAttribDivisor(GLuint index, GLuint divisor); +- void drawArraysInstanced(GLenum mode, +- GLint first, +- GLsizei count, +- GLsizei instance_count); +- void drawElementsInstanced(GLenum mode, +- GLsizei count, +- GLenum type, +- int64_t offset, +- GLsizei instance_count); +- void drawRangeElements(GLenum mode, +- GLuint start, +- GLuint end, +- GLsizei count, +- GLenum type, +- int64_t offset); +- +- /* Multiple Render Targets */ +- void drawBuffers(const Vector& buffers); +- void clearBufferiv(GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset); +- void clearBufferuiv(GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset); +- void clearBufferfv(GLenum buffer, +- GLint drawbuffer, +- base::span value, +- GLuint src_offset); +- void clearBufferfi(GLenum buffer, +- GLint drawbuffer, +- GLfloat depth, +- GLint stencil); +- +- /* Query Objects */ +- WebGLQuery* createQuery(); +- void deleteQuery(WebGLQuery* query); +- bool isQuery(WebGLQuery* query); +- void beginQuery(GLenum target, WebGLQuery* query); +- void endQuery(GLenum target); +- ScriptValue getQuery(ScriptState* script_state, GLenum target, GLenum pname); +- ScriptValue getQueryParameter(ScriptState* script_state, +- WebGLQuery* query, +- GLenum pname); +- +- /* Sampler Objects */ +- WebGLSampler* createSampler(); +- void deleteSampler(WebGLSampler* sampler); +- bool isSampler(WebGLSampler* sampler); +- void bindSampler(GLuint unit, WebGLSampler* sampler); +- void samplerParameteri(WebGLSampler* sampler, GLenum pname, GLint param); +- void samplerParameterf(WebGLSampler* sampler, GLenum pname, GLfloat param); +- ScriptValue getSamplerParameter(ScriptState* script_state, +- WebGLSampler* sampler, +- GLenum pname); +- +- /* Sync objects */ +- WebGLSync* fenceSync(GLenum condition, GLbitfield flags); +- bool isSync(WebGLSync* sync); +- void deleteSync(WebGLSync* sync); +- GLenum clientWaitSync(WebGLSync* sync, GLbitfield flags, GLuint64 timeout); +- void waitSync(WebGLSync* sync, GLbitfield flags, GLint64 timeout); +- +- ScriptValue getSyncParameter(ScriptState* script_state, +- WebGLSync* sync, +- GLenum pname); +- +- /* Transform Feedback */ +- WebGLTransformFeedback* createTransformFeedback(); +- void deleteTransformFeedback(WebGLTransformFeedback* feedback); +- bool isTransformFeedback(WebGLTransformFeedback* feedback); +- void bindTransformFeedback(GLenum target, WebGLTransformFeedback* feedback); +- void beginTransformFeedback(GLenum primitive_mode); +- void endTransformFeedback(); +- void transformFeedbackVaryings(WebGLProgram* program, +- const Vector& varyings, +- GLenum buffer_mode); +- WebGLActiveInfo* getTransformFeedbackVarying(WebGLProgram* program, +- GLuint index); +- void pauseTransformFeedback(); +- void resumeTransformFeedback(); +- +- /* Uniform Buffer Objects and Transform Feedback Buffers */ +- void bindBufferBase(GLenum target, GLuint index, WebGLBuffer* buffer); +- void bindBufferRange(GLenum target, +- GLuint index, +- WebGLBuffer* buffer, +- int64_t offset, +- int64_t size); +- ScriptValue getIndexedParameter(ScriptState* script_state, +- GLenum target, +- GLuint index); +- std::optional> getUniformIndices( +- WebGLProgram* program, +- const Vector& uniform_names); +- ScriptValue getActiveUniforms(ScriptState* script_state, +- WebGLProgram* program, +- const Vector& uniform_indices, +- GLenum pname); +- GLuint getUniformBlockIndex(WebGLProgram* program, +- const String& uniform_block_name); +- ScriptValue getActiveUniformBlockParameter(ScriptState* script_state, +- WebGLProgram* program, +- GLuint uniform_block_index, +- GLenum pname); +- String getActiveUniformBlockName(WebGLProgram* program, +- GLuint uniform_block_index); +- void uniformBlockBinding(WebGLProgram* program, +- GLuint uniform_block_index, +- GLuint uniform_block_binding); +- +- /* Vertex Array Objects */ +- WebGLVertexArrayObject* createVertexArray(); +- void deleteVertexArray(WebGLVertexArrayObject* vertex_array); +- bool isVertexArray(WebGLVertexArrayObject* vertex_array); +- void bindVertexArray(WebGLVertexArrayObject* vertex_array); +- +- /* Reading */ +- void readPixels(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- int64_t offset); +- void readPixels(GLint x, +- GLint y, +- GLsizei width, +- GLsizei height, +- GLenum format, +- GLenum type, +- MaybeShared pixels, +- int64_t offset); +- +- // ************************************************************************** +- // End of WebGL2RenderingContextBase's IDL methods +- // ************************************************************************** +- +- // ************************************************************************** +- // Start of CanvasRenderingContext implementation +- // ************************************************************************** +- SkAlphaType GetAlphaType() const override; +- viz::SharedImageFormat GetSharedImageFormat() const override; +- gfx::ColorSpace GetColorSpace() const override; +- bool isContextLost() const override; +- scoped_refptr GetImage(FlushReason) override; +- void SetHdrMetadata(const gfx::HDRMetadata& hdr_metadata) override; +- +- bool IsComposited() const override; +- bool IsPaintable() const override; +- bool UsingSwapChain() const override; +- void PageVisibilityChanged() override; +- bool PaintRenderingResultsToCanvas(SourceDrawingBuffer) override; +- bool CopyRenderingResultsToVideoFrame( +- WebGraphicsContext3DVideoFramePool*, +- SourceDrawingBuffer, +- const gfx::ColorSpace&, +- VideoFrameCopyCompletedCallback) override; +- +- cc::Layer* CcLayer() const override; +- void Stop() override; +- void FinalizeFrame(FlushReason) override; +- bool PushFrame() override; +- +- // ************************************************************************** +- // End of CanvasRenderingContext implementation +- // ************************************************************************** +- +- void Trace(Visitor*) const override; +- +- private: +-}; +- +-} // namespace blink +- +-#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGL_WEBGL_RENDERING_CONTEXT_WEBGPU_BASE_H_ diff --git a/patches/chromium/scroll_bounce_flag.patch b/patches/chromium/scroll_bounce_flag.patch index 903b292f47..80773b57b2 100644 --- a/patches/chromium/scroll_bounce_flag.patch +++ b/patches/chromium/scroll_bounce_flag.patch @@ -6,10 +6,10 @@ Subject: scroll_bounce_flag.patch Patch to make scrollBounce option work. diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc -index 4176c771c26f67be6bb378c7b923f848bcf7cd1b..915e6b3098cea99e2ea2fca79cfb87026c1ba758 100644 +index 790bf3bdfc48936799e690ad644feaa12b3873a3..c86c7bc7790ab4c94d3692e8e70cb9fcdef93eda 100644 --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc -@@ -1331,7 +1331,7 @@ bool RenderThreadImpl::IsLcdTextEnabled() { +@@ -1309,7 +1309,7 @@ bool RenderThreadImpl::IsLcdTextEnabled() { } bool RenderThreadImpl::IsElasticOverscrollEnabled() { diff --git a/patches/chromium/support_mixed_sandbox_with_zygote.patch b/patches/chromium/support_mixed_sandbox_with_zygote.patch index 516afca1ef..27d086b643 100644 --- a/patches/chromium/support_mixed_sandbox_with_zygote.patch +++ b/patches/chromium/support_mixed_sandbox_with_zygote.patch @@ -22,10 +22,10 @@ However, the patch would need to be reviewed by the security team, as it 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 -index 332f611678e53c0ea56c8baea71ca123d8cc0a95..6a1b182868157c91742c6b652cbdfc0f4373a27a 100644 +index c97471d75ab2d11cfe71f34d8d11b27edb5c0fce..44a8635ba28722b30e34695c130f7b271978391a 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -1825,6 +1825,10 @@ bool RenderProcessHostImpl::Init() { +@@ -1833,6 +1833,10 @@ bool RenderProcessHostImpl::Init() { std::unique_ptr sandbox_delegate = std::make_unique( *cmd_line, IsPdf(), IsJitDisabled()); diff --git a/patches/chromium/web_contents.patch b/patches/chromium/web_contents.patch index 3d2707a42d..a388d87790 100644 --- a/patches/chromium/web_contents.patch +++ b/patches/chromium/web_contents.patch @@ -9,10 +9,10 @@ is needed for OSR. 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 -index 3435a1d0ce5c8025b5a2005ebb4066e306579a69..3d37f389e0d9685119a5776832e0e005f8bcc6ca 100644 +index bbbc07e36e6de11169f8317c64558b8c4d1699d5..0cf259360950a7063c4f9d6dc71b004706330f37 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -3941,6 +3941,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params, +@@ -4094,6 +4094,13 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params, params.main_frame_name, GetOpener(), primary_main_frame_policy, base::UnguessableToken::Create()); @@ -26,7 +26,7 @@ index 3435a1d0ce5c8025b5a2005ebb4066e306579a69..3d37f389e0d9685119a5776832e0e005 std::unique_ptr delegate = GetContentClient()->browser()->GetWebContentsViewDelegate(this); -@@ -3951,6 +3958,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params, +@@ -4104,6 +4111,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params, view_ = CreateWebContentsView(this, std::move(delegate), &render_view_host_delegate_view_); } @@ -35,7 +35,7 @@ index 3435a1d0ce5c8025b5a2005ebb4066e306579a69..3d37f389e0d9685119a5776832e0e005 CHECK(view_.get()); diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h -index 560e0056bb9b0feb7510f81a80a6365cd38676d2..5ff33943a133b45d7a48a48844f5fa9e62a1f413 100644 +index 37061d761f18ea143a8095393c42c4cf5c9eca0e..e70f25a52dbe66bf1a9bbbcb6bf56f072b23eb34 100644 --- a/content/public/browser/web_contents.h +++ b/content/public/browser/web_contents.h @@ -121,10 +121,13 @@ class BrowserPluginGuestDelegate; diff --git a/patches/chromium/webview_fullscreen.patch b/patches/chromium/webview_fullscreen.patch index 8014e7b2a7..6b2997ef95 100644 --- a/patches/chromium/webview_fullscreen.patch +++ b/patches/chromium/webview_fullscreen.patch @@ -15,10 +15,10 @@ Note that we also need to manually update embedder's `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 -index e87536a31d03d8030b26781b9345fa7478d24afd..6182d198b65fd26e594ff04bbf4dc483299d19ed 100644 +index be73611db5328c76982ecca3caf5eccc30aac45e..0c4d801b3705fb609a40b8c58d2ee7f9b690461f 100644 --- a/content/browser/renderer_host/render_frame_host_impl.cc +++ b/content/browser/renderer_host/render_frame_host_impl.cc -@@ -8817,6 +8817,17 @@ void RenderFrameHostImpl::EnterFullscreen( +@@ -8824,6 +8824,17 @@ void RenderFrameHostImpl::EnterFullscreen( } } @@ -37,10 +37,10 @@ index e87536a31d03d8030b26781b9345fa7478d24afd..6182d198b65fd26e594ff04bbf4dc483 if (had_fullscreen_token && !GetView()->HasFocus()) GetView()->Focus(); diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc -index 3d37f389e0d9685119a5776832e0e005f8bcc6ca..fc4af3a293fd807780f39b0cddc7605031620879 100644 +index 0cf259360950a7063c4f9d6dc71b004706330f37..97df851aa73d1bf8d8c8001646b63cbb43cd9a92 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc -@@ -4231,21 +4231,25 @@ KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent( +@@ -4384,21 +4384,25 @@ KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent( const input::NativeWebKeyboardEvent& event) { OPTIONAL_TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("content.verbose"), "WebContentsImpl::PreHandleKeyboardEvent"); @@ -78,7 +78,7 @@ index 3d37f389e0d9685119a5776832e0e005f8bcc6ca..fc4af3a293fd807780f39b0cddc76050 } bool WebContentsImpl::HandleMouseEvent(const blink::WebMouseEvent& event) { -@@ -4404,7 +4408,7 @@ void WebContentsImpl::EnterFullscreenMode( +@@ -4557,7 +4561,7 @@ void WebContentsImpl::EnterFullscreenMode( OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::EnterFullscreenMode"); DCHECK(CanEnterFullscreenMode(requesting_frame)); DCHECK(requesting_frame->IsActive()); diff --git a/patches/chromium/worker_context_will_destroy.patch b/patches/chromium/worker_context_will_destroy.patch index 4cdcc4de4f..1e7ac85738 100644 --- a/patches/chromium/worker_context_will_destroy.patch +++ b/patches/chromium/worker_context_will_destroy.patch @@ -26,10 +26,10 @@ index 7a2d251ba2d13d0a34df176111e6524a27b87f55..cbbe0fbdd25a0f7859b113fdb3dcd9ce // An empty URL is returned if the URL is not overriden. virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc -index 64655ef0370c22eb4adb995b5ca640e9756e800e..d9deae4ffb30dc3b22c2c1bc8fc53ff9c64b1183 100644 +index 45cbe16e4582ccc832e1bd809c64036b508768d9..dd11bc6ff48f72228158239ad9dda426ede9c6b8 100644 --- a/content/renderer/renderer_blink_platform_impl.cc +++ b/content/renderer/renderer_blink_platform_impl.cc -@@ -903,6 +903,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() { +@@ -902,6 +902,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() { WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); } @@ -43,7 +43,7 @@ index 64655ef0370c22eb4adb995b5ca640e9756e800e..d9deae4ffb30dc3b22c2c1bc8fc53ff9 const v8::Local& worker) { GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h -index 206b8df48273a041ff7fd18f5d71e7e128f6da7d..549fdfb451ad72c5058cb0bc3be481aaff713769 100644 +index 2b6f49b635456283daf1b6ccf8919330dcf117c8..c05d4f3c8bc44396cc0415934d12c53e918c527f 100644 --- a/content/renderer/renderer_blink_platform_impl.h +++ b/content/renderer/renderer_blink_platform_impl.h @@ -197,6 +197,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { @@ -55,10 +55,10 @@ index 206b8df48273a041ff7fd18f5d71e7e128f6da7d..549fdfb451ad72c5058cb0bc3be481aa const blink::WebSecurityOrigin& script_origin) override; blink::ProtocolHandlerSecurityLevel GetProtocolHandlerSecurityLevel( diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h -index fa4beef133fd9bec1f1dc5fefdfbb240cec28621..7f3e3d7fa01d3d6cb7142ed1cd168268043052f7 100644 +index 54e25fb12f680eb4bbe0d51f162e227610065345..3648f1be362dc4c13071e73fed478454af7518ca 100644 --- a/third_party/blink/public/platform/platform.h +++ b/third_party/blink/public/platform/platform.h -@@ -671,6 +671,7 @@ class BLINK_PLATFORM_EXPORT Platform { +@@ -670,6 +670,7 @@ class BLINK_PLATFORM_EXPORT Platform { virtual void DidStartWorkerThread() {} virtual void WillStopWorkerThread() {} virtual void WorkerContextCreated(const v8::Local& worker) {} diff --git a/patches/chromium/worker_feat_add_hook_to_notify_script_ready.patch b/patches/chromium/worker_feat_add_hook_to_notify_script_ready.patch index 072de0abc4..668fbfc1ad 100644 --- a/patches/chromium/worker_feat_add_hook_to_notify_script_ready.patch +++ b/patches/chromium/worker_feat_add_hook_to_notify_script_ready.patch @@ -35,10 +35,10 @@ index cbbe0fbdd25a0f7859b113fdb3dcd9ce57e597d6..1345bb5008e1b4fc3a450f7e353d52ec // from the worker thread. virtual void WillDestroyWorkerContextOnWorkerThread( diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc -index d9deae4ffb30dc3b22c2c1bc8fc53ff9c64b1183..3a0bb8b4d8eba3d67e444541b06326b9a3440eee 100644 +index dd11bc6ff48f72228158239ad9dda426ede9c6b8..f9438122223fcdf7249eda0a5cbaa65250eb12dc 100644 --- a/content/renderer/renderer_blink_platform_impl.cc +++ b/content/renderer/renderer_blink_platform_impl.cc -@@ -915,6 +915,12 @@ void RendererBlinkPlatformImpl::WorkerContextCreated( +@@ -914,6 +914,12 @@ void RendererBlinkPlatformImpl::WorkerContextCreated( worker); } @@ -52,7 +52,7 @@ index d9deae4ffb30dc3b22c2c1bc8fc53ff9c64b1183..3a0bb8b4d8eba3d67e444541b06326b9 const blink::WebSecurityOrigin& script_origin) { return GetContentClient()->renderer()->AllowScriptExtensionForServiceWorker( diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h -index 549fdfb451ad72c5058cb0bc3be481aaff713769..52a575f593ef6f59fb6f0d85f12164f02541a5ab 100644 +index c05d4f3c8bc44396cc0415934d12c53e918c527f..84fff89368318b525f9e7aad6aeaf061c0cd76a1 100644 --- a/content/renderer/renderer_blink_platform_impl.h +++ b/content/renderer/renderer_blink_platform_impl.h @@ -197,6 +197,8 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { @@ -65,10 +65,10 @@ index 549fdfb451ad72c5058cb0bc3be481aaff713769..52a575f593ef6f59fb6f0d85f12164f0 bool AllowScriptExtensionForServiceWorker( const blink::WebSecurityOrigin& script_origin) override; diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h -index 7f3e3d7fa01d3d6cb7142ed1cd168268043052f7..00682c4fe82ec77f79a4d9e70c6e7f5788083f25 100644 +index 3648f1be362dc4c13071e73fed478454af7518ca..4c4e92cc0ec5c132418691a56c13e59c29281718 100644 --- a/third_party/blink/public/platform/platform.h +++ b/third_party/blink/public/platform/platform.h -@@ -671,6 +671,8 @@ class BLINK_PLATFORM_EXPORT Platform { +@@ -670,6 +670,8 @@ class BLINK_PLATFORM_EXPORT Platform { virtual void DidStartWorkerThread() {} virtual void WillStopWorkerThread() {} virtual void WorkerContextCreated(const v8::Local& worker) {} diff --git a/patches/devtools_frontend/chore_expose_ui_to_allow_electron_to_set_dock_side.patch b/patches/devtools_frontend/chore_expose_ui_to_allow_electron_to_set_dock_side.patch index bff9bbb53a..d291daafba 100644 --- a/patches/devtools_frontend/chore_expose_ui_to_allow_electron_to_set_dock_side.patch +++ b/patches/devtools_frontend/chore_expose_ui_to_allow_electron_to_set_dock_side.patch @@ -10,7 +10,7 @@ to handle this without patching, but this is fairly clean for now and no longer patching legacy devtools code. diff --git a/front_end/entrypoints/main/MainImpl.ts b/front_end/entrypoints/main/MainImpl.ts -index 90dfc1abb2f03ccc4b120e16b25434023d8f47a8..d9da92c75c27bc21bc7a165c489a6e04935c41f2 100644 +index 2be25257dfc26d280733f6b55fa13da5e316ba3c..263bfe5be5becb18c73b0fc27ab1a41d455a5508 100644 --- a/front_end/entrypoints/main/MainImpl.ts +++ b/front_end/entrypoints/main/MainImpl.ts @@ -721,6 +721,8 @@ export class MainImpl { diff --git a/shell/browser/electron_browser_client.cc b/shell/browser/electron_browser_client.cc index 36e25a4bd3..71f10117d5 100644 --- a/shell/browser/electron_browser_client.cc +++ b/shell/browser/electron_browser_client.cc @@ -954,20 +954,19 @@ bool ElectronBrowserClient::HandleExternalProtocol( void ElectronBrowserClient::CreateThrottlesForNavigation( content::NavigationThrottleRegistry& registry) { - content::NavigationHandle* handle = ®istry.GetNavigationHandle(); registry.MaybeAddThrottle( - std::make_unique(handle)); + std::make_unique(registry)); #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) registry.MaybeAddThrottle( - std::make_unique(handle)); + std::make_unique(registry)); #endif #if BUILDFLAG(ENABLE_PDF_VIEWER) registry.MaybeAddThrottle( - std::make_unique(handle)); + std::make_unique(registry)); registry.MaybeAddThrottle(std::make_unique( - handle, std::make_unique())); + registry, std::make_unique())); #endif } diff --git a/shell/browser/electron_navigation_throttle.cc b/shell/browser/electron_navigation_throttle.cc index 35ad181eee..a124d11657 100644 --- a/shell/browser/electron_navigation_throttle.cc +++ b/shell/browser/electron_navigation_throttle.cc @@ -13,8 +13,8 @@ namespace electron { ElectronNavigationThrottle::ElectronNavigationThrottle( - content::NavigationHandle* navigation_handle) - : content::NavigationThrottle(navigation_handle) {} + content::NavigationThrottleRegistry& registry) + : content::NavigationThrottle(registry) {} ElectronNavigationThrottle::~ElectronNavigationThrottle() = default; diff --git a/shell/browser/electron_navigation_throttle.h b/shell/browser/electron_navigation_throttle.h index bd445a8cd1..36c8aff717 100644 --- a/shell/browser/electron_navigation_throttle.h +++ b/shell/browser/electron_navigation_throttle.h @@ -11,7 +11,8 @@ namespace electron { class ElectronNavigationThrottle : public content::NavigationThrottle { public: - explicit ElectronNavigationThrottle(content::NavigationHandle* handle); + explicit ElectronNavigationThrottle( + content::NavigationThrottleRegistry& registry); ~ElectronNavigationThrottle() override; // disable copy diff --git a/shell/browser/extensions/api/resources_private/resources_private_api.cc b/shell/browser/extensions/api/resources_private/resources_private_api.cc index c2ab5bf5f9..61a508f409 100644 --- a/shell/browser/extensions/api/resources_private/resources_private_api.cc +++ b/shell/browser/extensions/api/resources_private/resources_private_api.cc @@ -50,7 +50,7 @@ ExtensionFunction::ResponseAction ResourcesPrivateGetStringsFunction::Run() { #if BUILDFLAG(ENABLE_PDF_VIEWER) pdf_extension_util::AddStrings( pdf_extension_util::PdfViewerContext::kPdfViewer, &dict); - pdf_extension_util::AddAdditionalData(true, false, &dict); + pdf_extension_util::AddAdditionalData(browser_context(), &dict); #endif break; case api::resources_private::Component::kIdentity: diff --git a/shell/browser/extensions/electron_component_extension_resource_manager.cc b/shell/browser/extensions/electron_component_extension_resource_manager.cc index 0a1b2df5d6..da72977cfe 100644 --- a/shell/browser/extensions/electron_component_extension_resource_manager.cc +++ b/shell/browser/extensions/electron_component_extension_resource_manager.cc @@ -31,7 +31,6 @@ ElectronComponentExtensionResourceManager:: base::Value::Dict pdf_strings; pdf_extension_util::AddStrings( pdf_extension_util::PdfViewerContext::kPdfViewer, &pdf_strings); - pdf_extension_util::AddAdditionalData(false, true, &pdf_strings); ui::TemplateReplacements pdf_viewer_replacements; ui::TemplateReplacementsFromDictionaryValue(pdf_strings, diff --git a/shell/browser/ui/views/win_frame_view.cc b/shell/browser/ui/views/win_frame_view.cc index d4afdb86fa..88a18703a0 100644 --- a/shell/browser/ui/views/win_frame_view.cc +++ b/shell/browser/ui/views/win_frame_view.cc @@ -198,8 +198,8 @@ int WinFrameView::FrameTopBorderThicknessPx(bool restored) const { // Note that this method assumes an equal resize handle thickness on all // sides of the window. // TODO(dfried): Consider having it return a gfx::Insets object instead. - return ui::GetFrameThickness( - MonitorFromWindow(HWNDForView(this), MONITOR_DEFAULTTONEAREST)); + return ui::GetFrameThicknessFromWindow(HWNDForView(this), + MONITOR_DEFAULTTONEAREST); } int WinFrameView::TitlebarMaximizedVisualHeight() const { diff --git a/shell/common/api/electron_api_native_image_mac.mm b/shell/common/api/electron_api_native_image_mac.mm index 918635e95e..f3e766c896 100644 --- a/shell/common/api/electron_api_native_image_mac.mm +++ b/shell/common/api/electron_api_native_image_mac.mm @@ -36,7 +36,7 @@ NSData* bufferFromNSImage(NSImage* image) { } double safeShift(double in, double def) { - if (in >= 0 || in <= 1 || in == def) + if ((in >= 0 && in <= 1) || in == def) return in; return def; } diff --git a/spec/fixtures/api/corner-smoothing/shape/expected-false.png b/spec/fixtures/api/corner-smoothing/shape/expected-false.png index 56c135d740..83bf09d5d3 100644 Binary files a/spec/fixtures/api/corner-smoothing/shape/expected-false.png and b/spec/fixtures/api/corner-smoothing/shape/expected-false.png differ diff --git a/spec/fixtures/api/corner-smoothing/shape/expected-true.png b/spec/fixtures/api/corner-smoothing/shape/expected-true.png index 97280d9369..f26213d7b1 100644 Binary files a/spec/fixtures/api/corner-smoothing/shape/expected-true.png and b/spec/fixtures/api/corner-smoothing/shape/expected-true.png differ