Skip to content

Commit

Permalink
devel/electron18: update to 18.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tagattie committed Aug 4, 2022
1 parent cc11949 commit 6726ae2
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 55 deletions.
2 changes: 1 addition & 1 deletion devel/electron18/Makefile
Expand Up @@ -152,7 +152,7 @@ REACTIVEOBJC_VER= 74ab5baccc6f7202c8ac69a8d1e152c29dc1ea76
# See ${WRKSRC}/electron/DEPS for MANTLE_VER
MANTLE_VER= 78d3966b3c331292ea29ec38661b25df0a245948

YARN_TIMESTAMP= 1655950711
YARN_TIMESTAMP= 1659493244

GN_ARGS+= clang_use_chrome_plugins=false \
enable_hangout_services_extension=true \
Expand Down
2 changes: 1 addition & 1 deletion devel/electron18/Makefile.version
@@ -1,2 +1,2 @@
ELECTRON_VER= 18.3.5
ELECTRON_VER= 18.3.6
ELECTRON_VER_MAJOR= ${ELECTRON_VER:C/\..*//}
10 changes: 5 additions & 5 deletions devel/electron18/distinfo
@@ -1,14 +1,14 @@
TIMESTAMP = 1655951956
TIMESTAMP = 1659493840
SHA256 (electron/chromium-100.0.4896.160.tar.xz) = a3f755dff069c6fae3eb7f07b33c0dd3f0762fa82959f41c7bd347da8efbacff
SIZE (electron/chromium-100.0.4896.160.tar.xz) = 1228994280
SHA256 (electron/aad6877c8cd3cff0ef1ba628d71acc981c520c29) = 9793d0cfb94bf2ff099682dcd31ef46d1d7f42346c8a2f6355a5f8fda3dcd506
SIZE (electron/aad6877c8cd3cff0ef1ba628d71acc981c520c29) = 12028653
SHA256 (electron/cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb) = ec973eccd669d417fbf2d0a4dac730744a3174268ff062db5451b55c82bc3492
SIZE (electron/cd96fc55dc243f6c6f4cb63ad117cad6cd48dceb) = 26759650
SHA256 (electron/electron-yarn-cache-18.3.5.tar.xz) = 1988270c5c46db027718bd917f5fe4d0bcd7e5079aa57b72af22eadb964ff886
SIZE (electron/electron-yarn-cache-18.3.5.tar.xz) = 38392736
SHA256 (electron/electron-electron-v18.3.5_GH0.tar.gz) = ed9144b6e10c6f1c77adc4735606042cc4ea13c34a99abcafc965a0a5013c825
SIZE (electron/electron-electron-v18.3.5_GH0.tar.gz) = 10236502
SHA256 (electron/electron-yarn-cache-18.3.6.tar.xz) = 024ce2590f2b69f51167b19a9d759298c785eefbbc60623bdc5a68f505681560
SIZE (electron/electron-yarn-cache-18.3.6.tar.xz) = 38390636
SHA256 (electron/electron-electron-v18.3.6_GH0.tar.gz) = d055c96172849b65ddd672e5d26ec052ce4061217eed47a5a1a100c661c38016
SIZE (electron/electron-electron-v18.3.6_GH0.tar.gz) = 10555061
SHA256 (electron/nodejs-node-v16.13.2_GH0.tar.gz) = 93c65be15bfe8151b4a99d529538b23ffc6b5e0202dc7df0e32aa780ab49ad97
SIZE (electron/nodejs-node-v16.13.2_GH0.tar.gz) = 87972240
SHA256 (electron/nodejs-nan-65b32af46e9d7fab2e4ff657751205b3865f4920_GH0.tar.gz) = a649b75bfa9c1a0254c73d022c6e98924b9471f593bcc83832daaf68da4cae8d
Expand Down
2 changes: 1 addition & 1 deletion devel/electron18/files/package.json
@@ -1,6 +1,6 @@
{
"name": "electron",
"version": "18.3.5",
"version": "18.3.6",
"repository": "https://github.com/electron/electron",
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions devel/electron18/files/patch-electron_BUILD.gn
@@ -1,6 +1,6 @@
--- electron/BUILD.gn.orig 2022-06-22 15:31:20 UTC
--- electron/BUILD.gn.orig 2022-07-28 16:21:57 UTC
+++ electron/BUILD.gn
@@ -447,7 +447,7 @@ source_set("electron_lib") {
@@ -448,7 +448,7 @@ source_set("electron_lib") {
defines += [ "GDK_DISABLE_DEPRECATION_WARNINGS" ]
}

Expand All @@ -9,7 +9,7 @@
deps += [
"//components/crash/core/app",
"//components/crash/core/browser",
@@ -489,6 +489,10 @@ source_set("electron_lib") {
@@ -490,6 +490,10 @@ source_set("electron_lib") {
]
}

Expand All @@ -20,7 +20,7 @@
if (is_mac) {
deps += [
"//components/remote_cocoa/app_shim",
@@ -543,6 +547,12 @@ source_set("electron_lib") {
@@ -544,6 +548,12 @@ source_set("electron_lib") {
cflags_objcc = [ "-fobjc-weak" ]
}
}
Expand All @@ -33,7 +33,7 @@
if (is_linux) {
libs = [ "xshmfence" ]
deps += [
@@ -1185,7 +1195,7 @@ if (is_mac) {
@@ -1186,7 +1196,7 @@ if (is_mac) {
":electron_app_manifest",
":electron_lib",
":packed_resources",
Expand All @@ -42,7 +42,7 @@
"//content:sandbox_helper_win",
"//electron/buildflags",
"//ui/strings",
@@ -1211,7 +1221,7 @@ if (is_mac) {
@@ -1212,7 +1222,7 @@ if (is_mac) {
public_deps = [ "//tools/v8_context_snapshot:v8_context_snapshot" ]
}

Expand All @@ -51,7 +51,7 @@
data_deps += [ "//components/crash/core/app:chrome_crashpad_handler" ]
}

@@ -1279,7 +1289,7 @@ if (is_mac) {
@@ -1280,7 +1290,7 @@ if (is_mac) {
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
}

Expand All @@ -60,7 +60,7 @@
deps += [ "//sandbox/linux:chrome_sandbox" ]
}
}
@@ -1415,7 +1425,7 @@ dist_zip("electron_dist_zip") {
@@ -1416,7 +1426,7 @@ dist_zip("electron_dist_zip") {
":electron_version",
":licenses",
]
Expand Down
@@ -1,6 +1,6 @@
--- electron/shell/browser/api/electron_api_web_contents.cc.orig 2022-06-01 15:32:20 UTC
--- electron/shell/browser/api/electron_api_web_contents.cc.orig 2022-07-28 16:21:57 UTC
+++ electron/shell/browser/api/electron_api_web_contents.cc
@@ -149,11 +149,11 @@
@@ -150,11 +150,11 @@
#include "ui/base/cocoa/defaults_utils.h"
#endif

Expand All @@ -14,7 +14,7 @@
#include "ui/gfx/font_render_params.h"
#endif

@@ -394,7 +394,7 @@ absl::optional<base::TimeDelta> GetCursorBlinkInterval
@@ -395,7 +395,7 @@ absl::optional<base::TimeDelta> GetCursorBlinkInterval
ui::TextInsertionCaretBlinkPeriodFromDefaults());
if (system_value)
return *system_value;
Expand All @@ -23,7 +23,7 @@
if (auto* linux_ui = views::LinuxUI::instance())
return linux_ui->GetCursorBlinkInterval();
#elif BUILDFLAG(IS_WIN)
@@ -832,7 +832,7 @@ void WebContents::InitWithSessionAndOptions(
@@ -834,7 +834,7 @@ void WebContents::InitWithSessionAndOptions(
accept_languages.pop_back();
prefs->accept_languages = accept_languages;

Expand All @@ -32,7 +32,7 @@
// Update font settings.
static const gfx::FontRenderParams params(
gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr));
@@ -2356,7 +2356,7 @@ void WebContents::ForcefullyCrashRenderer() {
@@ -2360,7 +2360,7 @@ void WebContents::ForcefullyCrashRenderer() {

content::RenderProcessHost* rph = rwh->GetProcess();
if (rph) {
Expand All @@ -41,7 +41,7 @@
// A generic |CrashDumpHungChildProcess()| is not implemented for Linux.
// Instead we send an explicit IPC to crash on the renderer's IO thread.
rph->ForceCrash();
@@ -2932,7 +2932,7 @@ void WebContents::CopyImageAt(int x, int y) {
@@ -2940,7 +2940,7 @@ void WebContents::CopyImageAt(int x, int y) {
void WebContents::Focus() {
// Focusing on WebContents does not automatically focus the window on macOS
// and Linux, do it manually to match the behavior on Windows.
Expand All @@ -50,7 +50,7 @@
if (owner_window())
owner_window()->Focus(true);
#endif
@@ -3765,7 +3765,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() {
@@ -3773,7 +3773,7 @@ ui::ImageModel WebContents::GetDevToolsWindowIcon() {
}
#endif

Expand Down
@@ -1,6 +1,6 @@
--- electron/shell/browser/electron_browser_client.cc.orig 2022-05-18 15:31:32 UTC
--- electron/shell/browser/electron_browser_client.cc.orig 2022-07-28 16:21:57 UTC
+++ electron/shell/browser/electron_browser_client.cc
@@ -182,7 +182,7 @@
@@ -183,7 +183,7 @@
#include "content/public/common/child_process_host.h"
#endif

Expand Down
@@ -1,4 +1,4 @@
--- electron/shell/browser/native_window_views.cc.orig 2022-05-18 15:31:32 UTC
--- electron/shell/browser/native_window_views.cc.orig 2022-07-28 16:21:57 UTC
+++ electron/shell/browser/native_window_views.cc
@@ -43,7 +43,7 @@
#include "ui/wm/core/shadow_types.h"
Expand All @@ -9,7 +9,7 @@
#include "base/strings/string_util.h"
#include "shell/browser/browser.h"
#include "shell/browser/linux/unity_service.h"
@@ -264,7 +264,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
@@ -265,7 +265,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
params.parent = parent->GetNativeWindow();

params.native_widget = new ElectronDesktopNativeWidgetAura(this);
Expand All @@ -18,7 +18,7 @@
std::string name = Browser::Get()->GetName();
// Set WM_WINDOW_ROLE.
params.wm_role_name = "browser-window";
@@ -287,7 +287,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
@@ -290,7 +290,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
std::string window_type;
options.Get(options::kType, &window_type);

Expand All @@ -27,7 +27,7 @@
// Set _GTK_THEME_VARIANT to dark if we have "dark-theme" option set.
bool use_dark_theme = false;
if (options.Get(options::kDarkTheme, &use_dark_theme) && use_dark_theme) {
@@ -393,7 +393,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
@@ -396,7 +396,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper:
if (window)
window->AddPreTargetHandler(this);

Expand All @@ -36,7 +36,7 @@
// On linux after the widget is initialized we might have to force set the
// bounds if the bounds are smaller than the current display
SetBounds(gfx::Rect(GetPosition(), bounds.size()), false);
@@ -536,7 +536,7 @@ bool NativeWindowViews::IsVisible() {
@@ -546,7 +546,7 @@ bool NativeWindowViews::IsVisible() {
bool NativeWindowViews::IsEnabled() {
#if BUILDFLAG(IS_WIN)
return ::IsWindowEnabled(GetAcceleratedWidget());
Expand All @@ -45,7 +45,7 @@
#if defined(USE_OZONE_PLATFORM_X11)
if (IsX11())
return !event_disabler_.get();
@@ -594,7 +594,7 @@ void NativeWindowViews::SetEnabledInternal(bool enable
@@ -604,7 +604,7 @@ void NativeWindowViews::SetEnabledInternal(bool enable
#endif
}

Expand All @@ -54,7 +54,7 @@
void NativeWindowViews::Maximize() {
if (IsVisible()) {
widget()->Maximize();
@@ -722,7 +722,7 @@ void NativeWindowViews::SetBounds(const gfx::Rect& bou
@@ -732,7 +732,7 @@ void NativeWindowViews::SetBounds(const gfx::Rect& bou
}
#endif

Expand All @@ -63,7 +63,7 @@
// On Linux and Windows the minimum and maximum size should be updated with
// window size when window is not resizable.
if (!resizable_) {
@@ -939,7 +939,7 @@ bool NativeWindowViews::IsClosable() {
@@ -964,7 +964,7 @@ bool NativeWindowViews::IsClosable() {
return false;
}
return !(info.fState & MFS_DISABLED);
Expand All @@ -72,7 +72,7 @@
return true;
#endif
}
@@ -1331,7 +1331,7 @@ void NativeWindowViews::SetProgressBar(double progress
@@ -1356,7 +1356,7 @@ void NativeWindowViews::SetProgressBar(double progress
NativeWindow::ProgressState state) {
#if BUILDFLAG(IS_WIN)
taskbar_host_.SetProgressBar(GetAcceleratedWidget(), progress, state);
Expand All @@ -81,7 +81,7 @@
if (unity::IsRunning()) {
unity::SetProgressFraction(progress);
}
@@ -1393,7 +1393,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM
@@ -1418,7 +1418,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM
#if BUILDFLAG(IS_WIN)
window_handle =
reinterpret_cast<content::DesktopMediaID::Id>(accelerated_widget);
Expand All @@ -90,7 +90,7 @@
window_handle = static_cast<uint32_t>(accelerated_widget);
#endif
aura::WindowTreeHost* const host =
@@ -1496,7 +1496,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC
@@ -1521,7 +1521,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC
SendMessage(hwnd, WM_SETICON, ICON_BIG,
reinterpret_cast<LPARAM>(app_icon_.get()));
}
Expand All @@ -99,7 +99,7 @@
void NativeWindowViews::SetIcon(const gfx::ImageSkia& icon) {
auto* tree_host = views::DesktopWindowTreeHostLinux::GetHostForWidget(
GetAcceleratedWidget());
@@ -1566,7 +1566,7 @@ bool NativeWindowViews::CanMaximize() const {
@@ -1591,7 +1591,7 @@ bool NativeWindowViews::CanMaximize() const {
bool NativeWindowViews::CanMinimize() const {
#if BUILDFLAG(IS_WIN)
return minimizable_;
Expand All @@ -108,7 +108,7 @@
return true;
#endif
}
@@ -1640,7 +1640,7 @@ void NativeWindowViews::HandleKeyboardEvent(
@@ -1665,7 +1665,7 @@ void NativeWindowViews::HandleKeyboardEvent(
if (widget_destroyed_)
return;

Expand All @@ -117,7 +117,7 @@
if (event.windows_key_code == ui::VKEY_BROWSER_BACK)
NotifyWindowExecuteAppCommand(kBrowserBackward);
else if (event.windows_key_code == ui::VKEY_BROWSER_FORWARD)
@@ -1659,7 +1659,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e
@@ -1684,7 +1684,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e
// Alt+Click should not toggle menu bar.
root_view_->ResetAltState();

Expand Down
@@ -0,0 +1,20 @@
--- electron/spec-main/api-browser-view-spec.ts.orig 2022-08-03 02:37:19 UTC
+++ electron/spec-main/api-browser-view-spec.ts
@@ -63,7 +63,7 @@ describe('BrowserView module', () => {
});

// Linux and arm64 platforms (WOA and macOS) do not return any capture sources
- ifit(process.platform !== 'linux' && process.arch !== 'arm64')('sets the background color to transparent if none is set', async () => {
+ ifit((process.platform !== 'linux' && process.platform !== 'freebsd') && process.arch !== 'arm64')('sets the background color to transparent if none is set', async () => {
const display = screen.getPrimaryDisplay();
const WINDOW_BACKGROUND_COLOR = '#55ccbb';

@@ -87,7 +87,7 @@ describe('BrowserView module', () => {
});

// Linux and arm64 platforms (WOA and macOS) do not return any capture sources
- ifit(process.platform !== 'linux' && process.arch !== 'arm64')('successfully applies the background color', async () => {
+ ifit((process.platform !== 'linux' && process.platform !== 'freebsd') && process.arch !== 'arm64')('successfully applies the background color', async () => {
const WINDOW_BACKGROUND_COLOR = '#55ccbb';
const VIEW_BACKGROUND_COLOR = '#ff00ff';
const display = screen.getPrimaryDisplay();

0 comments on commit 6726ae2

Please sign in to comment.