trop[bot]
96fe03b200
test: add -pdf-ready-to-print event to WebContents for testing ( #43651 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-09-09 21:56:16 -05:00
trop[bot]
4b5d29201c
chore: remove unused ConvertableToTraceFormatWrapper ( #43653 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-09-09 21:55:42 -05:00
trop[bot]
f6bc0b0953
fix: -Wunsafe-buffer-usage warnings in asar file IO ( #43649 )
...
* fix: -Wunsafe-buffer-usage warnings in ScopedTemporaryFile::InitFromFile()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* fix: -Wunsafe-buffer-usage warnings in Archive::Init()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-09 17:58:41 -05:00
trop[bot]
e4113ddd69
fix: out-of-scope Local handle in node::CallbackScope ( #43641 )
...
refactor: use an EscapableHandleScope
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-09 17:23:16 -05:00
Shelley Vohr
4de345574a
fix: ensure version of xdg-dialog-portal
with defaultPath
support ( #43630 )
...
fix: ensure version of xdg-dialog-portal with defaultPath support
2024-09-09 19:21:37 +02:00
trop[bot]
97f0a9a545
fix: UvHandle move semantics ( #43632 )
...
reassign the uv_handle_t of the source
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-09 11:52:57 -05:00
electron-roller[bot]
e3908eca41
chore: bump node to v20.17.0 (31-x-y) ( #43423 )
...
* chore: bump node in DEPS to v20.17.0
* module: disallow CJS <-> ESM edges in a cycle from require(esm)
https://github.com/nodejs/node/pull/52264
* src: expose LookupAndCompile with parameters
https://github.com/nodejs/node/pull/53886
* src: fix -Wshadow warning
https://github.com/nodejs/node/pull/53885
* lib: convert WeakMaps in cjs loader with symbol properties
https://github.com/nodejs/node/pull/52095
* src: reduce unnecessary serialization of CLI options in C++
https://github.com/nodejs/node/pull/52451
* lib: improve error message when index not found on cjs
https://github.com/nodejs/node/pull/53859
* src,lib: expose getCategoryEnabledBuffer to use on node.http
https://github.com/nodejs/node/pull/53602
* deps: update c-ares to v1.32.2
https://github.com/nodejs/node/pull/53865
* chore: fixup patch indices
* deps: update V8 to 12.2
https://github.com/nodejs/node/pull/51362
* stream: Expose DuplexPair API
https://github.com/nodejs/node/pull/34111
* chore: remove patch
* chore: fixup patch misapplication
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-09-09 18:39:28 +02:00
trop[bot]
87ecd1e62b
fix: update BrowserView#lastWindowSize
after window resize ( #43635 )
...
fix: update BrowserView#lastWindowSize after window resize (#43462 )
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Zonglong Liu <83216456+mai-121@users.noreply.github.com>
2024-09-09 17:40:31 +02:00
trop[bot]
a3a595383d
perf: avoid redundant Promise.GetContext calls ( #43618 )
...
refactor: avoid redundant Promise.GetContext calls
Several Promise methods call `GetContext()` multiple times. From looking
at the assembly in obj/electron/electron_lib/promise.o, these redundant
calls are actually being made -- they aren't optmized out.
This PR keeps the return value in a local variable to avoid extra calls.
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-08 10:37:26 -05:00
trop[bot]
00c0948e7b
refactor: take a uint8_t
span in ValidateIntegrityOrDie()
( #43614 )
...
refactor: take a uint8_t span in ValidateIntegrityOrDie()
Doing some groundwork for fixing unsafe base::File() APIs:
- Change ValidateIntegrityOrDie() to take a span<const uint8_t> arg.
We'll need this to migrate asar's base::File API calls away from the
ones tagged `UNSAFE_BUFFER_USAGE` because the safe counterparts use
span<uint8_t> too.
- Simplify ValidateIntegrityOrDie()'s implementation by using
crypto::SHA256Hash() instead of reinventing the wheel.
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 22:16:51 -05:00
trop[bot]
5f97f97f7c
fix: confirm a v8::Value
is a v8::Object
before casting it ( #43603 )
...
fix: confirm a v8::Value is a v8::Object before casting it
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 15:26:33 -05:00
trop[bot]
5c424edcca
refactor: NativeWindow::Create()
returns a unique_ptr ( #43605 )
...
refactor: NativeWindow::Create() returns a unique_ptr
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 14:19:50 -05:00
trop[bot]
9da190f786
fix: delete UvTaskRunner's timers only after they're closed ( #43598 )
...
* fix: free UvTaskRunner timers only after they are closed
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: UvTaskRunner now holds UvHandles
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-06 11:18:52 -05:00
trop[bot]
a461a95b60
build: use proper targets for building ( #43586 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-09-06 10:59:29 +02:00
trop[bot]
98c7dfbdaf
docs: explain ipcRenderer behavior in context-bridge.md ( #43585 )
...
* docs: explain ipcRenderer behavior in context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update docs/api/context-bridge.md
Co-authored-by: Erik Moura <erikian@erikian.dev>
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update context-bridge.md
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update docs/api/context-bridge.md
Co-authored-by: Erick Zhao <erick@hotmail.ca>
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
* Update docs/api/context-bridge.md
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Kilian Valkhof <kilian@kilianvalkhof.com>
2024-09-05 17:05:19 -04:00
trop[bot]
722bc116f8
fix: Launch apps with XDG_ACTIVATION_TOKEN in ozone/wayland ( #43578 )
...
* fix: Launch apps with XDG_ACTIVATION_TOKEN in ozone/wayland
Ensure apps are launched with the activation token received from
xdg_activation_v1 protocol.
Co-authored-by: Orko Garai <orko@igalia.com>
* add focus_launched_process option
Co-authored-by: Orko Garai <orko@igalia.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Orko Garai <orko@igalia.com>
2024-09-05 15:16:49 -05:00
trop[bot]
9bc59d1c2b
build: fix telemetry error when using autoninja ( #43572 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2024-09-05 09:07:37 -04:00
trop[bot]
73f43ae46b
fix: -Wunsafe-buffer-usage warnings in IsUrlArg() ( #43542 )
...
* fix: -Wunsafe-buffer-usage warnings in IsUrlArg()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: improve code comments for CheckCommandLineArguments()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: reduce diffs from main
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: CheckCommandLineArguments takes a StringVector arg
Fixes another buffer warning!
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: use base::CommandLine::StringPieceType
base:CommandLine::StringViewType has not been invented yet
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-04 21:27:00 -05:00
trop[bot]
cb7eb6747d
build: don't run symbol generation on PS ( #43557 )
...
fix: don't run symbol generation on PS
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
2024-09-04 20:19:08 -05:00
trop[bot]
3b3f2112d5
fix: don't use deprecate-soon class v8::String::Value ( #43553 )
...
* fix: remove use of deprecated v8::String::Value
Upstream marked v8::String::Value as `V8_DEPRECATE_SOON` last month,
so let's stop using it.
The replacement code mostly does the same as v8::String::Value();
but since our test only cares about the length and not the contents,
we get a small perf win of not needing to allocate a char array and
not needing to call Local::String::Write().
Upstream V8_DEPRECATE_SOON:
Xref: https://chromium-review.googlesource.com/c/v8/v8/+/5667299kkk
v8::String::Value() implementation:
https://chromium.googlesource.com/v8/v8/+/20226b740bfa1a1e46dff80363232dfd3da50de8/src/api/api.cc#10883
History on why we used it:
https://github.com/electron/electron/pull/19792/commits/80c1a9739d191d2e393e56e2b254fb72bf6859e9
https://github.com/electron/electron/pull/19792/commits/f49ed30f7205d7295ab035c6f1b3702cf7e3217c
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* Update shell/common/gin_converters/file_path_converter.h
Co-authored-by: Robo <hop2deep@gmail.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* fixup! Update shell/common/gin_converters/file_path_converter.h
do not return success for all non-Null non-Strings
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-04 12:54:19 -05:00
trop[bot]
d025ecfa6b
fix: Use XDG_ACTIVATION_TOKEN in wayland when launched by other app ( #43547 )
...
When an electron app is launched by another app ensure that the
XDG_ACTIVATION_TOKEN env var is read and used for activation using
xdg_activation_v1 protocol.
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Orko Garai <orko@igalia.com>
2024-09-04 17:28:02 +02:00
John Kleinschmidt
523b4cb27a
build: free up macos disk space as soon as possible ( #43538 )
...
* chore: free up macos disk space as soon as possible
* build: free up disk space on gn check too
2024-09-04 12:19:30 +02:00
trop[bot]
16a8ac15be
chore: speed up cache only reclient for fork PRs ( #43504 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2024-09-03 21:40:20 -04:00
trop[bot]
f7404bceea
fix: devtools dock state with WCO on linux ( #43500 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
2024-08-29 13:27:14 -04:00
trop[bot]
0fa92e0fea
refactor: simplify KeyWeakMap impl ( #43484 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-26 18:10:34 -04:00
trop[bot]
44e57c6cbb
chore: remove unused WinFrameView::kInactiveTitlebarFeatureAlpha ( #43475 )
...
added in Aug 2021 (41646d11
, #29600 ) but never used
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-24 00:11:00 -05:00
trop[bot]
3251f84328
chore: remove unused method asar::ClearArchives() ( #43469 )
...
chore: remove unused asar::ClearArchives()
last use removed in Jun 2021 (b1d1ac65
, #29293 )
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-23 17:02:34 -05:00
trop[bot]
62c63ea35a
docs: titleBarOverlay
is defined as a BaseWindow
ctor option ( #43458 )
...
docs: titleBarOverlay is defined as a BaseWindow ctor option
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-23 10:39:06 -05:00
trop[bot]
a373ab027b
fix: menu should allow focused BaseWindow
where possible ( #43439 )
...
fix: menu should allow focused BaseWindow
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-22 18:33:44 -05:00
trop[bot]
557d5c901a
fix: documentation spelling errors ( #43434 )
...
chore: fix typos in 'docs/' folder.
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Alexander Cyon <alex.cyon@gmail.com>
2024-08-22 16:04:06 +02:00
trop[bot]
1b657869c2
fix: touch bar functionality on BaseWindow ( #43420 )
...
* fix: touch bar functionality on BaseWindow
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
* test: add test for BaseWindow.setTouchBar
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-22 15:43:47 +02:00
trop[bot]
a7459bc93b
refactor: move impl functions into private namespace ( #43410 )
...
* refactor: move into unnamed namespace: IsKillURL()
refactor: move into unnamed namespace: ResolvePossiblyRelativeURL()
refactor: move into unnamed namespace: AllowFileAccess()
refactor: move into unnamed namespace: PrepareURLForNavigation()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetMonitors()
refactor: move into unnamed namespace: GetEDIDProperty()
refactor: move into unnamed namespace: MonitorAtomIdToDisplayId()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetPermissionInfos() } refactor: move into unnamed namespace: GetPermissionAliases()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: OnOpenExternal()
refactor: move into unnamed namespace: HandleExternalProtocolInUI()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: BindMimeHandlerService()
refactor: move into unnamed namespace: BindBeforeUnloadControl()
refactor: move into unnamed namespace: BindBadgeServiceForServiceWorker()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetClientIdPath()
refactor: move into unnamed namespace: ReadClientId()
refactor: move into unnamed namespace: WriteClientId()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: HasExplicitLogFile()
refactor: move into unnamed namespace: DetermineLoggingDestination()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetArchiveCache()
refactor: move into unnamed namespace: GetArchiveCacheLock()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetParameters()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: GetDoomed()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* refactor: move into unnamed namespace: EncodeToken()
refactor: move into unnamed namespace: PortInfoToValue()
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-21 21:29:25 -05:00
trop[bot]
5080b647c8
refactor: NodeBindings::Create() returns a unique_ptr ( #43393 )
...
refactor: NodeBindings::Create() returns a unique_ptr (#43361 )
* refactor: NodeBindings::Create() returns a unique_ptr
* empty commit
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-21 10:56:59 -04:00
Charles Kerr
aa47f3efc3
refactor: remove unused SetWMSpecState ( #43383 )
...
refactor: remove unused SetWMSpecState (#43347 )
last use removed in Aug 2022 by 53cd2315
#35179
2024-08-21 10:26:30 +02:00
Charles Kerr
3596197562
chore: remove unused method Erase() ( #43382 )
...
chore: remove unused method Erase() (#43348 )
Last use removed in Mar 2018 by 4b39d17e
2024-08-21 10:15:17 +02:00
Keeley Hammond
054679ee99
chore: cherry-pick 9797576 from v8 ( #43386 )
...
* chore: cherry-pick 9797576 from v8 (#43376 )
* chore: update patches
---------
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-20 17:05:47 -07:00
Shelley Vohr
7df2211c30
build: use smaller instances for gn-check ( #43359 )
...
build: use smaller instances for gn-check (#43187 )
Co-authored-by: Samuel Attard <sam@electronjs.org>
2024-08-20 09:58:11 +02:00
trop[bot]
b80d708fc1
feat: accept-encoding zstd ( #43301 )
...
* fix: accept-encoding zstd
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* Update shell/browser/net/system_network_context_manager.cc
Co-authored-by: Sam Maddock <smaddock@slack-corp.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: make lint happy
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-16 11:24:07 +02:00
trop[bot]
a959476dc2
fix: blank page when printing pdf ( #43327 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-15 10:30:22 -04:00
trop[bot]
bd70c3a740
refactor: update chrome.scripting extensions api impls ( #43290 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-12 12:09:34 +02:00
trop[bot]
997afe62f2
chore: remove unused Notification fields icon_path_, has_icon_ ( #43295 )
...
Last use of `icon_path_` was removed on May 29, 2017 (c741b584
)
Last use of `has_icon_` was removed on May 30, 2017 (5048425e
)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-12 12:09:25 +02:00
trop[bot]
dd1dcad81c
fix: system-context-menu with frameless BrowserWindows ( #43274 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-11 21:30:37 +02:00
trop[bot]
10dd33c16e
fix: check screen capture permissions in desktopCapturer
( #43271 )
...
fix: check screen capture permissions in desktopCapturer
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-11 21:30:27 +02:00
trop[bot]
c3a7f0001c
fix: accidental handle copying in a range loop ( #43281 )
...
fix: accidental handle copying
Xref: https://github.com/electron/electron/pull/37857
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-10 09:59:36 +02:00
trop[bot]
a780a75dec
build: fix build when enable_pdf_viewer
and enable_electron_extensions
disabled ( #43250 )
...
build: fix build when enable_pdf_viewer and enable_electron_extensions disabled
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-08 10:59:15 +02:00
electron-roller[bot]
6e69cb0191
chore: bump chromium to 126.0.6478.234 (31-x-y) ( #43252 )
...
chore: bump chromium in DEPS to 126.0.6478.234
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
2024-08-08 01:10:00 +09:00
trop[bot]
520a147244
docs: Document ideal iconPath size ( #43241 )
...
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Felix Rieseberg <fr@makenotion.com>
2024-08-07 11:57:17 +02:00
trop[bot]
36cebb95c6
refactor: simplify window moveAbove/moveTop
impl on macOS ( #43201 )
...
refactor: simplify window moveAbove/moveTop impl on macOS
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
2024-08-06 16:41:49 -04:00
trop[bot]
be842d6267
perf: avoid redundant calls to GetView() ( #43229 )
...
* perf: avoid double-calls to GetView()
There are a lot of places where we call the virtual method GetView()
twice in succession: the first to check if the view exists, and the
second to use. This PR holds the view in a temp variable instead, e.g.:
if (auto* view = foo->GetView())
view->DoSomething();
Co-authored-by: Charles Kerr <charles@charleskerr.com>
* perf: avoid discarded GetView() call
Co-authored-by: Charles Kerr <charles@charleskerr.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-08-06 13:23:21 -05:00
trop[bot]
8fb3a04eee
fix: potential draggable regions crash in DevTools ( #43200 )
...
* fix: potential draggable regions crash in DevTools
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
* chore: update patch after rebase
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
2024-08-06 20:12:16 +02:00