Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump chromium to 91.0.4472.33 (13-x-y) #28660

Merged
merged 115 commits into from May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
2178e64
chore: bump chromium in DEPS to 91.0.4472.5
electron-bot Apr 14, 2021
ef888a9
chore: rebuild chromium/dcheck.patch with import-patches -3
ckerr Mar 31, 2021
8168dc0
chore: remove content_browser_main_loop.patch
ckerr Mar 31, 2021
e26607c
chore: rebuild chromium/put_back_deleted_colors_for_autofill.patch wi…
ckerr Mar 31, 2021
81ead17
chore: rebuild chromium/disable_color_correct_rendering.patch with im…
ckerr Mar 31, 2021
8cd37a5
chore: rebuild chromium/eat_allow_disabling_blink_scheduler_throttlin…
ckerr Mar 31, 2021
8747bb0
chore: rebuild chromium/gpu_notify_when_dxdiag_request_fails.patch wi…
ckerr Mar 31, 2021
03ffede
chore: rebuild chromium/ui_gtk_public_header.patch manually
ckerr Mar 31, 2021
72ce58e
chore: rebuild chromium/web_contents.patch with import-patches -3
ckerr Mar 31, 2021
54bbd99
chore: remove v8/skip_global_registration_of_shared_arraybuffer_backi…
ckerr Mar 31, 2021
a88ccf9
chore: export patches
jkleinsc Apr 14, 2021
b99f36a
chore: update add_trustedauthclient_to_urlloaderfactory.patch
ckerr Mar 31, 2021
df20919
chore: sync chromium/put_back_deleted_colors_for_autofill.patch
ckerr Mar 31, 2021
f87e543
chore: sync chromium/put_back_deleted_colors_for_autofill.patch
ckerr Mar 31, 2021
a27e941
chore: update add_trustedauthclient_to_urlloaderfactory.patch
ckerr Mar 31, 2021
1c68621
chore: update chromium/frame_host_manager.patch
ckerr Mar 31, 2021
5358109
chore: update chromium/revert_remove_contentrendererclient_shouldfork…
ckerr Mar 31, 2021
7496a8b
chore: update permissions_to_register
ckerr Mar 31, 2021
c2e01f6
refactor: update return type of PreMainMessageLoopRun()
ckerr Mar 31, 2021
f5d50f8
refactor: sync ElectronBrowserMainParts to MainParts changes
ckerr Mar 31, 2021
dd2087b
chore: update ElectronBrowserMainParts::PreDefaultMainMessageLoopRun
ckerr Mar 31, 2021
71de7c8
refactor: stop using CallbackList; it has been removed.
ckerr Apr 1, 2021
4ba6200
refactor: update use of threadpools.
ckerr Apr 1, 2021
145d399
refactor: remove routing_id from CreateLoaderAndStart
ckerr Apr 1, 2021
c1f0fb2
refactor: sync to upstream ParittionOptions churn
ckerr Apr 1, 2021
4ffec62
refactor: update Manifest::Location usage
ckerr Apr 1, 2021
160755e
update patches
jkleinsc Apr 14, 2021
0dfa650
refactor: update extensions::Manifest to upstream
ckerr Apr 1, 2021
7d83484
refactor: sync with upstream UrlInfo ctor changes
ckerr Apr 1, 2021
4b2e90f
chore: update invocation of convert_protocol_to_json.py
ckerr Apr 1, 2021
2f70832
chore: use extensions::mojom::APIPermissionID
ckerr Apr 1, 2021
430eb62
chore: Remove support for TLS1.0/1.1 in SSLVersionMin policy
ckerr Apr 1, 2021
ff3a943
fixup! chore: update ElectronBrowserMainParts::PreDefaultMainMessageL…
ckerr Apr 1, 2021
8fd9538
chore: Use IDType for permission change subscriptions.
ckerr Apr 1, 2021
2e9e405
chore: sync PowerMonitor code to upstream refactor
ckerr Apr 1, 2021
62951b9
chore: use PartitionOptions's new Cookies field
ckerr Apr 1, 2021
5325cf6
Revert "refactor: remove routing_id from CreateLoaderAndStart"
ckerr Apr 1, 2021
75f07aa
update patches
electron-bot Apr 2, 2021
7dfb40c
chore: update chromium/accelerator.patch
ckerr Apr 2, 2021
52b47c7
chore: update chromium/gtk_visibility.patch
ckerr Apr 2, 2021
f7f50c6
chore: update chromium/picture-in-picture.patch
ckerr Apr 2, 2021
ea76157
chore: update chromium/worker_feat_add_hook_to_notify_script_ready.patch
ckerr Apr 2, 2021
6ead0fc
chore: export_all_patches
ckerr Apr 2, 2021
f50c219
chore: update chromium/feat_add_set_theme_source_to_allow_apps_to.patch
ckerr Apr 2, 2021
bfdad18
chore: update ElectronBrowserClient w/upstream API
ckerr Apr 4, 2021
7a356c4
chore: handle new content::PermissionType::FILE_HANDLING in toV8()
ckerr Apr 4, 2021
eb48cc4
refactor: remove routing_id from CreateLoaderAndStart pt 1
ckerr Apr 4, 2021
5413feb
2796724: Support Python3
codebytere Apr 6, 2021
f97f61c
2668974: WebShare: Implement SharingServicePicker
codebytere Apr 6, 2021
1659356
2802766: Apply modernize-make-unique to media/
codebytere Apr 6, 2021
00e59d1
2802823: Apply modernize-make-unique to gpu/
codebytere Apr 6, 2021
611618c
2803041: Apply modernize-make-unique to remaining files
codebytere Apr 6, 2021
b9048f6
2798873: Convert GtkKeyBindingsHandler build checks to runtime checks
codebytere Apr 6, 2021
89c34b4
2733595: [ch-r] Parse ACCEPT_CH H2/3 frame and restart with new heade…
codebytere Apr 6, 2021
f867165
chore: update patch indices
codebytere Apr 6, 2021
94dbfba
2795107: Remove unused PermissionRequest IDs.
codebytere Apr 6, 2021
353256e
chore: fixup patch indices
codebytere Apr 7, 2021
0f3f722
PiP 1.5: Add microphone, camera, and hang up buttons to the PiP window
deepak1556 Apr 9, 2021
daa0f85
fixup! refactor: remove routing_id from CreateLoaderAndStart
deepak1556 Apr 9, 2021
185df17
refactor: use URLLoaderNetworkServiceObserver for auth requests from …
deepak1556 Apr 9, 2021
b6e2217
fixup! chore: fixup patch indices
codebytere Apr 9, 2021
0ac8079
2724817: Expand scope of wasm-eval to all URLs
jkleinsc Apr 14, 2021
3d332e9
2797341: [ozone/x11] Enabled the global shortcut listener.
codebytere Apr 9, 2021
703a931
2805553: Reland Add GTK ColorMixers to ColorPipeline P1
codebytere Apr 9, 2021
4f6c120
2804366: PiP 1.5: Label back to tab button with origin and center it
codebytere Apr 9, 2021
d51b7ef
2784730: Fix crash on AX mode change in NativeViewHost without a Widget
codebytere Apr 9, 2021
dbd657c
chore: update patch indices
codebytere Apr 9, 2021
a035b1e
2810174: Add PdfAnnotationsEnabled policy.
codebytere Apr 9, 2021
cbbc438
2807829: Allow capturers to indicate if they want a WakeLock or not.
codebytere Apr 9, 2021
a7bd650
update patches after cherry picks
jkleinsc Apr 14, 2021
ae699e0
chore: icon_util_x11 is now icon_util_linux
MarshallOfSound Apr 12, 2021
64e9d56
build: fix missing symbols on linux build
MarshallOfSound Apr 12, 2021
f980d51
chore: remove patch conflict
MarshallOfSound Apr 12, 2021
46c0fe6
chore: build bttlb on all platforms for pip
MarshallOfSound Apr 12, 2021
636dd26
build: update linux manifests
MarshallOfSound Apr 12, 2021
a2c71e4
chore: update windows zip manifests
MarshallOfSound Apr 14, 2021
e397c2e
chore: update mac zip manifests
MarshallOfSound Apr 14, 2021
1d768b2
chore: update is_media_key patch to handle new ozone impl
MarshallOfSound Apr 12, 2021
ec195d7
build: update sysroots
MarshallOfSound Apr 12, 2021
835fa8a
build: add missing base include on windows
MarshallOfSound Apr 14, 2021
0fc65ae
fix: update frame host manager patch for new state transitions
jkleinsc Apr 15, 2021
661c291
refactor: implement missing URLLoaderNetworkServiceObserver methods
MarshallOfSound Apr 14, 2021
f7a0c77
spec: fix locale test on local linux
MarshallOfSound Apr 14, 2021
43958de
fix: pass the exit code correctly in new PreMainMessageLoopRun
MarshallOfSound Apr 14, 2021
c0dca07
fix: ensure we early-exit when request_handler_ is not provided
MarshallOfSound Apr 14, 2021
1c093ad
fix: strongly set result_code in the BrowserMainLoop
MarshallOfSound Apr 15, 2021
1121456
fix: invalid usage of non-targetted PostTask
MarshallOfSound Apr 15, 2021
7589c16
build: ensure CI is truthy in arm test env
MarshallOfSound Apr 15, 2021
34d2562
chore: add mojo error code to url loader failure
MarshallOfSound Apr 15, 2021
b400f7c
fix: handle windowCaptureMacV2 being enabled when fetching media sour…
MarshallOfSound Apr 15, 2021
79774c2
chore: fix broken gtk_util color patch
MarshallOfSound Apr 12, 2021
2f45d2e
chore: fix gn check
MarshallOfSound Apr 15, 2021
db3c8bc
chore: add node patches for V8 changes
MarshallOfSound Apr 14, 2021
ab23164
chore: add thread_pool include for views delegate win
MarshallOfSound Apr 12, 2021
4db25ca
chore: remove stray .rej files in patch
MarshallOfSound Apr 15, 2021
5e8d2e0
chore: bump chromium in DEPS to 91.0.4472.10
electron-bot Apr 16, 2021
e6d7d6d
update patches
electron-bot Apr 16, 2021
050e148
Merge branch '13-x-y' into roller/chromium/13-x-y
jkleinsc Apr 21, 2021
d5ea6d7
Merge branch '13-x-y' into roller/chromium/13-x-y
jkleinsc Apr 21, 2021
6a65d3e
update patches
electron-bot Apr 21, 2021
d4eb5ef
try to track down WOA failures
jkleinsc Apr 22, 2021
f771dfe
see if this helps websql failure
jkleinsc Apr 22, 2021
572987a
chore: debug websql error on WOA
jkleinsc Apr 27, 2021
ef18600
Revert "chore: debug websql error on WOA"
jkleinsc Apr 28, 2021
bc911a2
Revert "see if this helps websql failure"
jkleinsc Apr 28, 2021
f5bebe1
Revert "try to track down WOA failures"
jkleinsc Apr 28, 2021
7d2685e
chore: no long disable CalculateNativeWinOcclusion on WOA
jkleinsc Apr 28, 2021
7243bef
run specs separately on WOA
jkleinsc Apr 28, 2021
6a9e421
Update comment
jkleinsc Apr 28, 2021
6422707
escape %
jkleinsc Apr 28, 2021
4ef50a0
specify files properly
jkleinsc Apr 29, 2021
f4d6e57
revert WOA testing changes
jkleinsc May 3, 2021
162071d
chore: bump chromium in DEPS to 91.0.4472.33
jkleinsc May 3, 2021
51f16df
chore: update patches
jkleinsc May 3, 2021
9271498
Trigger CI
jkleinsc May 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD.gn
Expand Up @@ -443,6 +443,7 @@ source_set("electron_lib") {
if (is_mac) {
deps += [
"//components/remote_cocoa/app_shim",
"//components/remote_cocoa/browser",
"//content/common:mac_helpers",
"//ui/accelerated_widget_mac",
]
Expand Down
2 changes: 1 addition & 1 deletion DEPS
Expand Up @@ -14,7 +14,7 @@ gclient_gn_args = [

vars = {
'chromium_version':
'91.0.4448.0',
'91.0.4472.33',
'node_version':
'v14.16.0',
'nan_version':
Expand Down
3 changes: 2 additions & 1 deletion build/mac/make_locale_dirs.py
Expand Up @@ -8,6 +8,7 @@
# require any direct Cocoa locale support.

import os
import errno
import sys


Expand All @@ -16,7 +17,7 @@ def main(args):
try:
os.makedirs(dirname)
except OSError as e:
if e.errno == os.errno.EEXIST:
if e.errno == errno.EEXIST:
# It's OK if it already exists
pass
else:
Expand Down
19 changes: 17 additions & 2 deletions chromium_src/BUILD.gn
Expand Up @@ -2,6 +2,7 @@
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.

import("//build/config/ozone.gni")
import("//build/config/ui.gni")
import("//components/spellcheck/spellcheck_build_features.gni")
import("//electron/buildflags/buildflags.gni")
Expand Down Expand Up @@ -92,12 +93,18 @@ static_library("chrome") {

if (is_linux) {
sources += [ "//chrome/browser/icon_loader_auralinux.cc" ]
if (use_x11 || use_ozone) {
sources +=
[ "//chrome/browser/extensions/global_shortcut_listener_linux.cc" ]
}
if (use_x11) {
sources += [
"//chrome/browser/extensions/global_shortcut_listener_x11.cc",
"//chrome/browser/extensions/global_shortcut_listener_x11.h",
]
} else if (use_ozone) {
}
if (use_ozone) {
deps += [ "//ui/ozone" ]
sources += [
"//chrome/browser/extensions/global_shortcut_listener_ozone.cc",
"//chrome/browser/extensions/global_shortcut_listener_ozone.h",
Expand Down Expand Up @@ -188,7 +195,7 @@ static_library("chrome") {
}

if (is_linux) {
sources += [ "//chrome/browser/media/webrtc/window_icon_util_x11.cc" ]
sources += [ "//chrome/browser/media/webrtc/window_icon_util_linux.cc" ]
}
}

Expand Down Expand Up @@ -250,8 +257,12 @@ static_library("chrome") {
"//chrome/browser/picture_in_picture/picture_in_picture_window_manager.h",
"//chrome/browser/ui/views/overlay/back_to_tab_image_button.cc",
"//chrome/browser/ui/views/overlay/back_to_tab_image_button.h",
"//chrome/browser/ui/views/overlay/back_to_tab_label_button.cc",
"//chrome/browser/ui/views/overlay/close_image_button.cc",
"//chrome/browser/ui/views/overlay/close_image_button.h",
"//chrome/browser/ui/views/overlay/constants.h",
"//chrome/browser/ui/views/overlay/hang_up_button.cc",
"//chrome/browser/ui/views/overlay/hang_up_button.h",
"//chrome/browser/ui/views/overlay/overlay_window_views.cc",
"//chrome/browser/ui/views/overlay/overlay_window_views.h",
"//chrome/browser/ui/views/overlay/playback_image_button.cc",
Expand All @@ -260,6 +271,10 @@ static_library("chrome") {
"//chrome/browser/ui/views/overlay/resize_handle_button.h",
"//chrome/browser/ui/views/overlay/skip_ad_label_button.cc",
"//chrome/browser/ui/views/overlay/skip_ad_label_button.h",
"//chrome/browser/ui/views/overlay/toggle_camera_button.cc",
"//chrome/browser/ui/views/overlay/toggle_camera_button.h",
"//chrome/browser/ui/views/overlay/toggle_microphone_button.cc",
"//chrome/browser/ui/views/overlay/toggle_microphone_button.h",
"//chrome/browser/ui/views/overlay/track_image_button.cc",
"//chrome/browser/ui/views/overlay/track_image_button.h",
]
Expand Down
6 changes: 4 additions & 2 deletions docs/api/web-contents.md
Expand Up @@ -1364,19 +1364,21 @@ Captures a snapshot of the page within `rect`. Omitting `rect` will capture the
Returns `Boolean` - Whether this page is being captured. It returns true when the capturer count
is large then 0.

#### `contents.incrementCapturerCount([size, stayHidden])`
#### `contents.incrementCapturerCount([size, stayHidden, stayAwake])`

* `size` [Size](structures/size.md) (optional) - The preferred size for the capturer.
* `stayHidden` Boolean (optional) - Keep the page hidden instead of visible.
* `stayAwake` Boolean (optional) - Keep the system awake instead of allowing it to sleep.

Increase the capturer count by one. The page is considered visible when its browser window is
hidden and the capturer count is non-zero. If you would like the page to stay hidden, you should ensure that `stayHidden` is set to true.

This also affects the Page Visibility API.

#### `contents.decrementCapturerCount([stayHidden])`
#### `contents.decrementCapturerCount([stayHidden, stayAwake])`

* `stayHidden` Boolean (optional) - Keep the page in hidden state instead of visible.
* `stayAwake` Boolean (optional) - Keep the system awake instead of allowing it to sleep.

Decrease the capturer count by one. The page will be set to hidden or occluded state when its
browser window is hidden or occluded and the capturer count reaches zero. If you want to
Expand Down
15 changes: 15 additions & 0 deletions electron_strings.grdp
Expand Up @@ -51,6 +51,21 @@
<message name="IDS_PICTURE_IN_PICTURE_SKIP_AD_CONTROL_TEXT" desc="Text label of the skip ad control button. The button appears when the user hovers over the Picture-in-Picture window.">
Skip Ad
</message>
<message name="IDS_PICTURE_IN_PICTURE_MUTE_MICROPHONE_TEXT" desc="Text label of the mute microphone control button. The button appears when the user hovers over the Picture-in-Picture window.">
Mute microphone
</message>
<message name="IDS_PICTURE_IN_PICTURE_UNMUTE_MICROPHONE_TEXT" desc="Text label of the unmute microphone control button. The button appears when the user hovers over the Picture-in-Picture window.">
Unmute microphone
</message>
<message name="IDS_PICTURE_IN_PICTURE_TURN_ON_CAMERA_TEXT" desc="Text label of the turn on camera control button. The button appears when the user hovers over the Picture-in-Picture window.">
Turn on camera
</message>
<message name="IDS_PICTURE_IN_PICTURE_TURN_OFF_CAMERA_TEXT" desc="Text label of the turn off camera control button. The button appears when the user hovers over the Picture-in-Picture window.">
Turn off camera
</message>
<message name="IDS_PICTURE_IN_PICTURE_HANG_UP_TEXT" desc="Text label of the hang up control button. The button appears when the user hovers over the Picture-in-Picture window.">
Hang up
</message>
<message name="IDS_PICTURE_IN_PICTURE_CLOSE_CONTROL_TEXT" desc="Text label of the close control button. The button appears when the user hovers over the Picture-in-Picture window.">
Close
</message>
Expand Down
6 changes: 2 additions & 4 deletions patches/chromium/.patches
Expand Up @@ -41,7 +41,6 @@ proxy_config_monitor.patch
gritsettings_resource_ids.patch
isolate_holder.patch
notification_provenance.patch
content_browser_main_loop.patch
dump_syms.patch
command-ismediakey.patch
printing.patch
Expand Down Expand Up @@ -99,13 +98,12 @@ fix_use_electron_generated_resources.patch
chore_expose_v8_initialization_isolate_callbacks.patch
export_gin_v8platform_pageallocator_for_usage_outside_of_the_gin.patch
use_public_apis_to_determine_if_a_font_is_a_system_font_in_mas_build.patch
fix_setparentacessibile_crash_win.patch
fix_export_zlib_symbols.patch
don_t_use_potentially_null_getwebframe_-_view_when_get_blink.patch
web_contents.patch
add_trustedauthclient_to_urlloaderfactory.patch
fix_route_mouse_event_navigations_through_the_web_contents_delegate.patch
disable_unload_metrics.patch
fix_add_check_for_sandbox_then_result.patch
moves_background_color_setter_of_webview_to_blinks_webprefs_logic.patch
blink_wasm_eval_csp.patch
fix_expose_decrementcapturercount_in_web_contents_impl.patch
add_setter_for_browsermainloop_result_code.patch
24 changes: 12 additions & 12 deletions patches/chromium/accelerator.patch
Expand Up @@ -10,28 +10,28 @@ This patch makes three changes to Accelerator::GetShortcutText to improve shortc
3. Ctrl-Shift-= should show as Ctrl-+

diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..f28a557ccc96c25fc4a93dca216e3184b88cbf8d 100644
index c44f3d3752025bd3f11db790a97a48e8ba856034..8e0c1446315823a391614b19aa2c4ba2e5faed0d 100644
--- a/ui/base/accelerators/accelerator.cc
+++ b/ui/base/accelerators/accelerator.cc
@@ -12,6 +12,7 @@
@@ -11,6 +11,7 @@
#include "base/i18n/rtl.h"
#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
+#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
@@ -24,9 +25,7 @@
@@ -27,9 +28,7 @@
#include <windows.h>
#endif

-#if !defined(OS_WIN) && (defined(USE_AURA) || defined(OS_APPLE))
-#if !defined(OS_WIN) && (defined(USE_AURA) || defined(OS_MAC))
#include "ui/events/keycodes/keyboard_code_conversion.h"
-#endif

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/base/ui_base_features.h"
@@ -205,7 +204,15 @@ std::u16string Accelerator::GetShortcutText() const {
@@ -208,7 +207,15 @@ std::u16string Accelerator::GetShortcutText() const {
shortcut = KeyCodeToName();
#endif

Expand All @@ -47,7 +47,7 @@ index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..f28a557ccc96c25fc4a93dca216e3184
#if defined(OS_WIN)
// Our fallback is to try translate the key code to a regular character
// unless it is one of digits (VK_0 to VK_9). Some keyboard
@@ -214,21 +221,14 @@ std::u16string Accelerator::GetShortcutText() const {
@@ -217,21 +224,14 @@ std::u16string Accelerator::GetShortcutText() const {
// accent' for '0'). For display in the menu (e.g. Ctrl-0 for the
// default zoom level), we leave VK_[0-9] alone without translation.
wchar_t key;
Expand All @@ -60,7 +60,7 @@ index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..f28a557ccc96c25fc4a93dca216e3184
- // VKEY_UNKNOWN), |::MapVirtualKeyW| returns 0.
- if (key != 0)
- shortcut += key;
-#elif defined(USE_AURA) || defined(OS_APPLE) || defined(OS_ANDROID)
-#elif defined(USE_AURA) || defined(OS_MAC) || defined(OS_ANDROID)
- const uint16_t c = DomCodeToUsLayoutCharacter(
- UsLayoutKeyboardCodeToDomCode(key_code_), false);
- if (c != 0)
Expand All @@ -74,13 +74,13 @@ index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..f28a557ccc96c25fc4a93dca216e3184
+ base::StringPrintf("F%d", key_code_ - VKEY_F1 + 1));
}

#if defined(OS_APPLE)
@@ -411,7 +411,7 @@ std::u16string Accelerator::ApplyLongFormModifiers(
#if defined(OS_MAC)
@@ -427,7 +427,7 @@ std::u16string Accelerator::ApplyLongFormModifiers(
// more information.
if (IsCtrlDown())
shortcut = ApplyModifierToAcceleratorString(shortcut, IDS_APP_CTRL_KEY);
result = ApplyModifierToAcceleratorString(result, IDS_APP_CTRL_KEY);
- else if (IsAltDown())
+ if (IsAltDown())
shortcut = ApplyModifierToAcceleratorString(shortcut, IDS_APP_ALT_KEY);
result = ApplyModifierToAcceleratorString(result, IDS_APP_ALT_KEY);

if (IsCmdDown()) {
Expand Up @@ -10,10 +10,10 @@ Allows Electron to restore WER when ELECTRON_DEFAULT_ERROR_MODE is set.
This should be upstreamed.

diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index cc0f150d08c13e5d06c7da5df7323a3b2463785a..f66af5d6b1336fe5de22150855b4416832b8522a 100644
index b3afa0e60f45a10cfe97b129996e1d9489b09a7d..24984b2be369908d72a9493ebb0fa0f9c3e5fc7e 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -267,6 +267,10 @@ int GpuMain(const MainFunctionParams& parameters) {
@@ -265,6 +265,10 @@ int GpuMain(const MainFunctionParams& parameters) {
// to the GpuProcessHost once the GpuServiceImpl has started.
viz::GpuServiceImpl::InstallPreInitializeLogHandler();

Expand All @@ -24,7 +24,7 @@ index cc0f150d08c13e5d06c7da5df7323a3b2463785a..f66af5d6b1336fe5de22150855b44168
// We are experiencing what appear to be memory-stomp issues in the GPU
// process. These issues seem to be impacting the task executor and listeners
// registered to it. Create the task executor on the heap to guard against
@@ -404,7 +408,6 @@ int GpuMain(const MainFunctionParams& parameters) {
@@ -402,7 +406,6 @@ int GpuMain(const MainFunctionParams& parameters) {
}
#endif

Expand Down
26 changes: 13 additions & 13 deletions patches/chromium/add_didinstallconditionalfeatures.patch
Expand Up @@ -23,10 +23,10 @@ index 5a733f2086ec10d3010da52a2758e1748d1178e1..d8c7ef2e3c03f5275c1ed58849ec892f
int32_t world_id) {}
virtual void DidClearWindowObject() {}
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index e2425d04e1008be3db9e6e887a7de589c18673a5..be3779de84dbda14c3425c5115da78ab703e9cfb 100644
index 580974507f1a3007564e43b75142772b690a22c5..8999d6bbb3acc55dbedc2b36cca03862614f139f 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -4577,6 +4577,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
@@ -4540,6 +4540,12 @@ void RenderFrameImpl::DidCreateScriptContext(v8::Local<v8::Context> context,
observer.DidCreateScriptContext(context, world_id);
}

Expand All @@ -40,10 +40,10 @@ index e2425d04e1008be3db9e6e887a7de589c18673a5..be3779de84dbda14c3425c5115da78ab
int world_id) {
for (auto& observer : observers_)
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 9ab20deefcc7339a783e9d922c55f42840cbbf8f..52e763e8cf62ea9c5e6025d2fedd66eb8c9c8470 100644
index 74944d9fb6ba23c001217607bc9f07c65761b26c..7ffdbb65978239dff50403fedb5c0bcf4d00c231 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -597,6 +597,8 @@ class CONTENT_EXPORT RenderFrameImpl
@@ -579,6 +579,8 @@ class CONTENT_EXPORT RenderFrameImpl
blink::WebLocalFrameClient::LazyLoadBehavior lazy_load_behavior) override;
void DidCreateScriptContext(v8::Local<v8::Context> context,
int world_id) override;
Expand All @@ -53,10 +53,10 @@ index 9ab20deefcc7339a783e9d922c55f42840cbbf8f..52e763e8cf62ea9c5e6025d2fedd66eb
int world_id) override;
void DidChangeScrollOffset() override;
diff --git a/third_party/blink/public/web/web_local_frame_client.h b/third_party/blink/public/web/web_local_frame_client.h
index fd8b154d7a38a6444dd6ceea93b422918561d0f4..8deaf19c88fdeab5ccf7bf24a086094d255e5a1a 100644
index 883f83327a5b04ad56d82b91e1c7d8fa674324b1..2b7d8e13dcde8cd916c1d0a804883415b2b23a16 100644
--- a/third_party/blink/public/web/web_local_frame_client.h
+++ b/third_party/blink/public/web/web_local_frame_client.h
@@ -571,6 +571,9 @@ class BLINK_EXPORT WebLocalFrameClient {
@@ -570,6 +570,9 @@ class BLINK_EXPORT WebLocalFrameClient {
virtual void DidCreateScriptContext(v8::Local<v8::Context>,
int32_t world_id) {}

Expand All @@ -67,7 +67,7 @@ index fd8b154d7a38a6444dd6ceea93b422918561d0f4..8deaf19c88fdeab5ccf7bf24a086094d
virtual void WillReleaseScriptContext(v8::Local<v8::Context>,
int32_t world_id) {}
diff --git a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
index be5cf4457cd379d5abc119d209d2df6520ad1022..8a0baac5bb8cb403324fb8156be62b924d6d3d1a 100644
index 50aa1b94ac6aab922f570d78f06096226d428c33..7af7ad0b7ed50dfc1ac061a915d3a99291afaec4 100644
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
@@ -188,6 +188,7 @@ void LocalWindowProxy::Initialize() {
Expand All @@ -79,10 +79,10 @@ index be5cf4457cd379d5abc119d209d2df6520ad1022..8a0baac5bb8cb403324fb8156be62b92
if (World().IsMainWorld()) {
GetFrame()->Loader().DispatchDidClearWindowObjectInMainWorld();
diff --git a/third_party/blink/renderer/core/frame/local_frame_client.h b/third_party/blink/renderer/core/frame/local_frame_client.h
index 20a509a57d8916f8fb522575e7a5dd9c2f8a9092..60193a0e5e369b09d59379415d06a74d268d0590 100644
index 44b4f8358fdf0f7a4e00d4ee83a2feea7b794831..7465839150f14856ce6c5e3d47959060cb9bdac8 100644
--- a/third_party/blink/renderer/core/frame/local_frame_client.h
+++ b/third_party/blink/renderer/core/frame/local_frame_client.h
@@ -294,6 +294,8 @@ class CORE_EXPORT LocalFrameClient : public FrameClient {
@@ -295,6 +295,8 @@ class CORE_EXPORT LocalFrameClient : public FrameClient {

virtual void DidCreateScriptContext(v8::Local<v8::Context>,
int32_t world_id) = 0;
Expand All @@ -92,7 +92,7 @@ index 20a509a57d8916f8fb522575e7a5dd9c2f8a9092..60193a0e5e369b09d59379415d06a74d
int32_t world_id) = 0;
virtual bool AllowScriptExtensions() = 0;
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
index 76a5edbafc727c8760c4cc12d9279fb96fde3740..205cbc9f1f629e10a92d2b86a65460fd115a2149 100644
index 4d123e82b733cac98f0da49ca5b0424d7f17a301..c59ca72a29aedd83f6f029217c57c5246af28e70 100644
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.cc
@@ -272,6 +272,13 @@ void LocalFrameClientImpl::DidCreateScriptContext(
Expand All @@ -110,7 +110,7 @@ index 76a5edbafc727c8760c4cc12d9279fb96fde3740..205cbc9f1f629e10a92d2b86a65460fd
v8::Local<v8::Context> context,
int32_t world_id) {
diff --git a/third_party/blink/renderer/core/frame/local_frame_client_impl.h b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
index 244a0028b7a6d14e3eb30041b36c9ef49b61018a..ea98189f0f03a9099d6963fe0fb3ae8fb0548c64 100644
index 76643c8cd72ca5730333bf8e16e65d82e691c0cb..2fb28ccbe9343de7835ec3b5c71c0c1bfdd7d744 100644
--- a/third_party/blink/renderer/core/frame/local_frame_client_impl.h
+++ b/third_party/blink/renderer/core/frame/local_frame_client_impl.h
@@ -76,6 +76,8 @@ class CORE_EXPORT LocalFrameClientImpl final : public LocalFrameClient {
Expand All @@ -123,10 +123,10 @@ index 244a0028b7a6d14e3eb30041b36c9ef49b61018a..ea98189f0f03a9099d6963fe0fb3ae8f
int32_t world_id) override;

diff --git a/third_party/blink/renderer/core/loader/empty_clients.h b/third_party/blink/renderer/core/loader/empty_clients.h
index 10a75b729c365f04545888c92c811e2da6c59919..43ad2a74d904d74fd6c39a61aa73093e5296510e 100644
index 9f9e6c6188d1f108f584b1117a91fc3e9a5e38ab..05330ea84dc1555bcc9dd6fbbd63e97348b5664d 100644
--- a/third_party/blink/renderer/core/loader/empty_clients.h
+++ b/third_party/blink/renderer/core/loader/empty_clients.h
@@ -344,6 +344,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {
@@ -343,6 +343,8 @@ class CORE_EXPORT EmptyLocalFrameClient : public LocalFrameClient {

void DidCreateScriptContext(v8::Local<v8::Context>,
int32_t world_id) override {}
Expand Down
@@ -0,0 +1,26 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Samuel Attard <samuel.r.attard@gmail.com>
Date: Wed, 14 Apr 2021 17:19:23 -0700
Subject: add setter for BrowserMainLoop::result_code_

After a recent refactor
(https://chromium-review.googlesource.com/c/chromium/src/+/2725153) the
result_code_ pointer is no longer provided to embedders, but their are
valid use cases for setting custom exit codes of the main loop. This
exposes a simple setter that embedders can call.

diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index e116a3de7fb765758793b3feecab2654193c3a96..0131d97a8b82d2339c99d1b1c6c3faeba2ae35ff 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -167,6 +167,10 @@ class CONTENT_EXPORT BrowserMainLoop {

int GetResultCode() const { return result_code_; }

+ void SetResultCode(int code) {
+ result_code_ = code;
+ }
+
media::AudioManager* audio_manager() const;
bool AudioServiceOutOfProcess() const;
media::AudioSystem* audio_system() const { return audio_system_.get(); }